nodejs-backend
Node.js backend patterns with Express/Fastify, repositories
By alinaqi · 421 installs
npx skills add alinaqi/maggy --skill nodejs-backend
Source repository · Upstream listing
Node.js Backend Skill
Project Structure
API Design
Route Handler Pattern
Dependency Injection at Composition Root
Error Handling
Domain Errors
Global Error Handler
Database Patterns
Repository Pattern
Transactions
Configuration
Validated Config
Testing
Unit Tests (Core)
Integration Tests (API)
Node.js Anti Patterns
❌ Callback hell use async/await
❌ Unhandled promise rejections always catch or let error handler catch
❌ Blocking the event loop offload heavy computation
❌ Secrets in code use environment variables
❌ SQL string concatenation use parameterized queries
❌ No input validation validate at API boundary
❌ Console.log in production use proper logger
❌ No graceful shutdown handle SIGTERM
❌ Monolithic route files split by resource