Agent Skills › anthropics/cwc-workshops › postmortem-report

postmortem-report

GitHub

基于SRE规范自动生成事故复盘报告PDF,整合日志数据与调查结果,提供时间线、图表及改进项。

ship-your-first-managed-agent/skills/postmortem-report/SKILL.md anthropics/cwc-workshops

触发场景

请求撰写事故复盘报告 生成事件回顾文档 需要共享的事故总结

安装

npx skills add anthropics/cwc-workshops --skill postmortem-report -g -y
更多选项

非标准路径

npx skills add https://github.com/anthropics/cwc-workshops/tree/main/ship-your-first-managed-agent/skills/postmortem-report -g -y

不安装直接使用

npx skills use anthropics/cwc-workshops@postmortem-report

指定 Agent (Claude Code)

npx skills add anthropics/cwc-workshops --skill postmortem-report -a claude-code -g -y

安装 repo 全部 skill

npx skills add anthropics/cwc-workshops --all -g -y

预览 repo 内 skill

npx skills add anthropics/cwc-workshops --list

SKILL.md

Frontmatter
{
    "name": "postmortem-report",
    "description": "How the SRE team writes a postmortem PDF. Use this whenever asked for a postmortem, an incident report, a write-up to share, or a PDF of what happened."
}

Postmortem report

You build the PDF yourself, in your sandbox. There is no template. Design it so a director understands the event in one minute and an engineer can check every claim.

What it must contain

  1. A headline and a summary of three or four sentences.
  2. A table of pages: page id, service, root cause. Pages that share a root cause are one incident; mark the others as symptoms.
  3. At least one chart drawn from real data. Compute it in your script from /mnt/session/uploads/app.log (for example p99 latency or error rate per minute for each paged service) and mark the deploys on it.
  4. For each root cause: a timeline in UTC, the evidence that proves it, what was ruled out, and the fix.
  5. Action items, each with an owner team and a priority.

How to build it

  • Python with matplotlib and pandas is installed. matplotlib.backends.backend_pdf.PdfPages writes multi-page PDFs. pandoc and LaTeX are there too. Use whichever you can do fastest.
  • The investigators' findings are in /workspace/findings/*.json. Start from those instead of investigating again.
  • Save the result to /mnt/session/outputs/postmortem.pdf. Only files under /mnt/session/outputs/ reach the user.
  • Be quick: write one script, run it, and fix it only if it errors. Two to four pages. Do not render the PDF to images to inspect it.
  • Keep everything inside the page margins: wrap the title and any long table cell instead of letting it run off the edge.
  • Follow any postmortem conventions you find in team memory.

When it is built, tell the user the file name in one or two sentences. Do not paste the report into the chat.

版本历史

  • 4c34ec4 当前 2026-10-19 03:14

同 Skill 集合

agent-decomposition/.claude/skills/forecasting/SKILL.md
agent-decomposition/.claude/skills/notify-templates/SKILL.md
agent-decomposition/.claude/skills/reorder-policy/SKILL.md
agent-decomposition/.claude/skills/submit-solution/SKILL.md
agent-decomposition/.claude/skills/supplier-selection/SKILL.md
agent-decomposition/.claude/skills/weekly-report/SKILL.md
research-desk/.claude/skills/workshop/SKILL.md
research-desk/skills/edgartools/SKILL.md
ship-your-first-managed-agent/incident-triage-runbook/SKILL.md
ship-your-first-managed-agent/skills/incident-triage-runbook/SKILL.md
agent-battle/skills/mining/SKILL.md

元信息

文件数
0
版本
4c34ec4
Hash
cc5d26af
收录时间
2026-10-19 03:14

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-27 05:37
浙ICP备14020137号-1