nodejs
Installation
SKILL.md
Non-negotiable rules:
- Read
references/stack.mdfirst to determine the runtime (Node.js or Bun), framework, and locked decisions. - Then load only the references needed for the actual task.
- TypeScript strict mode — no
any, no implicit returns, no unchecked index access. - All async functions must handle errors — no unhandled promise rejections. Use try/catch or
.catch()at every boundary. - Input validation at system boundaries — Zod schemas on every external input (request bodies, query params, env vars, CLI args). Never trust
req.body. - Structured logging via pino — no
console.login production code. JSON to stdout, parsed by log aggregators. - Graceful shutdown — handle SIGTERM/SIGINT, drain connections, finish in-flight work, close DB pools.
- No secrets in code or logs — env vars validated at startup, never logged, never in error responses.
nodejs
Inputs
$request: The backend task, subsystem, bug, or feature being worked on
Related skills