# 事故指挥官 (incident-commander)

> 为生产事故分级、重建时间线并起草事后复盘，附带通报模板和运行手册框架。

- 分类: [监控与运维](https://www.myskills.tools/zh/categories/monitoring-ops/)
- 来源: 社区 · Alireza Rezvani
- 代码仓库: https://github.com/alirezarezvani/claude-skills/tree/main/engineering-team/skills/incident-commander (commit 91a20ba)
- SKILL.md: https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/skills/incident-commander/SKILL.md
- 安装命令: `npx skills add alirezarezvani/claude-skills --skill incident-commander`
- 许可证: MIT
- 兼容工具: Claude Code, Codex, Cursor, Gemini CLI, Windsurf
- 权限: read-repo ✓, write-files ✓, shell ✓, network ✗
- 状态: 扫描通过
- 规则扫描无法覆盖所有风险，安装前请阅读此技能的 SKILL.md，确认权限后再使用。

## 核心规则

按用户、收入和 SLA 影响给事故定级，并按级别固定沟通频率。

## 执行阶段

1. **事故分级** — 用 incident_classifier.py 按影响和紧急度划分 SEV1–SEV4，并确定响应要求。
2. **指挥与沟通** — 指挥官统筹响应，按模板和级别对应的频率向内部、管理层和客户通报。
3. **重建时间线** — 用 timeline_reconstructor.py 把分散的日志和事件整理成连贯的经过。
4. **事后复盘** — 用 pir_generator.py 按多种根因分析框架起草复盘，并沉淀为运行手册。

## 权限说明（据 SKILL.md 整理）

| 能力 | 是否需要 | 说明 |
|---|---|---|
| 文件写入 | 需要 | 生成分级结果、时间线、复盘报告和运行手册文档。 |
| 命令执行 | 部分需要 | 运行技能自带的三个 Python 脚本处理事故数据。 |
| 网络外发 | 不需要 | 技能未要求访问网络。 |

## SKILL.md 头部信息（YAML）

```yaml
---
name: "incident-commander"
description: "Use when declaring or running a production incident or outage, or writing its post-incident review. Classifies severity with incident_classifier.py, rebuilds the timeline with timeline_reconstructor.py and drafts the PIR with pir_generator.py. Security incidents: incident-response."
---
```

首页: https://www.myskills.tools/zh/ · URL: https://www.myskills.tools/zh/skills/incident-commander/
