Write, review, and update postmortems (incident reviews, RCAs) that a team can learn from: a timeline where every entry names its source, people written by role and never by name, a cause stated only with evidence and otherwise kept as a hypothesis, no "should have", and action items with an owner and an end state someone can check. Use this skill whenever the user asks to write up an incident that is over ("write the postmortem", "incident review", "RCA", "document what happened in yesterday...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Postmortem?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cassiobotaro-postmortem)
---
name: postmortem
license: MIT
description: >
Write, review, and update postmortems (incident reviews, RCAs) that a team can learn
from: a timeline where every entry names its source, people written by role and never by
name, a cause stated only with evidence and otherwise kept as a hypothesis, no "should
have", and action items with an owner and an end state someone can check. Use this skill
whenever the user asks to write up an incident that is over ("write the postmortem",
"incident review", "RCA", "document what happened in yesterday's outage", "turn this
thread into a postmortem", "escreve o postmortem", "análise pós-incidente"), to review
or fix one, or to update one, even if they never say "postmortem". Consult it before
touching a postmortem: a published one is amended by a dated addendum and its body is
not rewritten. Do not use it for an incident still in progress, a runbook, a status page
update, a message to customers, a decision record, a design doc, or a question about
what a postmortem is.
---
# Postmortem
A postmortem is written for the people who were not in the incident. They read it to learn
how the system let the incident happen, so that they can change the system. Two kinds of
sentence take that away from them: a fact nobody established, and a judgement of a person.
This skill writes neither, and it argues with a request that asks for one.
The deliverable is Markdown on disk: a new postmortem, a review of one, or an addendum to
one that was published.
## Check the scope first
Some requests arrive in the words of a postmortem and are something else. Say so in a
sentence and hand them on:
- **The incident is still in progress.** Help resolve it. Offer to keep the timeline while
it runs. The postmortem comes after.
- **A list of one person's errors**, or a postmortem meant for someone's performance
review. Decline it and say why: a postmortem used to judge a person teaches everyone to
leave out what they saw, and the next timeline comes back empty. Offer the postmortem of
the incident instead, and ask for the evidence.
- **A runbook for the alert** is the `technical-writing` skill's work. **A decision the
team made** because of the incident is an ADR (the `adr` skill). **A redesign** is a
design doc (the `design-doc` skill). **A message to customers or a status update** is the
`explain` skill's work. Each is its own document. Name the skill when it is installed,
and the kind of document when it is not.
## The contract
1. **The timeline is evidence, and the analysis is an argument from it.** Every time,
number, component and action comes from the evidence: the alert history, the deploy
log, the channel export, a ticket, a commit, the user's own account. Every entry of the
timeline names its source. A cause is written as fact only when the evidence shows it.
What the evidence only suggests is a hypothesis, written as one, with the evidence
there is and what would confirm it. What nobody knows is written as unknown, with who
is finding out when someone is.
This holds when the user asks you to close the cause. A root cause that is wrong ends
the investigation, and the incident comes back. Write what the evidence supports, mark
the document as preliminary, and tell the user what you did not record and why.
2. **Blameless is not actorless.** In the account of what happened, a person appears by
role or team ("the on-call engineer", "a developer on the payments team"), never by
name. The role tells the reader what position the person was in, which is what explains
the action. A name makes the document about the person.
The sentence still has an actor and an active verb: "the on-call engineer restarted the
pods at 14:20". "The pods were restarted" protects nobody, and it hides the mechanism
the reader came for. When the evidence does not say who or what acted, ask.
The owner of an action item follows the same rule when you take it from the evidence:
write the role or the team of whoever committed to it ("the payments team"), not the
name in the channel. Only an owner the user dictates to you is written as given: that
is the user's assignment, not your account of the incident.
3. **Write what happened, never what should have.** "Should have", "failed to", "did not
notice", "could have been avoided", "if only" describe an incident that did not take
place, and they answer the wrong question. The question is why the action made sense
to the person at that moment. Write what they saw, what they did, and what the system
did next: "The dashboard showed p99 at 8 s and normal database CPU. The on-call
engineer suspected a stuck connection and restarted the pods. The error rate did not
change."
4. **A person is never the cause.** "Human error" is where the analysis starts. Separate
the trigger (the change or event that set the incident off) from the conditions: what
let the trigger reach production, what let it do harm, what delayed detection and
recovery. When the user gives a person's action as the root cause, record it as the
trigger and ask what made it possible. Do not answer that question yourself: a missing
guard you imagined is an invented fact (rule 1).
5. **An action item is a commitment someone can check.** It has an owner and an end state
that a reader can verify later: "the deploy pipeline rejects a pool size below the
measured peak", not "improve the deploy process". Owner and date come from the user or
from the evidence, and you never assign them. "Be more careful", "improve monitoring"
and "review the process" are not recorded as given: nobody can tell whether they were
done. Say that, and ask what end state the team means and who owns it. An action nobody
proposed is a suggestion in your reply or a question, never a row of the document.
6. **The house governs, and a published postmortem is history.** A template or the
postmortems already in the repository set the sections, their order and the language.
A section the template requires and nobody gave you content for is a question to the
author, never boilerplate ("we learned the importance of communication"). Once a
postmortem is published, its body is not rewritten: new information goes in a dated
addendum (see "Updating a postmortem").
## Writing a postmortem
### 1. Find the house's shape
Look for a template and for earlier postmortems (`docs/postmortems/`, `docs/incidents/`,
`postmortems/`), and follow them (rule 6). With no precedent, write
`docs/postmortems/YYYY-MM-DD-<slug>.md`, dated by the incident, and say where you put it.
Without a house language, write in the language of the conversation.
### 2. Read the evidence and build the timeline first
Read everything the request points at and everything the repository holds about the
incident: the channel export, the alert history, the deploy log, the pull request and the
commits around that time. Then write the timeline before any analysis, because the
analysis may only argue from it.
Each entry has a time, an actor with an active verb, and its source. Use one time zone,
the one the evidence uses, and name it. Add no entry the evidence does not hold. Where
something must have happened between two entries and nothing records it, write the gap as
a gap, and name the sources that are silent about it. Mark the first evidence of impact,
the detection, the mitigation and the resolution. The impact starts and ends at times the
evidence records, such as an alert firing and resolving, never at the time of the change
you take to have caused it or fixed it.
### 3. Ask what the evidence cannot answer
When the request brings no evidence at all, the deliverable of the turn is two to four
questions: what failed and when, what evidence exists, what the impact was, whether the
cause is known. Write no skeleton.
With evidence, write the postmortem and put the questions in your reply, batched: the
impact figure nobody gave, what a responder was looking at, the owner or the date of an
action. Do not ask what you can read.
### 4. Write
Without a template, use these sections, in this order: Summary, Impact, Timeline, What
happened, Detection and response, Actions, Open questions. Add "What went well" only when
someone said what did. `references/sections.md` says what each one holds and has pairs for
the sentences that resist rules 2 to 5: read it before the first postmortem of a session.
- **Summary.** What failed, when, for whom, what set it off, how it ended, and whether the
cause is established or the document is preliminary.
- **Impact.** The figures the evidence gives, each with its source. A figure nobody has is
written as not known yet.
- **What happened.** The trigger, then the conditions (rule 4). Give the reason for the
triggering change as its author recorded it, in the pull request or the ticket. For
each decision of a responder: what they saw, what they did, what followed (rule 3).
- **Detection and response.** What detected the incident (an alert, a customer, a person)
and the intervals between the marked times. A duration computed from two times of the
evidence is fine.
- **Actions.** Rule 5.
- **Open questions.** Everything rule 1 kept out of the body.
### 5. Apply `unslop`, then check
When the `unslop` skill is installed, invoke it on the prose you wrote in this turn, once
the file is on disk. When it is not installed, skip the step and say nothing about it. Quotations from the evidence, the timeline's sources and a template's
headings are not prose and stay as they are. In a review, the author's text is never run
through it. A fact it finds missing is an open question (rule 1). When subagents write
part of the document, this pass stays in your session: once they return, invoke `unslop`
here on what they wrote. You know whether it is installed, so never pass the step on as a
condition. Then check:
- Every timeline entry has a source, and no time or number is in the document that the
evidence does not hold.
- No person is named in the account. Every sentence about an action has an actor.
- No counterfactual is left: search for "should", "failed to", "did not notice", "could
have", and their equivalents in the document's language.
- The cause is a trigger and conditions, each with evidence, or the document says it is
preliminary. Nothing is asserted in the body and asked in Open questions.
- Every action has an owner and an end state someone can check, both given by the user or
the evidence.
- The date in the header is real (`date +%Y-%m-%d`).
## Reviewing a postmortem
Report before touching the file, in two groups: questions for the author (a fact only
they have) and proposed edits, each with its reason. Quote the sentence. Apply what the
user chooses. Look for, in this order:
- a person, or "human error", given as the cause: ask what made the action possible;
- counterfactuals: quote each one and say what it replaces;
- a sentence about an action with no actor: ask who or what acted, and do not guess;
- a cause the document gives no evidence for;
- timeline entries with no source, and intervals nobody explains, above all between the
first sign of impact and the detection;
- people named in the account;
- actions nobody can check or nobody owns;
- a "what went well" or a "lessons learned" that could be pasted into any postmortem.
A review supplies no fact the document lacks.
## Updating a postmortem
A postmortem that is still a draft or in review is edited in place. One that was
published is the record of what the team knew then, and people have already read it. Leave
its body as it is, even a sentence the new information makes out of date. Add the
information at the end of the file, under a heading for addenda in the document's
language, as an entry with today's date (`date +%Y-%m-%d`), what is now known, and its
source. Say in your reply that the body was left as published.
## Deliver
Report the path of the file. After it, list only what applies: what is not known, the
questions for the user, and what you did not record as asked, with the reason. Do not
summarize the document.
## Reference files
| File | Read it when |
|---|---|
| `references/sections.md` | Before the first postmortem of a session, and when a sentence resists rules 2 to 5: what each section holds, and before and after pairs for the role, the counterfactual, the cause and the action item. |
## Attribution
The stance that a postmortem examines the system and not the person follows John
Allspaw's writing on blameless postmortems, Sidney Dekker's *The Field Guide to
Understanding 'Human Error'*, Richard Cook's "How Complex Systems Fail" and the
postmortem chapter of Google's *Site Reliability Engineering*. The rules that connect them
to a written record are this skill's own. See `NOTICE.md`.