一键导入
runbook-generator
Generate operational runbooks documenting what needs to be running locally and in production for effective system testing and deployment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate operational runbooks documenting what needs to be running locally and in production for effective system testing and deployment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Argue against proposed actions to test judgment quality. Not "is the code correct" but "should we be doing this at all?" Aligned with robustness, not performance.
Orchestrate Claude Code agent teams for parallel multi-agent collaboration
Learn and integrate new APIs, creating permanent skills for external service access.
Create and update CHANGELOG.md with entries that include AI model/CLI attribution, PRD context, and task references.
Audit decisions for judgment quality, compliance bias, and manipulation vulnerability. Inspired by Anthropic's Project Vend Phase 2 finding that helpfulness training creates exploitable attack surface.
Extract visual style from reference UI screenshot and codify into reusable design system.
| name | runbook-generator |
| description | Generate operational runbooks documenting what needs to be running locally and in production for effective system testing and deployment. |
| category | documentation |
Create a comprehensive operational runbook that answers "what needs to be running" for a system to be tested and deployed effectively, with startup checklists and smoke tests for both local and production environments.
.md)RUNBOOK.mdDiscover System Architecture Analyze the codebase to identify:
Service Discovery:
package.json files and their scripts (start commands, dev commands)docker-compose.yml files (service definitions, ports, dependencies)fly.toml, vercel.json, Dockerfile, K8s manifests)Dependency Discovery:
.env.example files (required environment variables, external services)Port & Health Check Discovery:
/health, /status, /ping)Runtime Discovery:
GATE: Environment Strategy Ask the user:
Which environments does this system have?
a) Local/Development only
b) Local + Staging
c) Local + Production
d) Local + Staging + Production
Where are production secrets stored?
(e.g., 1Password, AWS Secrets Manager, Fly.io secrets, Vercel env vars, etc.)
Ask About Testing Scope
What level of local testing should the runbook support?
a) Minimum (just the core services, no external dependencies)
b) Full local stack (all services + external deps or local stubs)
c) Hybrid (local services + remote staging dependencies)
Generate "System Pieces" Section Document the system architecture:
## System Pieces (What Talks To What)
**Runs on developer machine:**
- [CLI tool name] (what it does)
- [Background daemon] (what it polls/monitors)
- [Hook system] (what it intercepts)
**Runs as services:**
- [Service 1] (`path/`) - what it does, what it exposes
- [Service 2] (`path/`) - what it does, dependencies
**External dependencies:**
- [Database/Storage] - why it's needed
- [Third-party API] - what features depend on it
Generate "Local Testing" Section
Minimum Requirements:
## Local Testing (What Must Be Running)
### Minimum to test "[core functionality]"
1. **[Service 1] running locally** on `http://localhost:XXXX`
2. **[Service 2] running locally** on `http://localhost:YYYY`
Docs:
- [Link to relevant local dev guide with line number]
Full Local E2E:
### Full local end-to-end (closest to real usage)
In addition to the minimum above:
3. **[Daemon/CLI] running** (`command to start`)
4. **[Hook system] enabled** (`command to enable`)
5. **[Dependencies]** (database seeded, external service configured)
Environment variables required:
- `VAR_NAME` (example value, what it controls)
- `API_KEY` (where to get it)
Local Bring-Up Checklist:
### Local bring-up checklist
**1) Configure environment**
- Copy `.env.example` → `.env` and fill required values
- Required vars: [list critical ones]
**2) Start [Service 1]**
- From repo root: `bun run dev:service1`
- Or directly: `cd service1 && npm run dev`
- Or via Docker: `docker-compose up service1`
**3) Start [Service 2]**
- [Commands...]
**4) Smoke checks**
- Service 1 health: `curl http://localhost:3000/health`
- Service 2 loads: open `http://localhost:5173`
- [Other verification commands]
Generate "Production Testing" Section
Minimum Production Deployment:
## Production Testing (What Must Be Running)
### Minimum production deployment
- **[Service 1] deployed** (platform name)
- **[Service 2] deployed** (platform name)
- **[Database/Storage] configured** (provider name)
- **Production secrets configured** (list critical secrets)
Docs:
- Deployment guide: `DEPLOYMENT_GUIDE.md:1`
- Production setup: `path/PRODUCTION_SETUP.md:1`
Production Smoke Test Checklist:
### Production smoke test checklist
1. Service 1 is up: `GET /health` returns 200
2. Service 2 is up: homepage loads
3. Authentication works: login flow completes
4. API key creation works: can generate keys in UI
5. Core flow works end-to-end:
- [Step 1]
- [Step 2]
- [Step 3]
- Confirm expected outcome
Automated test scripts:
- `path/to/test-script.sh` (what it tests)
Generate "Notes / Common Gotchas" Section Document common failure modes discovered during analysis:
## Notes / Common Gotchas
- If [Service] can't talk to [Dependency] (bad creds/network), [what breaks]
- If testing [feature] across [architecture detail], [config vars] need to match [topology]
- Port conflicts: If you see [error], check if [service] is already running
- Missing dependencies: [Service] requires [dependency] to be installed
- Environment mismatches: [Common mistake and how to fix it]
Present Draft for Review Show the generated runbook to the user before saving:
I've generated a runbook with the following sections:
- System architecture (X services, Y dependencies)
- Local testing requirements (minimum + full E2E)
- Production deployment requirements
- Startup checklists with copy-pasteable commands
- Smoke test verification steps
- Common gotchas
Would you like me to save this to RUNBOOK.md?
Save Runbook
Save to RUNBOOK.md at repository root
Summarize Next Steps
Runbook created at RUNBOOK.md:1
To use this runbook:
- For local development: Follow "Local Testing" section
- For deployment: Follow "Production Testing" section
- For troubleshooting: Check "Common Gotchas" section
To update this runbook when infrastructure changes:
- Re-run this skill to regenerate
- Or manually edit RUNBOOK.md
The generated RUNBOOK.md should follow this structure:
# [Project Name] Runbook (Local + Production)
This runbook answers: "what needs to be running" for [Project] to be tested effectively.
## System Pieces (What Talks To What)
**Runs on the developer machine**
- [List CLI tools, daemons, hooks]
**Runs as services**
- [List backend services, frontends, APIs]
**External dependencies**
- [List databases, storage, third-party APIs]
## Local Testing (What Must Be Running)
### Minimum to test "[core functionality]"
[Numbered list with ports and docs references]
### Full local end-to-end (closest to real usage)
[Additional requirements beyond minimum]
### Local bring-up checklist
**1) Configure [thing]**
[Copy-pasteable commands]
**2) Start [service]**
[Copy-pasteable commands]
**3) Smoke checks**
[Verification curl commands]
## Production Testing (What Must Be Running)
### Minimum production deployment
[List deployed services, dependencies, secrets]
### Production smoke test checklist
[Numbered verification steps with expected outcomes]
## Notes / Common Gotchas
[Bulleted list of common failure modes and solutions]
The runbook should be usable by:
README.md:42)