vanessamarely/ai-playbook-reposito/node-typescript-service
Claude Code and agent skill by vanessamarely/ai-playbook-reposito
- community
Checking that the SKILL.md file is still in the repository.
Builds and extends Node.js/TypeScript microservice endpoints with request validation (Zod/Joi/class-validator), structured error handling, and unit + integration tests. Use when the user wants to create or modify an API endpoint, service layer, or route handler in Express, Nest.js, or Fastify. Do not use for React frontend components, UI elements, or accessibility audits.
Install
npx vskill@latest install vanessamarely/ai-playbook-reposito/node-typescript-serviceSKILL.md
The same SKILL.md was published earlier as vanessamarely/ai-playbook-reposito/node-typescript-service.
Skill: Node.js/TypeScript Service
Purpose
Create or modify Node.js/TypeScript backend services with proper validation, error handling, logging, and testing.
Inputs
serviceName: Service or module identifierendpointSpec: HTTP method, path, request schema, response schemabusinessLogic: Description of what the endpoint doesframework: Express, Nest, Fastify (detected from project)
Outputs
- Route handler or controller file
- Validation schemas
- Error handling implementation
- Test file with unit and integration tests
Procedures
1. Detect Project Framework
Check package.json dependencies:
express→ Express.js@nestjs/core→ Nest.jsfastify→ Fastify
If unclear, request clarification.
2. Load Backend Policy
Read the project's CLAUDE.md (or ../../policies/backend-policy.md in this playbook) for Node.js/TypeScript conventions.
3. Define Request Validation Schema
Create validation schema using the project's validation library.
Common libraries:
- Zod
- Joi
- class-validator (Nest.js)
Example (Zod):
Refer to: references/validation-and-errors.md
4. Implement Route Handler
Structure varies by framework.
Express.js
Nest.js
5. Implement Error Handling
Map errors to appropriate HTTP status codes:
- 400: Validation error, malformed request
- 401: Authentication required
- 403: Insufficient permissions
- 404: Resource not found
- 409: Conflict (duplicate resource)
- 500: Internal server error
Return structured error responses:
Refer to: references/validation-and-errors.md
6. Add Logging
Use structured logging (not console.log):
- Winston
- Pino
- Framework-specific loggers
7. Implement Business Logic
Extract business logic to service layer (not in route handler):
8. Generate Tests
Create test file adjacent to handler:
Unit Tests
Test business logic in isolation:
Integration Tests
Test full HTTP request/response:
9. Update Routing
Register the new endpoint in the application's routing configuration.
Verify no route conflicts exist.
10. Validate Implementation
Check:
- Request validation is applied
- Error handling is comprehensive
- Responses follow consistent structure
- Logging captures relevant context
- Tests cover success and error cases
Suggest verification commands:
npm run lintnpm testnpm run build
Error Handling
Missing validation library: Suggest installing Zod, Joi, or class-validator.
Framework mismatch: Clarify the detected framework and adjust implementation.
Route conflict: Notify and suggest alternative path or method.
Type safety issue: Ensure types are explicit and validated.
References
- Validation and Errors: references/validation-and-errors.md
- Service Specification Template: assets/service-spec.template.md
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingai-playbook/.github/skills/node-typescript-service/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vanessamarely/ai-playbook-reposito/node-typescript-service)