Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Part of a 72-plugin marketplace with 112 AI agents and 146 skills for Claude Code development automation.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: nodejs-backend-patterns3description: Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.4---56# Node.js Backend Patterns78Comprehensive guidance for building scalable, maintainable, and production-ready Node.js backend applications with modern frameworks, architectural patterns, and best practices.910## When to Use This Skill1112- Building REST APIs or GraphQL servers13- Creating microservices with Node.js14- Implementing authentication and authorization15- Designing scalable backend architectures16- Setting up middleware and error handling17- Integrating databases (SQL and NoSQL)18- Building real-time applications with WebSockets19- Implementing background job processing2021## Detailed patterns and worked examples2223Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.2425## Best Practices26271. **Use TypeScript**: Type safety prevents runtime errors282. **Implement proper error handling**: Use custom error classes293. **Validate input**: Use libraries like Zod or Joi304. **Use environment variables**: Never hardcode secrets315. **Implement logging**: Use structured logging (Pino, Winston)326. **Add rate limiting**: Prevent abuse337. **Use HTTPS**: Always in production348. **Implement CORS properly**: Don't use `*` in production359. **Use dependency injection**: Easier testing and maintenance3610. **Write tests**: Unit, integration, and E2E tests3711. **Handle graceful shutdown**: Clean up resources3812. **Use connection pooling**: For databases3913. **Implement health checks**: For monitoring4014. **Use compression**: Reduce response size4115. **Monitor performance**: Use APM tools4243## Testing Patterns4445See `javascript-testing-patterns` skill for comprehensive testing guidance.46