agentleFS
MichaelLeeHobbsMichaelLeeHobbs/skills/skills/operations/postmortem/SKILL.md

postmortem

Skill1 starsChanged 3 months agoMITView on GitHub

Write a blameless incident postmortem collaboratively. Draft from a completed investigation, then iterate with the engineer section by section. It will NOT let someone offload the whole thing for anything beyond a trivial incident, because a real postmortem needs their timeline, detection story, severity and owners. Use for "write a postmortem", "write up the incident", "do an RCA writeup", or after an investigation concludes.

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use premortem, refactor and 1 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.
  • neurofooSkill

    premortem

    Pre-mortem analysis that imagines a plan has failed, then works backward to identify causes and preventions. Use before launches, major decisions, or risky initiatives to surface hidden risks.

    Also in 3 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 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 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If they say "just write the postmortem", push back for anything beyond a trivial incident.

    line 31
  2. Distinctive:

    Only a genuinely simple, low-impact incident may be drafted end to end with one review pass.

    line 35
  3. Distinctive:

    Write in the template's order.

    line 67
  4. Distinctive:

    Detection: Write what they told you, not "a human noticed".

    line 72
  5. Distinctive:

    Only call it done when they have reviewed and accepted it, with any requested corrections incorporated.

    line 88
  6. Distinctive:

    Leave the commit and push to them.

    line 90
  7. Distinctive:

    Evidence over narrative: Every claim of cause traces to a log, metric or code citation.

    line 98
  8. Distinctive:

    Do not finalize unilaterally: If they have not reviewed it, it is a draft, and it says so at the top.

    line 100

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

Postmortem, collaborative and blameless

Turn a completed, verified investigation into a postmortem that follows best practice. The section template, folder convention and card format are in reference/TEMPLATE.md.

A postmortem is a conversation, not a deliverable you hand back. The engineer was there and you were not. Your draft is a scaffold built from investigation evidence. They fill the gaps, correct what you inferred, and own the narrative. Do not write the whole thing and declare it done.

Two hard rules

1. Back-and-forth is required

Draft a section, or a skeleton, then stop and ask them to review and correct it before moving on. Explicitly surface what you do not know and what you assumed.

Expect several rounds. That back-and-forth is the point, not friction.

2. Do not enable offloading

If they say "just write the postmortem", push back for anything beyond a trivial incident. Ask for the things only they know rather than inventing them. A confidently wrong postmortem is worse than a thin one, because it will be read by people who were not there and cannot tell.

Only a genuinely simple, low-impact incident may be drafted end to end with one review pass.

What you must get from them, and must not invent

  • Detection. How it was actually noticed. A support ticket? An alert? A customer? Stumbled on during unrelated work? This is almost always different from "we saw the metric", and it is where the process lessons live. Ask.
  • Timeline. The real sequence and times, especially the firefight, which is often a different day from the analysis. Confirm the order of events.
  • Severity and impact. Business impact, who and what was affected, duration, any data concerns. They set severity, not you.
  • Owners and feasibility. Who owns each follow-up, and which fixes are actually doable versus blocked on a vendor or another team.
  • Corrections. Anything in your draft they know is wrong. Invite this every round.

Workflow

1. Ground it in the investigation

Base the draft on a verified root cause with an evidence chain. If the cause is not actually nailed down, say so and do not write a postmortem yet. Investigate first.

A prior investigation's disproven hypotheses map onto a section of the template, and they stop the next person re-walking the same wrong turns.

2. Draft the skeleton, confirm scope

Propose the incident title, dates, severity, affected systems and a one-line summary. Get those confirmed or corrected before fleshing anything out. Create the file early so edits land in place.

3. Fill sections, pausing on the high-stakes ones

Write in the template's order. After each of these, stop and ask:

  • Executive summary. Plain language. Someone senior can read only this and stop. Confirm the framing.
  • Timeline. The section most likely to be wrong without them. Draft from evidence, then ask what is out of order, missing or mis-timed.
  • Detection. Write what they told you, not "a human noticed".
  • Root cause. Symptom versus cause, contributing factors, five whys, and a disproven-hypotheses subsection. Cite code and logs.
  • Action items. Bucketed by how much control the team actually has, each owned and prioritised. Mark what is already done.

Flag inline what you inferred versus what is evidenced. Leave explicit markers for gaps you need them to fill, so an unfinished draft cannot be mistaken for a finished one.

4. Offer cards for the action items

Offer to draft issue-tracker cards, one per action-item bucket as they direct: a feature card for the code fixes, spike cards for the uncertain ones. Put them beside the postmortem.

5. Finalize

Only call it done when they have reviewed and accepted it, with any requested corrections incorporated. Confirm: no customer data, no secrets, severity agreed, owners assigned, action items actionable.

Leave the commit and push to them.

Guardrails

  • Blameless. Failures are of design, guardrails and observability, never of people. No names as causes.
  • No customer data, no secrets. In a regulated domain, reference records by internal identifier rather than anything that identifies a person. Never paste credentials. Scrub the examples too.
  • Evidence over narrative. Every claim of cause traces to a log, metric or code citation. "We think" is fine when labelled. Do not dress inference as fact.
  • Do not finalize unilaterally. If they have not reviewed it, it is a draft, and it says so at the top.

It is working if

Confirm the engineer reviewed and explicitly accepted the timeline, detection story, severity, and action owners, with any corrections incorporated. Check each causal claim against its cited evidence, and retain disproven hypotheses when the investigation had them. Approval without corrections is valid. Unanswered questions remain marked as gaps, and the document stays a draft until the engineer accepts it.

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.