runbook-generator

Generate operational runbooks from project files. Scans Dockerfiles, docker-compose.yml, systemd units, Makefiles, package.json, and config files to produce step-by-step operational runbooks with start/stop/restart/deploy/rollback/troubleshoot procedures. Use when asked to create a runbook, generate ops docs, create operational documentation, build a deployment guide, document service procedures, or create an SRE runbook. Triggers on "create runbook", "ops documentation", "deployment guide", "operational docs", "SRE runbook", "service procedures", "how to deploy".

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "runbook-generator" with this command: npx skills add charlie-morrison/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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

RootCraft Learning System

RootCraft Learning System - An integrated learning methodology combining First Principles Thinking, Taxonomy-Based Classification, Feynman Technique, and Rec...

Registry SourceRecently Updated
General

Amazon Listing Doctor

亚马逊Listing全方位诊断工具 — Rufus适配度评分 + 场景词覆盖分析 + 转化逻辑优化建议。基于行业知识库对Listing进行5维诊断,帮助卖家了解产品在Rufus对话中的可见度,并生成针对性的优化方案。

Registry SourceRecently Updated
General

Amazon Aplus Generator

快速生成符合亚马逊规范的专业A+内容方案,支持多类目多语言及模块智能匹配与合规自检。

Registry SourceRecently Updated
General

Shadow Traffic Tester

Set up and analyze shadow traffic testing to compare new service versions against production without user impact

Registry SourceRecently Updated