跳到正文
Skillpedia
技术文档29k · #9598

runbook-generator

它能做什么

这项技能为软件服务创建称为运行手册的操作指南。适合需要明确部署、事件处理和回滚步骤的团队。

适用场景

  • ✓当某个服务还没有运行手册、上线前需要一份基本版本的时候。
  • ✓当团队的运行手册格式不统一、需要统一格式的时候。
  • ✓当新的值班人员需要标准操作文档的时候。

技能链接

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/runbook-generator/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/runbook-generator/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为我们的支付 API 创建运行手册,涵盖部署、事故处理和回滚。”

每周 5 个新技能,1 分钟读完。

工作原理

它会生成包含启动、停止、健康检查和回滚等标准章节的运行手册框架,然后由你补充服务的具体细节。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

# Print runbook to stdout
python3 scripts/runbook_generator.py payments-api

# Write runbook file
python3 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.
常见问题

它会自动填入我的服务细节吗?

不会。它只创建结构,由你添加服务所需的命令、链接和检查项。

运行手册应存放在哪里?

该技能建议把它与服务代码一起保存在版本控制中。

它包含回滚步骤吗?

包含。回滚是标准章节之一,与部署和事故响应并列。

详情

作者的原始描述

Use when a service needs runbooks for deploy, incident response, maintenance or rollback, before launch. Generates them per environment with runbook_generator.py.

repo: alirezarezvani/claude-skills

热度

GitHub 星标
29k
排名
#9598
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能