Runbook Generator

alirezarezvani/claude-skills/engineering/skills/runbook-generator

作者 alirezarezvani19392f7a0826无许可证27K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库5周前更新

Generate operational runbooks from a service name — deployment, incident response, maintenance, and rollback workflows. Templated structure customizable per environment. Use when documenting on-call procedures for a new service, standardizing incident response across teams, or producing runbooks before launching to production.

包含脚本DevOps & Cloud
AI 生成的概览

根据服务名称生成运维手册骨架,涵盖部署、事件响应、维护与回滚流程。

功能
该技能通过命令行脚本,根据服务名称生成运维手册文档。它输出带模板的骨架,包含启动、停止、健康检查和回滚等标准章节,以及升级与事件处理的占位内容。输出可打印到标准输出或写入文件,并附带部署与事件手册的参考模板。
适用场景
适用于服务缺少运维手册、需要快速建立基线时;各团队手册风格不一致时;值班人员入职需要标准化运维文档时;或在上线生产环境前搭建手册框架时。
运行要求
需要 Python 3 来运行随附脚本 scripts/runbook_generator.py。未说明需要凭据或网络访问;该技能附带可执行脚本和一个参考模板文件。

Runbook Generator

Tier: POWERFUL
Category: Engineering
Domain: DevOps / Site Reliability Engineering


Overview

Generate operational runbooks quickly from a service name, then customize for deployment, incident response, maintenance, and rollback workflows.

Core Capabilities

  • Runbook skeleton generation from a CLI
  • Standard sections for start/stop/health/rollback
  • Structured escalation and incident handling placeholders
  • Reference templates for deployment and incident playbooks

When to Use

  • A service has no runbook and needs a baseline immediately
  • Existing runbooks are inconsistent across teams
  • On-call onboarding requires standardized operations docs
  • You need repeatable runbook scaffolding for new services

Quick Start

bash
# Print runbook to stdoutpython3 scripts/runbook_generator.py payments-api
# Write runbook filepython3 scripts/runbook_generator.py payments-api --owner platform --output docs/runbooks/payments-api.md

Recommended Workflow

  1. Generate the initial skeleton with scripts/runbook_generator.py.
  2. Fill in service-specific commands and URLs.
  3. Add verification checks and rollback triggers.
  4. Dry-run in staging.
  5. Store runbook in version control near service code.

Reference Docs

  • references/runbook-templates.md

Common Pitfalls

  • Missing rollback triggers or rollback commands
  • Steps without expected output checks
  • Stale ownership/escalation contacts
  • Runbooks never tested outside of incidents

Best Practices

  1. Keep every command copy-pasteable.
  2. Include health checks after every critical step.
  3. Validate runbooks on a fixed review cadence.
  4. Update runbook content after incidents and postmortems.

来源与署名

来源:alirezarezvani/claude-skills位于engineering/skills/runbook-generator提交19392f7

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架