Agent skill
forge-lang-node
Node.js development standards including jest/vitest, eslint, and prettier. Use when working with JavaScript files, package.json, or npm/pnpm.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/forge-lang-node
SKILL.md
Node.js Development
Testing
# Run all tests
npm test
# Run with coverage
npm test -- --coverage
# Run in watch mode
npm test -- --watch
# Run specific test
npm test -- --testPathPattern=module.test
Linting
# Run eslint
npm run lint
# Fix auto-fixable issues
npm run lint -- --fix
Formatting
# Format with prettier
npm run format
# Check without changing
npx prettier --check .
Project Structure
project/
├── src/
│ ├── index.js
│ └── module.js
├── tests/
│ └── module.test.js
├── package.json
└── README.md
package.json Scripts
{
"scripts": {
"test": "jest",
"lint": "eslint src/",
"format": "prettier --write .",
"check": "npm run lint && npm run test"
}
}
TDD Cycle Commands
# RED: Write test, run to see it fail
npm test -- --testPathPattern=new_feature
# GREEN: Implement, run to see it pass
npm test -- --testPathPattern=new_feature
# REFACTOR: Clean up, ensure tests still pass
npm run check
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?