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 從公開儲存庫中收錄這些內容。

檢舉或申請下架