agentleFS
Avr8Avr8/claude-skills/skills/incident-postmortem/SKILL.md

incident-postmortem

Skill0 starsChanged 21 days agoMITView on GitHub

Turn raw incident material — Slack/Teams threads, alert history, Grafana/Datadog screenshots or queries, logs, deploy and config-change history, on-call notes — into a blameless postmortem with a precise UTC timeline, impact numbers, root cause and contributing factors (5 whys), what went well/poorly, and owned, dated action items. Use whenever someone mentions a postmortem, RCA, incident report, outage write-up, "what happened during the incident", a SEV/P1 review, or pastes an incident channel and asks for a summary — even if they only ask for "a timeline".

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use readme-writer, pr-description and 3 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.
  • IdkwhatImD0ingSkill

    readme-writer

    Write a winner-grade README for a hackathon project: a centered hero with shields.io badges, a clickable demo-video poster, awards and stats tables, a Mermaid architecture diagram, a tech-stack table, a repo map, team cards, and an honest build-context note, then set the repo's About metadata (description, website, and topics) to match. Use this skill whenever the user wants a README, GitHub landing page, project writeup, repo polish, or repo description and tags for a hackathon submission or portfolio piece.

    Also in 3 projects that use this

  • MicrosoftSkill

    pr-description

    Draft Nacelle PR titles, pull request descriptions, commit titles, commit descriptions, and squash commit messages. Use when asked for PR or commit wording, a branch summary, or a PR description that can be used in a commit. Omit validation sections from commit bodies and remove filler.

    Also in 4 projects that use this

  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 5 projects that use this

  • OpenAISkill

    systematic-debugging

    Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

    Also in 4 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use roles, not names, everywhere in the document, including the timeline ("on-call SRE acked", not "Priya acked").

    line 21
  2. Distinctive:

    Use 5 whys, but stop at a cause the team can actually act on, and separate:

    line 32
  3. Distinctive:

    If evidence is inconclusive, say so and list the hypotheses with what would confirm each.

    line 39
  4. Very specific:

    Use the structure in references/template.md.

    line 42
  5. Very specific:

    Default to Markdown. If the user publishes to Confluence/Notion/Google Docs and a connector is available, offer to publish — don't do it …

    line 48

“Common” is measured: kept by at least 6 in 10 of the 21 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

Incident postmortem

A good postmortem lets someone who wasn't there understand what happened, why the system allowed it, and what will stop it recurring. A bad one assigns blame or ends with "be more careful".

1. Collect evidence before writing

Gather whatever the user has; ask for what's missing (don't block on it — write with gaps marked [TBD]):

  • Detection: first alert / first customer report, with timestamps
  • The incident channel or chat thread
  • Metrics: error rate, latency, saturation for the affected service(s) — and if observability MCP tools (Grafana, Datadog, Prometheus, Loki) are connected, query them directly for the incident window and a baseline window before it
  • Changes in the 72h before: deploys, config changes, feature flags, infra changes, certificate rotations, dependency updates
  • Mitigation and resolution actions

Stay inside the evidence

The postmortem is a record of this incident. Use only what the user gave you or what you queried for this incident window. Don't bring in details from other incidents, earlier conversations or remembered context, even if they look related. Readers can't tell where those came from, and it makes the document unreliable. Don't describe or allude to other incidents, even in chat. If a recurrence check would help, ask the neutral question "Has anything like this happened before?" and leave it at that.

Use roles, not names, everywhere in the document, including the timeline ("on-call SRE acked", not "Priya acked"). Names belong in the incident channel, not in a blameless review.

2. Build the timeline first

Everything else is derived from it. Rules:

  • All times in UTC with date, YYYY-MM-DD HH:MM. Convert local times explicitly and note the source timezone once.
  • One line per event: time · what happened · source (alert name, message link, graph). Facts only, no interpretation.
  • Compute every interval from the timeline's own timestamps and re-check the arithmetic before writing it in prose ("12 minutes before the first alert"). Mismatched numbers are the first thing reviewers notice.
  • Mark the key moments: trigger (change/event that started it), impact start, detected, mitigated, resolved. Compute time-to-detect and time-to-mitigate from these.
  • Gaps of >30 min with no entries during active impact are worth a note — often where the real lesson is.

3. Root cause

Use 5 whys, but stop at a cause the team can actually act on, and separate:

  • Trigger — what started it (a config change, traffic spike)
  • Root cause(s) — why the system was vulnerable to that trigger
  • Contributing factors — what made it worse or slower to fix (missing alert, misleading dashboard, runbook out of date)

Systems, not people: "the deploy pipeline allowed an unreviewed config change to reach prod" — not "Alex pushed a bad config". Use roles ("the on-call engineer") instead of names in the body.

If evidence is inconclusive, say so and list the hypotheses with what would confirm each. Don't present a guess as the root cause.

4. Write it

Use the structure in references/template.md. Keep the summary to 3–4 sentences a VP could read. Quantify impact (requests failed, % of users, duration, revenue/SLA if known).

5. Action items

Each one must be: specific, owned (a role or team named in the material, or TBD — suggest: <role>; don't invent team names), prioritized (P0 prevents recurrence / P1 reduces impact / P2 improves response), and dated. Prefer actions that prevent the class of problem (guardrail, alert, automated check) over one-off fixes. Avoid "improve monitoring" — say which alert, on which signal, at what threshold.

6. Deliver

Default to Markdown. If the user publishes to Confluence/Notion/Google Docs and a connector is available, offer to publish — don't do it unprompted.

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.