agentleFS
polytheseuspolytheseus/sre-skills/skills/postmortem/SKILL.md

postmortem

Skill0 starsChanged 14 days agoMITView on GitHub

Write a blameless incident postmortem from a timeline, chat log, alerts and notes, with impact, contributing factors, what went well, and specific owned action items. Use when the user asks for a postmortem, incident review, RCA, or incident report.

50 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use hypothesis-driven-debugging, status-report and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Sturla22Skill

    hypothesis-driven-debugging

    Debug by ranking concrete hypotheses and running discriminating checks. Use when a bug is hard to localize, many plausible failure points exist, logs are noisy or misleading, a symptom appears intermittently, or trial-and-error edits haven't worked.

    Also in 3 projects that use this

  • AnthropicSkill

    status-report

    Generate a status report with KPIs, risks, and action items. Use when writing a weekly or monthly update for leadership, summarizing project health with green/yellow/red status, surfacing risks and decisions that need stakeholder attention, or turning a pile of project tracker activity into a readable narrative.

    Also in 3 projects that use this

  • SaluteYBSkill

    skill-eval

    Evaluate, tune, and regression-check AgentSkills. Use when creating a new skill or improving an existing one and you need structured should-trigger, should-not-trigger, boundary-case, and execution-quality examples. Also use when auditing overlapping skills and sharpening trigger descriptions before release.

    Also in 3 projects that use this

  • aakash-dharSkill

    estimate

    Estimates effort for tasks and tickets by analyzing code complexity, dependencies, scope, risk, and historical patterns. Use when the user says "how long will this take?", "estimate this", "how much effort?", "size this ticket", "story points", "can we do this in a sprint?", "level of effort", or "is this a big change?".

    Also in 3 projects that use this

  • seongjaeryuSkill

    organize

    Organize knowledge into Sets

    Also in 3 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 5 projects that use this

  • +1 more from anthropics

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask for, or collect from the repo and terminal, whatever exists:

    line 14
  2. Distinctive:

    Start, detection, mitigation and resolution times

    line 19
  3. Very specific:

    If key facts are missing, write TODO(owner?): … in the doc instead of guessing.

    line 21
  4. Distinctive:

    Use roles, not names, in the narrative ("the on-call engineer").

    line 28
  5. Distinctive:

    Treat a human error as the start of the inquiry, not the conclusion.

    line 29
  6. Distinctive:

    Avoid counterfactual blame ("should have", "failed to").

    line 31
  7. Distinctive:

    Look for contributing factors rather than a single root cause.

    line 36
  8. Distinctive:

    Use "5 whys" on each lens, and stop when you reach something the team can change.

    line 45
  9. Distinctive:

    Specific and verifiable: write "Add canary step to deploy pipeline for service X with automatic rollback on 5xx > 1%".

    line 50
  10. Distinctive:

    Prefer a few high-leverage items to a long wish list.

    line 56
  11. Distinctive:

    After drafting, re-read it once as a skeptical reviewer would.

    line 109

“Common” is measured: kept by at least 6 in 10 of the 45 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Blameless postmortem

A postmortem exists to make the system safer. It isn't there to record who made a mistake. Write it so that an engineer who wasn't involved can understand what happened and why the actions will help.

Inputs to gather

Ask for, or collect from the repo and terminal, whatever exists:

  • The incident timeline (from incident-triage if it was used), the chat channel export, the pager or alert history
  • Graphs or numbers for impact: error rate, latency, affected users or requests, revenue
  • The changes involved: PRs, deploys, config changes
  • Start, detection, mitigation and resolution times

If key facts are missing, write TODO(owner?): … in the doc instead of guessing. Never invent numbers or timestamps.

Blameless language

  • Describe actions and the system, not people's character: write "the deploy pipeline allowed X". Don't write "Bob forgot X".
  • Use roles, not names, in the narrative ("the on-call engineer").
  • Treat a human error as the start of the inquiry, not the conclusion. Ask why the system made that mistake easy, and why it wasn't caught.
  • Avoid counterfactual blame ("should have", "failed to"). State what happened and what information was available at the time.

Analysis

Look for contributing factors rather than a single root cause. Real incidents usually need several things to go wrong together. Use these lenses:

  1. Trigger: what change or event started it?
  2. Why did it cause harm? The missing safeguard: validation, canary, limits, isolation.
  3. Detection: how long until we knew? Was it an alert or a customer? Why that long?
  4. Response: what slowed mitigation down? Access, runbooks, tooling, unclear ownership.
  5. Recovery: why did full recovery take as long as it did?

Use "5 whys" on each lens, and stop when you reach something the team can change.

Action items

Each action item must be:

  • Specific and verifiable: write "Add canary step to deploy pipeline for service X with automatic rollback on 5xx > 1%". Not "improve deploys".
  • Owned: a team or a role, and a due date or priority.
  • Classified: prevent (stop recurrence), detect (find it faster), or mitigate (reduce impact or time to recover).

Prefer a few high-leverage items to a long wish list. Mark the one or two that matter most.

Template

Produce the document in this structure (Markdown):

# Postmortem: <short title>  —  <YYYY-MM-DD>

**Status:** Draft | In review | Final
**Severity:** SEV<n>    **Duration:** <detect→resolve>    **Authors:** <roles>

## Summary
<3–5 sentences: what happened, impact, cause in brief, how it was resolved.>

## Impact
- Users/customers affected: <number or %>, <which>
- Duration of user impact: <HH:MM–HH:MM UTC>
- Business impact: <failed requests, revenue, SLA/SLO budget consumed>

## Timeline (UTC)
| Time | Event |
|---|---|
| HH:MM | <trigger> |
| HH:MM | <first alert / report> — detection |
| HH:MM | <key decision> |
| HH:MM | <mitigation applied> — mitigation |
| HH:MM | <confirmed recovery> — resolution |

## Contributing factors
1. <factor> — <evidence>
2. ...

## What went well
- ...

## What was hard / where we got lucky
- ...

## Action items
| # | Action | Type | Owner | Priority/Due |
|---|---|---|---|---|
| 1 | ... | prevent/detect/mitigate | ... | P1 / YYYY-MM-DD |

## Supporting material
<links to graphs, PRs, alerts, chat>

Compute the key durations from the timeline and state them explicitly: time to detect (trigger→detection), time to mitigate (detection→mitigation), and total user impact.

After drafting, re-read it once as a skeptical reviewer would. Is any statement unsupported by evidence? Does any wording assign blame? Would each action item actually have prevented or shortened this incident? Fix what you find, then tell the user which TODOs still need their input.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.