用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/arbazkhan971/godmode --skill node命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Turn on Godmode. 135 skills, 7 subagents, zero configuration. Routes to the right skill automatically.
Backup and disaster recovery. backup strategy, disaster recovery, RPO/RTO, data integrity, durability, runbook.
Changelog and release notes management. Keep a Changelog format, Conventional Commits auto-generation, breaking change communication, migration guides, audience-specific notes.
基于 SOC 职业分类
正在显示 SKILL.md
| name | node |
| description | Node.js backend development. |
/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 |