Agent skill · operations · borghei

runbook-generator

Generate operational runbooks from codebase analysis covering deployment, incident response, scaling, and monitoring, with copy-paste commands and rollback steps. Use when bootstrapping ops docs, preparing for on-call, or post-incident.

Why this skill is useful

Adds 3 executable scripts for generating, validating, and checking the freshness of operational runbooks that are tailored to specific infrastructure.

What it needs

Requires python installed locally. About 4k tokens when loaded. Last updated 2026-07-21. 462 stars on the source repository.

What this skill does

Runbook Generator Analyze a codebase and generate production-grade operational runbooks with copy-paste commands, verification checks after every step, rollback procedures for every destructive action, escalation paths with contact information, and time estimates for capacity planning. Detects the stack (CI/CD, database, hosting, containers) and produces runbooks tailored to the actual infrastructure. Includes staleness detection to flag runbooks when referenced config files change. Keywords: runbook, operational procedures, incident response, deployment, rollback, database maintenance, scaling, monitoring, on-call, SRE, postmortem Core Capabilities Stack detection — identify CI/CD platform, database, hosting, and orchestration from repo files; map to runbook templates; extract connection strings, deploy commands, and infra details. Runbook types — deployment (pre-checks, deploy, smoke tests, rollback), incident response (triage→diagnose→mitigate→resolve→postmortem), database maintenance (backup, migration, vacuum, reindex), scaling (horizontal/vertical), and monitoring (alerts, dashboards, on-call rotation). Format discipline — numbered steps with copy-paste commands, a VERIFY check after EVERY step, time estimates, a rollback procedure for every destructive action, and escalation paths with decision criteria. Maintenance — staleness detection linked to config file modification dates, quarterly review cadence, and a staging dry-run validation framework. When to Use Codebase has no runbooks and you need to bootstrap them. Existing runbooks are outdated or incomplete. Onboarding a new engineer for on-call rotation. Preparing for an incident response drill. Post-incident improvement: updating runbooks with lessons learned. Clarify First Before generating the runbook, confirm these inputs. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills borghei/runbook-generator

View the source on GitHub

Browse the @skills marketplace