Skip to main content

This skill may not reflect the latest upstream change

Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.

DocsOfficialCertifiedAI reviewed Jul 21, 2026

runbook

Generate an operations runbook from your deployment config, Docker/K8s manifests, CI/CD pipelines, and monitoring setup. Triggers: you need a runbook, ops playbook, deployment guide, incident response plan, or production operations documentation.

v2.0.110 installs

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install runbook
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/runbook/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are in AUTONOMOUS MODE. Do NOT ask questions. Analyze the project's
infrastructure and operations artifacts to produce a comprehensive runbook.

INPUT:
$ARGUMENTS

Accepted arguments:

  • No arguments: generate a complete operations runbook.
  • deployment: focus on deployment procedures only.
  • incident: focus on incident response procedures only.
  • database: focus on database maintenance procedures only.
  • troubleshooting: focus on troubleshooting guides only.

PHASE 1: INFRASTRUCTURE DISCOVERY


Step 1.1 -- Deployment Configuration

Scan for deployment artifacts:

TypeFiles to Check
DockerDockerfile, docker-compose.yml, docker-compose.*.yml
Kubernetesk8s/, kubernetes/, manifests/, *.yaml with apiVersion:
HelmChart.yaml, values.yaml, templates/
Terraform*.tf, terraform/, infrastructure/
Serverlessserverless.yml, SAM template.yaml
PaaSProcfile, fly.toml, vercel.json, netlify.toml, app.yaml
PM2ecosystem.config.js

Step 1.2 -- CI/CD Pipeline

