What problem does it solve? Building a production Node.js backend requires many decisions—framework choice, project structure, error handling, authentication, database access—and getting any of them wrong leads to fragile, hard-to-maintain services. This Skill provides proven architectural patterns and working TypeScript code so you can scaffold a well-structured backend without reinventing each layer. ## Core Features & Use Cases - Framework Setup: Ready-to-use Express and Fastify server configurations with security middleware (helmet, CORS, compression) and structured logging via Pino. - Layered Architecture: Complete controller-service-repository implementation with dependency injection, custom error classes, and a global error handler. - Auth, Validation & Infrastructure: JWT authentication with refresh tokens, Zod validation middleware, Redis-backed rate limiting and caching, PostgreSQL connection pooling, and transaction handling. - Use Case: You need to build a REST API for a user management system. Use this Skill to generate the layered structure, wire up JWT auth, add Zod input validation, and configure a pooled PostgreSQL connection with proper transaction support. ## Quick Start Use the nodejs-backend-patterns skill to scaffold an Express REST API with layered architecture, JWT authentication, and PostgreSQL integration.