关于 runbook-creation
用于编写运维手册的技能,涵盖事件响应、日常操作、维护和恢复的分步流程,适合整理值班与服务运维程序。
主要功能
- 01事件响应流程
- 02SOP 与值班手册
- 03维护与恢复指南
- 04严重级别与升级指引
- 05验证与沟通步骤
适用场景
- 01编写事件响应流程
- 02准备值班操作手册
- 03记录部署或维护步骤
- 04规划服务恢复程序
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ aj-geddes/ useful-ai-prompts --skill runbook-creation安装后在 Claude Code 中输入/runbook-creation确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/communication.mdinvestigation-steps.mdpost-incident.mdresolution-steps.mdsymptoms.mdverification.mdscripts/validate-api.shtemplates/api-scaffold.yaml详细介绍
操作手册编写
目录
概述
编写全面的操作手册,为常见的运维任务、事件响应和系统维护提供分步操作流程。
适用场景
- 事件响应流程
- 标准操作规程(SOP)
- 值班手册
- 系统维护指南
- 灾难恢复流程
- 部署操作手册
- 升级处理流程
- 服务恢复指南
快速开始
最小可用示例:
# Incident Response Runbook
## Quick Reference
**Severity Levels:**
- P0 (Critical): Complete outage, data loss, security breach
- P1 (High): Major feature down, significant user impact
- P2 (Medium): Minor feature degradation, limited user impact
- P3 (Low): Cosmetic issues, minimal user impact
**Response Times:**
- P0: Immediate (24/7)
- P1: 15 minutes (business hours), 1 hour (after hours)
- P2: 4 hours (business hours)
- P3: Next business day
**Escalation Contacts:**
- On-call Engineer: PagerDuty rotation
- Engineering Manager: +1-555-0100
- VP Engineering: +1-555-0101
- CTO: +1-555-0102
// ... (see reference guides for full implementation)
```
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [Symptoms](references/symptoms.md) | Symptoms, Severity: P0 (Critical), Initial Response (5 minutes) |
| [Investigation Steps](references/investigation-steps.md) | Investigation Steps |
| [Resolution Steps](references/resolution-steps.md) | Resolution Steps |
| [Verification](references/verification.md) | Verification |
| [Communication](references/communication.md) | Communication |
| [Post-Incident](references/post-incident.md) | Post-Incident |
## Best Practices
### ✅ DO
- Include quick reference section at top
- Provide exact commands to run
- Document expected outputs
- Include verification steps
- Add communication templates
- Define severity levels clearly
- Document escalation paths
- Include useful links and contacts
- Keep runbooks up-to-date
- Test runbooks regularly
- Include screenshots/diagrams
- Document common gotchas
### ❌ DON'T
- Use vague instructions
- Skip verification steps
- Forget to document prerequisites
- Assume knowledge of tools
- Skip communication guidelines
- Forget to update after incidents
评论
支持 Markdown