Postmortem writer
Goal
Produce a document the team can learn from: what happened, why the system allowed it, and what will change.
A good postmortem names systems and decisions, never people as the cause, and ends with actions that someone owns.
When to use
- An incident is over and the user wants the written review.
- The user has raw notes, Slack exports or alert logs to turn into a document.
- For handling the incident while it runs, use
use_skillwithincident-response.
Steps
- Collect sources. Use
read_fileon notes and exports,run_commandwithgit logaround the incident window, andrgfor related alert or config files. - Ask with
ask_userfor anything missing: start and end times with time zone, user impact, who was involved by role, and what was changed to fix it. - Build the timeline in order, one line per event with a timestamp: detection, first response, each action, mitigation, recovery. Mark each entry as fact or inference.
- Quantify impact from data the user gives: duration, affected users or requests, failed jobs, money or data effects. Leave a visible blank instead of estimating.
- Separate detection time, response time and resolution time. They have different fixes.
- List contributing factors, not a single root cause: the trigger, the missing safeguard, the delayed detection, the unclear runbook. Use the questions "why did the system allow this" and "why did we not see it sooner".
- Write what went well. It shows which safeguards to keep.
- Write action items. Each has a verb, an owner, a due date and a type: prevent, detect or mitigate. Cap the list at what the team can finish.
- Check the language: replace "X forgot" with "the process did not require", and remove adjectives about people.
- Add a short summary at the top that a manager can read alone.
- Review the draft against the sources for invented details, then save it with
create_fileasdocs/postmortems/<date>-<slug>.md.
Gotchas
- A "human error" root cause ends the learning. Ask what made the error easy to make and hard to catch.
- Timelines built from memory drift. Use timestamps from logs, alerts and chat, and say which clock.
- Action items like "be more careful" or "improve monitoring" never close. Make them specific and testable.
- Mixing time zones turns a 20 minute outage into a 5 hour one on paper.
- Five whys can stop at the first comfortable answer. Keep branching when more than one factor contributed.
- Do not include customer names or secrets from logs in a document that gets shared widely.
- A review held weeks later loses detail. Draft within a few days while people still remember.
- Action items copied from older reviews that never closed show a pattern. Link them instead of repeating them.
Output
- A markdown document: Summary, Impact, Timeline, Contributing factors, What went well, Action items, Open questions.
- Blanks marked clearly where data was not provided.
- No blame language.
