/engineering-advanced-skills:runbook-generatorfrom engineering-advanced-skills
Generates operational runbooks (deploy, incident, database, scaling, monitoring) with stack-specific commands, VERIFY steps, and rollback procedures. Validates and tracks staleness for on-call readiness.
Ships in engineering-advanced-skills. 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.
Read when SKILL.md points to them; scripts run unread.
The agent writes runbooks an on-call engineer can follow at 3 a.m.: numbered steps with copy-paste commands, a VERIFY line after every step, a rollback for every destructive action, an escalation table, and an owner plus a last-verified date so staleness can be measured.
Before generating the runbook, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
docker-compose*.yml, k8s/, fly.toml, vercel.json, ORM config (alembic.ini, prisma/schema.prisma, manage.py). The detection commands are in references/runbook-templates.md.assets/sample_service.json). Set stack.migrate_command when the framework default would be wrong, and list config_files so drift can be checked.runbook_scaffolder.py.runbook_validator.py --strict. Fix every finding; --strict also fails on leftover FILL IN placeholders in commands.staleness_checker.py in CI so a runbook goes stale loudly, not silently.# from engineering/runbook-generator/; write output outside the repo
OUT=$(mktemp -d)
python3 scripts/runbook_scaffolder.py -i assets/sample_service.json --type deployment -o "$OUT/deploy.md"
python3 scripts/runbook_validator.py "$OUT/deploy.md" --strict # exit 0: the draft is structurally complete
python3 scripts/runbook_validator.py assets/flawed_runbook.md # exit 1: 7 errors (no rollback, hardcoded DB URL, ...)
python3 scripts/staleness_checker.py assets/flawed_runbook.md --as-of 2026-03-01 # exit 1: critical, 415 days
| Tool | Purpose | Key flags | Exit codes |
|---|---|---|---|
scripts/runbook_scaffolder.py | Runbook draft from a service JSON; commands derived from hosting, database, CI and framework | -i FILE|-, --type deployment|incident|database|scaling|monitoring, -o FILE, --format markdown|json | 0 written; 2 bad input |
scripts/runbook_validator.py | Required sections per type, VERIFY lines, time estimates, Owner / Last verified, escalation table, hardcoded DB credentials, placeholders in commands | FILES..., --dir DIR, --strict, --format json | 0 valid; 1 findings; 2 missing file or no input |
scripts/staleness_checker.py | Age of each runbook's Last verified date, plus config files changed since then (via git log) | PATHS..., --threshold 90, --warning 60, --critical 180, --as-of YYYY-MM-DD, --repo-root, --json | 0 fresh or warning; 1 stale or critical; 2 bad input |
Pass --as-of to the staleness checker when you need a reproducible result; without it, age is measured from today.
Mistake: Shipping the scaffold as the runbook. Why it matters: The scaffold's Last verified date is the generation date, and its steps have never been run; on-call will trust both. Instead: Replace FILL IN values, dry-run in staging, then re-date it.
Mistake: A deploy step with no rollback, or a rollback that only reverts the code. Why it matters: Schema migrations and data changes outlive a code rollback; the incident gets worse when the old code meets the new schema. Instead: Pair each migration with its down path or a restore-from-backup step, and say which steps cannot be undone.
Mistake: Hardcoding connection strings or tokens in commands.
Why it matters: Runbooks are copied into tickets and chat; credentials leak and go stale.
Instead: Use environment variables ($PROD_DB_URL); the validator flags inline database URLs as errors.
| File | Purpose |
|---|---|
scripts/runbook_scaffolder.py | Draft generator (stdlib only) |
scripts/runbook_validator.py | Completeness and quality gate |
scripts/staleness_checker.py | Freshness and config-drift gate |
assets/sample_service.json | FastAPI + PostgreSQL + Kubernetes service; all five types pass --strict |
assets/flawed_runbook.md | Deliberately incomplete runbook; validator exits 1 |
Covers: drafting deployment, incident, database, scaling and monitoring runbooks; validating structure and safety markers; staleness and config-drift checks.
Does not cover:
engineering/ci-cd-pipeline-builder).engineering/terraform-patterns).engineering/observability-designer).engineering/incident-commander) and security incident playbooks (see engineering/security-audit).assets/flawed_runbook.md (opens in a new tab)assets/sample_service.json (opens in a new tab)references/quality-and-troubleshooting.md (opens in a new tab)references/runbook-templates.md (opens in a new tab)references/staleness-and-maintenance.md (opens in a new tab)scripts/runbook_scaffolder.py (opens in a new tab)scripts/runbook_validator.py (opens in a new tab)scripts/staleness_checker.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
Other plugins' skills for the same job