/godmode:nodefrom godmode
Guides Node.js backend development with framework selection, architecture patterns, middleware pipelines, stream/worker usage, and production hardening.
Ships in godmode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/godmode:node, "Node.js backend", "REST API"Type: REST API|GraphQL|real-time|microservice|CLI
Scale: <expected RPS, concurrent connections>
Framework: Express|Fastify|Hono|NestJS|none
Runtime: Node.js|Bun|Deno
Database: <PostgreSQL, MongoDB, Redis, etc.>
Deployment: Docker|serverless|PM2|Kubernetes
| Framework | Best For | Perf | Ecosystem |
| Express | Rapid prototyping | ~15K RPS | Massive |
| Fastify | High-perf JSON APIs | ~50K RPS | Growing |
| Hono | Edge/serverless | ~80K RPS | Growing |
| NestJS | Enterprise, DI | ~15K RPS | Large |
# Detect existing framework
cat package.json | grep -E "express|fastify|hono|nestjs"
IF < 1K RPS expected: Express is fine. IF > 10K RPS needed: prefer Fastify or Hono. IF enterprise with DI: NestJS.
src/
├── server.ts # Bootstrap, graceful shutdown
├── app.ts # App instance, global middleware
├── config/ # Env vars, DB config, logger
├── middleware/ # Auth, validate, rateLimit, errors
├── routes/ # Route definitions
├── controllers/ # Request parsing, response
├── services/ # Business logic
├── repositories/ # Data access
└── utils/ # Shared helpers
Order matters — design deliberately:
1. requestId() # Unique request ID
2. logger() # Log incoming request
3. cors() # CORS headers
4. helmet() # Security headers
5. rateLimit() # Rate limiting
6. auth() # Authentication
7. compress() # Response compression
--- Routes execute here ---
8. notFoundHandler # 404
9. errorHandler # Global errors (ALWAYS last)
Streams: use pipeline() for files > 10MB.
Never buffer entire file in memory.
Workers: use for CPU-bound tasks only
(image processing, PDF, heavy computation).
Pool size: max(1, cpus() - 1).
IF file upload > 10MB: stream to disk, never buffer. IF CPU task > 100ms: offload to worker thread.
[ ] Graceful shutdown (SIGTERM handler)
[ ] Health check (/health, /ready)
[ ] Structured logging (pino, not console.log)
[ ] Request ID propagation
[ ] Global error handler
[ ] Unhandled rejection handlers
[ ] Rate limiting
[ ] CORS configured
[ ] Helmet security headers
[ ] Request body size limits (1MB default)
[ ] Connection pooling (DB, HTTP clients)
[ ] Env vars via validated config (zod/joi)
# Node.js health and profiling
node --max-old-space-size=512 -e "console.log(process.memoryUsage())"
npm test -- --coverage
npm audit --audit-level=high
Append .godmode/node.tsv:
timestamp action files endpoints framework tests status
KEEP if: tests pass AND no sync I/O in request path
AND no unbounded caches.
DISCARD if: tests fail OR event loop lag regresses
OR memory leak detected.
STOP when FIRST of:
- All routes have validation + auth + error handling
- Graceful shutdown with connection draining
- Event loop p99 < 50ms under load
On failure: git reset --hard HEAD~1. Never pause.
| Failure | Action |
|---|---|
| Memory leak | --inspect + heap snapshots, check listeners |
| Event loop blocked | clinic doctor, move CPU to workers |
| Unhandled rejection | Add global handler, find the promise |
| Module resolution | Clear node_modules, check ESM/CJS |
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
135 skills in this plugin
/a11yAccessibility. WCAG 2.1 AA/AAA, a11y audit, color contrast, keyboard navigation, screen reader, Axe, Pa11y, Lighthouse./agentAI agent development. ReAct/plan-and-execute/multi-agent architectures, tool design, memory systems, guardrails, orchestration (LangChain, LlamaIndex, CrewAI, AutoGen)./analyticsProduct analytics implementation — event tracking, funnel analysis, A/B testing, Segment/Amplitude/Mixpanel/PostHog, privacy-compliant instrumentation./angularAngular architecture. NgRx, Signals, RxJS, standalone components, lazy loading, dependency injection, Jasmine, Jest./apiAPI design and specification. REST, GraphQL, gRPC, OpenAPI, design an API, create API spec, validate my API, endpoint./apidocsAPI documentation. OpenAPI, Swagger, Redoc, contract-first development, spec-first, code-first, interactive docs.Other plugins' skills for the same job