Scan for: .github/workflows/*.yml, .gitlab-ci.yml, Jenkinsfile,
.circleci/config.yml, bitbucket-pipelines.yml, cloudbuild.yaml,
azure-pipelines.yml.

Read each pipeline file and extract build steps, deployment targets,
environment variables, secrets referenced, and branch triggers.

Step 1.3 -- Database Configuration

Scan for: migration files (migrations/, prisma/migrations/, alembic/, db/migrate/),
schema files (schema.prisma, models.py, *.entity.ts), seed files, database config
(database.yml, knexfile.js), and backup scripts.

Step 1.4 -- Monitoring and Observability

Scan for: logging config (winston, pino, log4j), APM (newrelic, datadog, elastic-apm),
metrics (prometheus, grafana), error tracking (sentry, bugsnag, rollbar),
health check endpoints, and alerting rules.

Step 1.5 -- Environment Configuration

Scan for: .env.example, environment-specific configs, feature flags, and
secrets management (vault, AWS SSM, sealed secrets).


PHASE 2: RUNBOOK GENERATION


Generate docs/runbook.md with these sections. Only include sections relevant
to detected infrastructure. Every procedure must have copy-pasteable commands.

The runbook MUST cover these areas (skip if not applicable to project):

  1. Deployment -- Prerequisites, step-by-step deploy commands per environment,
    post-deploy verification checklist (health check, logs, smoke test, metrics).

  2. Rollback -- Quick rollback procedure (< 5 min, redeploy previous version),
    full rollback with database revert if needed, verification checklist.

  3. Scaling -- Scale up/down commands, auto-scaling config and thresholds.

  4. Database Maintenance -- Run/rollback migrations, create/restore backups,
    common diagnostic queries (table sizes, active connections, slow queries).

  5. Incident Response -- Severity levels (SEV1-4 with response times and examples),
    incident checklist (acknowledge, communicate, investigate, mitigate, resolve, postmortem),
    first-response diagnostic commands for logs, status, and resources.

  6. Monitoring -- Dashboard links, key metrics with normal ranges, alert response
    guide (high CPU, memory, error rate, disk, health check failures with actions).

  7. Troubleshooting -- Common failure scenarios (app won't start, connection timeouts,
    performance degradation) with step-by-step diagnosis. Error-to-solution lookup table.

Format: use markdown headers, numbered steps with fenced bash blocks for commands,
checklists for verification, and tables for reference data.

If a runbook already exists, read it first and preserve manually-written sections.


PHASE 3: VALIDATE AND WRITE


For each command in the runbook:

  • Verify the referenced tool/CLI exists in the project's dependencies or Dockerfile
  • Verify paths and file references are correct
  • Verify environment variable names match what the project uses

Write the runbook to docs/runbook.md.


SELF-HEALING VALIDATION (max 2 iterations)


After producing documentation, validate completeness:

  1. Verify all required sections are present and non-empty.
  2. Verify internal cross-references and links resolve correctly.
  3. Verify no placeholder text remains ("{TODO}", "[TBD]", "...", "etc.").
  4. Verify code examples are syntactically valid.

IF VALIDATION FAILS:

  • Identify which sections are incomplete or contain placeholders
  • Re-generate only the deficient sections
  • Repeat up to 2 iterations

OUTPUT


Runbook Generated

Infrastructure Detected

  • Deployment: [Docker / K8s / Serverless / etc.]
  • CI/CD: [GitHub Actions / GitLab CI / etc.]
  • Database: [PostgreSQL / MongoDB / etc.]
  • Monitoring: [Datadog / Prometheus / etc.]
  • Environments: [dev, staging, production]

Sections Generated

  • Deployment procedures
  • Rollback procedures
  • Scaling instructions
  • Database maintenance
  • Incident response
  • Monitoring and alerts
  • Troubleshooting guide

File Written

  • docs/runbook.md

SELF-EVOLUTION TELEMETRY


After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

  • Look for the project path in ~/.claude/projects/
  • If found, append to skill-telemetry.md in that memory directory

Entry format:

### /runbook — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.
Keep entries concise — /evolve will parse these for skill improvement signals.


DO NOT


  • Do NOT fabricate infrastructure details. Only document what is evident from config files.
  • Do NOT include actual secrets, passwords, or API keys in the runbook.
  • Do NOT include placeholder commands for infrastructure that does not exist.
  • Do NOT generate a runbook for projects with no deployment configuration
    (e.g., a library or CLI tool). Report that no runbook is needed and suggest /readme.
  • Do NOT include generic advice not specific to this project's stack.

NEXT STEPS:

After generating the runbook:

  • "Run /document to check overall documentation health."
  • "Run /diagram to generate infrastructure diagrams."
  • "Run /devops to review and improve the deployment pipeline."
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion to interfaces using modern CSS — scroll-driven animations, view transitions, @starting-style, and GPU-accelerated transforms. Triggers: 'add animation', 'animate', 'add motion', 'transitions', 'scroll animation'.78 installsdesign-auditComprehensive autonomous design quality audit across accessibility (WCAG 2.2), performance, theming, responsive/adaptive design, and anti-pattern detection. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.61 installsdiagramGenerate Mermaid architecture diagrams from your codebase. Produces C4 context and container diagrams, sequence diagrams for key flows, ER diagrams from database schemas, and module dependency graphs. Use when you need architecture diagrams, system diagrams, database ERD, sequence diagrams, dependency visualization, or C4 model diagrams.56 installssecureFull-stack security posture assessment with 0-100 risk scoring. Scans dependency vulnerabilities (npm audit, pip-audit, cargo audit, govulncheck), dangerous code patterns (SQL injection, eval, command injection, ReDoS, innerHTML, XSS vectors), authentication gaps (missing auth middleware.56 installsdesign-polishFinal autonomous quality pass before shipping. Fixes alignment, spacing, consistency, typography hierarchy, color harmony, motion timing, and every micro-detail that separates good from great..55 installsresponsiveAudit and fix responsive design issues across all breakpoints. Scans for fixed widths that cause mobile overflow, missing media query variants, non-responsive images, undersized touch targets below 48px, unreadable typography, and horizontal scroll violations..49 installs

More from Skills Hub

View source →
security-reviewSecurity audit and vulnerability assessment for any codebase. Scans for authentication bypasses, missing auth middleware, broken JWT validation (algorithm confusion, weak secrets, missing expiry), OAuth state and PKCE flaws, IDOR and horizontal privilege escalation.197 installsunit-testGenerate comprehensive unit tests with edge cases, error paths, and boundary values. Triggers: you need to add unit tests, increase code coverage, test edge cases, or verify error handling paths.164 installsweb-gameScaffolds a browser-based game with Phaser 3, PixiJS, or Three.js including game loop, asset pipeline, responsive canvas, input handling, audio, save/load, and deployment to itch.io or web. Triggers: on: "web game", "browser game", "html5 game", "phaser game", "pixi game".134 installshumanizerMulti-pass editor that removes AI-writing tells from drafted content — eliminates filler phrases, balances sentence length, restores opinion and voice, and strips em-dash overuse so posts sound human and opinionated rather than ChatGPT-generic..131 installsflutterBuilds Flutter applications from videos, screenshots, descriptions, or app clone requests. Triggers on: flutter app, build a mobile app, replicate this app in Flutter, build from video, build from screenshots, clone this app, build an app, make an app like, recreate this UI.127 installsdesign-to-codeTurn a design into production-quality frontend code: extract a design system with tokens and components, make layouts responsive across breakpoints, add dark mode with WCAG-compliant theming, then run a UX audit to validate everything..124 installs

More Docs skills

Browse category →

Frequently asked questions about runbook

What does the runbook skill do?

Generate an operations runbook from your deployment config, Docker/K8s manifests, CI/CD pipelines, and monitoring setup. Triggers: you need a runbook, ops playbook, deployment guide, incident response plan, or production operations documentation. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the runbook skill?

Run `npx @skills-hub-ai/cli install runbook` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/runbook/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does runbook work with?

runbook runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the runbook skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use runbook after installing it?

In Claude Code, type `/runbook` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the runbook skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.