runbook-gap-fill
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "runbook-gap-fill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-868838d1baecbab72f41e4eea809c91c3081da645f837fa9bae4e0937c427215. Verify the upstream source and version against https://skillhub.cn/skills/user_bd3231bd/runbook-gap-fill before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Compare an incident post‑mortem against the on‑call runbook to identify gaps and conflicts, and provide suggested steps to fill them; intended for improving the runbook when fixes will not be executed automatically.
Introduction source: third_party · user_bd3231bd · 0.1.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "runbook-gap-fill"
description: 对照故障经过检查值班 runbook 的缺口与冲突并给出补全步骤建议;当用户要改进手册且不自动执行修复时使用。Runbook 缺口补全
用途
对照一次真实故障经过(或演练记录)与现有值班 runbook,产出:
- 缺口表 — runbook 未覆盖但故障中实际用到的动作/判断
- 冲突表 — runbook 与实操不一致之处
- 建议补丁 — 可粘贴进手册的步骤段落(草案)
- 待确认 — 缺权限/监控名/命令时不编造
本技能做文档改进参谋,不做故障事中通报、不登录机器、不自动执行修复命令。
表头见 references/gap-template.md。
适用场景
- 适合: 故障复盘后想更新 runbook;演练后发现手册跟不上。
- 不适合:
- 事中对内状态通报——见
incident-status-update - 事故根因与改进项复盘——见
postmortem-lite - 制度/SOP 与实操对照(分母是制度条款,不是值班手册)——见
sop-gap-check - 自动 SSH/改配置/切流量
- 从零设计整套监控平台
- 事中对内状态通报——见
边界与差异(防误触发)
| 易混需求 | 本技能 | 不做什么 |
|---|---|---|
事中通报(incident-status-update) |
事后改文档 | 不写给业务的进度短讯 |
事故复盘(postmortem-lite) |
只改手册步骤 | 不出根因结论与改进项 |
SOP 对照(sop-gap-check) |
分母是值班 runbook | 不查制度条款与现场执行差距 |
| 写全新 runbook | 以现有手册+事实对照 | 不虚构未提供的系统拓扑 |
| 自动修复 | 只建议步骤文本 | 不执行任何命令 |
怎么使用(普通用户)
在 AI 助手里直接说,例如:
- 「用 Runbook 缺口补全,对照这次超时故障看手册缺什么」
- 「runbook 和实操对一下,列出缺口和建议补丁」
- 「演练记录如下,帮我补值班手册步骤」
使用步骤
缺关键事实时先追问,禁止编造监控名、dashboard 链接、具体 shell 命令参数。
1. 收集输入
| 字段 | 说明 |
|---|---|
| 现有 runbook | 全文或相关章节 |
| 故障/演练经过 | 时间线、现象、实际操作、结果 |
| 环境备注 | 可选:生产/预发、服务名 |
缺 runbook 或故障经过之一: 先请补齐,可先列「需要哪些材料」。
2. 逐段对照
把故障时间线中的每个关键动作,映射到 runbook 是否已有对应步骤:
- 有且一致 → 通过
- 有但冲突 → 入冲突表
- 无 → 入缺口表(注明故障中的证据摘录)
3. 输出缺口/冲突/补丁
严格按 references/gap-template.md。
建议补丁用「可粘贴」的步骤语气;对不确定的命令写「待确认命令」占位,勿瞎编。
4. 页脚
固定:「以上为 runbook 文档改进建议,不包含自动执行;请人工审阅后合入手册。」
示例
输入:
【runbook 节选】
1. 收到 P1 告警后查看 CPU 面板
2. CPU>90% 则扩容两台
3. 通知业务群
【故障经过】
- 14:02 接口 P99 升高,告警是错误率而非 CPU
- 14:05 查到依赖支付超时;CPU 正常
- 14:10 打开支付方状态页确认对方故障
- 14:15 启用本地降级开关后恢复
- 手册未提降级开关位置
输出:
### 缺口
| ID | 故障证据 | runbook 缺失 | 建议补丁要点 |
| --- | --- | --- | --- |
| G1 | 告警为错误率/P99,CPU 正常 | 仅写 CPU 路径 | 增加「错误率/依赖超时」排查分支 |
| G2 | 查支付方状态页 | 无外部依赖状态检查 | 增加依赖状态页链接占位(待确认 URL) |
| G3 | 启用本地降级开关 | 无降级步骤 | 增加降级开关路径与确认项(待确认路径) |
### 冲突
| ID | runbook 原文 | 实操 | 建议 |
| --- | --- | --- | --- |
| C1 | CPU>90% 则扩容 | 本次 CPU 正常且扩容无效 | 将扩容改为「资源型告警」专节,避免误导 |
### 建议补丁(草案)
#### 依赖超时/错误率升高
1. 确认告警类型(错误率/P99/依赖失败)而非仅看 CPU
2. 打开「待确认:依赖状态页」核对上游
3. 若确认上游故障:执行「待确认:降级开关」并记录操作人
4. 恢复后取消降级并复盘
### 待确认
1. 支付状态页 URL
2. 降级开关控制台路径与权限角色
以上为 runbook 文档改进建议,不包含自动执行;请人工审阅后合入手册。
常见问题(FAQ)
- 能不能直接改我仓库里的 runbook 文件? 可给出补丁文本;是否写入文件由用户确认后操作。
- 没有故障经过只有手册? 可做「常见场景覆盖自检」但标记为无实证,优先级低于对照真实故障。
- 要我 SSH 上去验证? 拒绝执行;只建议人工验证项。
已知限制
- 不访问生产集群、监控或密钥。
- 不保证补丁命令在真实环境可运行——必须人工审阅。
- 中文交互;不依赖海外 API。
变更说明
- 0.1.1: 消歧补强。「不适合」与边界表点名邻近技能(
incident-status-update事中通报、postmortem-lite事故复盘、sop-gap-check制度对照),原泛指表述改为可检索的技能名。 - 0.1.0: 首发。对照故障的 runbook 缺口/冲突/补丁流程。
Current listing version
0.1.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对运维文档改进的明确场景,具有广泛实用价值
- 聚焦真实故障与手册对照,解决实际痛点
Highlights
- 触发词覆盖多种变体(对照故障、演练记录、补手册)
- 边界清晰,防误触发说明充分
Highlights
- 步骤划分清晰,含完整端到端示例
- frontmatter 完整,文档结构规范
Highlights
- 缺材料时主动追问,不编造关键信息
- 不可逆操作需用户确认,可靠性高
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 131
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.