Runbook Generator

v1.0.0

Generate operational runbooks from project files. Scans Dockerfiles, docker-compose.yml, systemd units, Makefiles, package.json, and config files to produce...

0· 21· 1 versions· 0 current· 0 all-time· Updated 2h ago· MIT-0

Install

openclaw skills install cm-runbook-generator

Runbook Generator

Generate operational runbooks by scanning project infrastructure files. Produces structured Markdown runbooks with procedures for common ops tasks.

Quick Generate

python3 scripts/generate_runbook.py /path/to/project

Output Formats

# Markdown (default)
python3 scripts/generate_runbook.py /path/to/project

# JSON (structured)
python3 scripts/generate_runbook.py /path/to/project --format json

# Specific output file
python3 scripts/generate_runbook.py /path/to/project -o RUNBOOK.md

What It Scans

FileWhat It Extracts
DockerfileBase image, exposed ports, entrypoint, build steps
docker-compose.ymlServices, ports, volumes, dependencies, env vars
systemd units (.service)ExecStart/Stop/Reload, dependencies, restart policy
MakefileTargets (build, test, deploy, clean, etc.)
package.jsonScripts (start, build, test, dev, deploy)
.env / .env.exampleRequired environment variables
nginx.confUpstream servers, listen ports, locations

Generated Sections

  1. Overview — Service name, description, tech stack
  2. Prerequisites — Required tools, access, credentials
  3. Environment Variables — Required vars with descriptions
  4. Build — How to build the project
  5. Deploy — Step-by-step deployment procedure
  6. Start/Stop/Restart — Service lifecycle commands
  7. Health Check — How to verify the service is running
  8. Rollback — How to revert to previous version
  9. Troubleshooting — Common issues and solutions
  10. Monitoring — Logs, metrics, alerts
  11. Contacts — On-call, escalation (template)

Workflow

  1. User points to a project directory
  2. Script scans for infrastructure files
  3. Extracts operational information
  4. Generates structured runbook
  5. Present to user for review and customization

Version tags

latestvk974brnkg0t8b45mars14kcf9s85xc8m