write-postmortem
Skill2 starsChanged 8 days agoMITView on GitHub
Write a blameless postmortem after an outage, a bad deploy, a data loss or a near miss. Use when an incident needs a written record, when the only finding so far is "human error", when action items keep recurring without owners, or when a team needs a timeline that survives being read six months later.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- pahlevikun/levistacktheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- pahlevikun/levistack★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- api-contractSkill
- bilingual-docsSkill
- debug-connectivitySkill
- diagnose-slowSkill
- plan-migrationSkill
- release-verifySkill
- review-diffSkill
- write-a-skillSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
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
- Distinctive: line 15
After any incident with user impact, data loss, or a paged engineer.
- Distinctive: line 16
After a near miss that only luck prevented.
- Distinctive: line 17
When an incident review produces "be more careful" as the action item.
- Distinctive: line 59
Review it with the people named in it before publishing: If someone is uncomfortable with how they are described, the description is wrong.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Write a postmortem people will actually use
The document has one job: make the next instance of this failure cheaper to prevent, detect or recover from. Blame makes it worse, because people stop telling the truth, and the truth is the only input that matters.
When to use
- After any incident with user impact, data loss, or a paged engineer.
- After a near miss that only luck prevented.
- When an incident review produces "be more careful" as the action item.
Ground rules
- Blameless is not soft. You can describe exactly what a person did and still not blame them; the question is always what made that action look correct at the time.
- Timeline in UTC, with evidence. Log timestamps and commit hashes, not reconstructed memory. "Around 3" is not a time.
- "Human error" is the beginning of the analysis, not the end. Behind it there is a missing guard, an ambiguous alert, a runbook that said the wrong thing, or a system that allowed the mistake to be one keystroke wide.
- Separate the trigger from the cause. The trigger is the change that started it; the cause is why it was possible and why it hurt. Fixing only the trigger guarantees a sequel.
- Every action item needs an owner, a date and a way to verify it. A list of good intentions is how the same incident happens twice.
- Publish it. Internal or public, a postmortem nobody can read is folklore with a title.
Procedure
- Write the impact first: who was affected, for how long, how badly, and how much data (if any) was lost or exposed. Numbers, not adjectives.
- Build the timeline from artefacts: deploy records, alert timestamps, chat logs, the first customer report, the moment the rollback finished. Mark each entry's source. Include the detection gap and the response gap as first-class facts.
- Answer three questions separately:
- What happened (the mechanism, in plain language).
- Why it was possible (missing check, wrong default, unclear ownership, an abstraction that hid the risk).
- Why it was not caught earlier (alerting, testing, review, canary).
- Separate triggers, contributing factors and root cause. Root cause is not a synonym for "the thing we will fix"; list the factors that had to co-occur, because that is what makes a fix real.
- Count what went well. Fast detection, a rollback that worked, an engineer who noticed. The good path is also a system property worth keeping.
- Turn each finding into an action item: a verb, an owner, a date, and a check that proves it shipped. Prefer systemic fixes (a default that cannot be wrong, a test, a guard) over "remind the team".
- Review it with the people named in it before publishing. If someone is uncomfortable with how they are described, the description is wrong.
Anti-patterns
| Tempting move | Why it is wrong |
| "Root cause: engineer ran the wrong script" | Then the system is the cause: a script that can run against production without a guard |
| Timeline from memory | It will quietly reorganise itself to make the response look faster |
| Action items with no owner | Nobody's job is nobody's work |
| A postmortem that never ships | Waiting for "the full picture" guarantees it is never read |
| Fixing only the trigger | The next unrelated trigger finds the same missing guard |
| Naming individuals as the cause | Everyone else learns to hide their mistakes, and you lose your best sensor |
Definition of done
- Impact is quantified: users, duration, data.
- Timeline is in UTC with sources, including detection and response gaps.
- Trigger, contributing factors and root cause are distinguished.
- At least one "what went well" is recorded.
- Every action item has an owner, a date and a verification method.
- The people named have read it and are comfortable with the wording.
- It is published where the team can find it, and linked from the incident.
Report format
Title: <what broke, in the words a user would use>
Impact: <who, how long, how bad, data>
Detected: <when, by what> Recovered: <when, by what>
Timeline: <UTC, sourced>
Cause: <trigger | contributing factors | why it hurt>
Went well: <what limited the damage>
Actions: <#1 owner, date, verification> …A filled-in template, with a realistic example of the timeline and action table, is in references/template.md.
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
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.

