postmortem
Skill4 starsChanged 6 months agoMITView on GitHub
Runs the full postmortem workflow: gathers incident context, writes a blameless report to a gitignored `postmortem/` folder, and creates action items. Use whenever the user wants to review or document any production incident or outage. Triggers on: '/postmortem', 'write a postmortem', 'incident review', 'post-incident', 'blameless review', 'what broke and why', 'SEV1/SEV2 report', or 'help me write up what happened'.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- RachaelQuisel/skillsforyoutheir own version, first seen Sep 23, 2026
- SethGammon/Citadeltheir own version, first seen Sep 20, 2026
- zcf0508/skillstheir own version, first seen Sep 20, 2026
- EthanReedLabs/suldetheir own version, first seen Sep 13, 2026
- Dimon94/skillstheir own version, first seen Sep 10, 2026
- MichaelLeeHobbs/skillstheir own version, first seen Sep 3, 2026
Used with
Projects with it also use premortem and code-review.
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.
neurofooSkillpremortem
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
GoogleSkillcode-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
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- SethGammon/Citadel★ 922same name
- boshu2/agentops★ 447same name
- neurofoo/agent-skills★ 119same name
- Dimon94/skills★ 107same name
- EthanReedLabs/sulde★ 99same name
- TSS-Blue-AI-Lab/ai-lab-agent-skills★ 25same name
- Hongyu-yu/matsci-ai-skills★ 19same name
- Hassaan146/claude-skills★ 18same name
- clonable-eden/cekernel★ 17same name
- vshrinath/virtual-product-factory★ 16same name
16 more not listed
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 repository20 other files it gives its agents.
- autoresearcherSkill
- bloggerSkill
- cavemanSkill
- compressSkill
- documenterSkill
- godmodeSkill
- hardenSkill
- learnSkill
- logo-faviconSkill
- memorySkill
- ml-engineSkill
- no-doubtsSkill
- osintSkill
- painterSkill
- plannerSkill
- refactorSkill
- researcherSkill
- skill-creatorSkill
- slidifySkill
- tritonifySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 13 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 23 edited versions we read keep these.
13
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
- Distinctive: line 16
No blame. No drama. Just: what broke, why, what we do next.
- Very specific: line 52
If no .gitignore exists, create one with postmortem/ as first entry.
- Distinctive: line 73
Ask user for these. Be direct, not a form.
- Distinctive: line 90
If user gives a wall of text / Slack dump / runbook notes — parse it.
- Distinctive: line 103
Every postmortem report MUST be a visually polished, self-contained HTML document.
- Distinctive: line 175
Use this JSON as the data backbone.
- Distinctive: line 194
Create the full folder structure:
- Very specific: line 214
All supporting pages (timeline, root-cause, action-items) are linked from index.html
- Distinctive: line 275
Does not track action items after creation (defers to project management tools)
- Distinctive: line 276
Does not replace incident response or on-call tooling
- Distinctive: line 277
Does not handle legal, compliance, or regulatory reviews
- Distinctive: line 278
Does not assign blame or evaluate individual performance
- Distinctive: line 299
When structured blameless analysis is needed
- Distinctive: line 316
Process + Craft: If the incident was UI-related, the "Root Cause" and "System context" sections benefit from craft skill analysis.
- Distinctive: line 345
If another skill tries to modify postmortem's structure:
“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.
Files
Postmortem Skill
No blame. No drama. Just: what broke, why, what we do next.
Real postmortems are hard to write coz engineers are tired after incidents and want to move on. This skill forces the structure so your 3am brain doesn't skip the root cause and call it done.
When to Use
/postmortem- "write a postmortem"
- "incident review" / "post-incident"
- SEV1 / SEV2 / SEV3 — any severity label near "report" or "review"
- "what broke and why"
- "we had an outage"
- "production incident"
- "blameless review"
- "help me document the incident"
STEP 0: Before Anything
Do this first. Always.
# Create postmortem root folder if not exists
mkdir -p postmortem
# Add to .gitignore (postmortems can have sensitive blast radius / customer impact data)
if ! grep -qxF 'postmortem/' .gitignore 2>/dev/null; then
echo 'postmortem/' >> .gitignore
echo "added postmortem/ to .gitignore"
fiIf no .gitignore exists, create one with postmortem/ as first entry.
Each incident gets its own subfolder inside postmortem/:
postmortem/
└── YYYY-MM-DD-<slug>/
├── index.html # Main report (entry point)
├── timeline.html # Detailed timeline with visualizations
├── root-cause.html # 5 Whys deep dive + system diagrams
├── action-items.html # Action item tracker with status
├── assets/
│ ├── style.css # Shared dark-theme stylesheet
│ └── charts.js # Chart.js config
└── data/
└── incident.json # Raw structured data (machine-readable backup)STEP 1: Gather Context
Ask user for these. Be direct, not a form. One shot:
Required:
- Incident title (short, descriptive — not "Production Issue")
- Severity (SEV1 / SEV2 / SEV3 / SEV4)
- Date + time of incident (UTC preferred)
- Duration
- What broke (user-facing impact, one sentence)
- Root cause (even rough — will refine)
- Who was on-call / who responded
Optional but valuable:
- Timeline (can be rough, will format it)
- Metrics (error rate, affected users, revenue loss)
- Action items already identified
- Related past incidents
If user gives a wall of text / Slack dump / runbook notes — parse it. Extract the structure. Don't make them re-type.
STEP 2: Generate the Report
Folder: postmortem/YYYY-MM-DD-<slug>/
Slug = lowercase kebab-case of incident title.
Example: postmortem/2024-01-15-payment-service-db-pool-exhaustion/index.html
HTML Report Requirements
Every postmortem report MUST be a visually polished, self-contained HTML document. The goal: a report that looks like a professional incident dashboard — scannable, visual, not a text wall.
Design Rules
- Dark theme — dark background (#0d1117), light text (#e6edf3), severity accent colors: red=SEV1, orange=SEV2, yellow=SEV3, blue=SEV4.
- Impact stat cards at top — severity badge, duration, users affected, revenue impact, time to detect, time to resolve — in a prominent card row.
- No walls of text — use tables, badges, cards, collapsible sections (
<details>), and visual hierarchy. Every section should scan in <5 seconds. - Charts for data — use Chart.js (CDN:
https://cdn.jsdelivr.net/npm/chart.js) for: incident timeline (line chart with annotated events), error rate over time (area chart), impact breakdown (doughnut). Inline the config in a<script>tag. - Severity badges — color-coded:
SEV1(red),SEV2(orange),SEV3(yellow),SEV4(blue). Prominent in header. - Visual timeline — the timeline is NOT just a table. Use a vertical timeline component with colored dots (red=detection, yellow=mitigation, green=resolution), timestamps, and event descriptions. CSS-based, no external deps.
- 5 Whys visualization — render as a cascading card chain, not a table. Each "Why" card connects to the next with an arrow/line. Color deepens as you go deeper (light yellow -> dark orange -> red for root cause).
- System diagram — use CSS/SVG to show the affected system flow. Boxes for services, arrows for data flow, red highlight on the failure point. Replace ASCII art with actual visual diagrams.
- Action item cards — each action item gets its own card with priority badge (P0=red, P1=orange, P2=yellow), owner avatar placeholder, due date, and status indicator.
- Responsive — works on desktop and mobile.
- Self-contained — all CSS inline or in
assets/style.css. System fonts stack. Chart.js is the only allowed CDN dependency. - Print-friendly — include
@media printrules.
CSS Theme (assets/style.css)
:root {
--bg-primary: #0d1117;
--bg-secondary: #161b22;
--bg-card: #21262d;
--text-primary: #e6edf3;
--text-secondary: #8b949e;
--border: #30363d;
--accent-green: #3fb950;
--accent-yellow: #d29922;
--accent-red: #f85149;
--accent-orange: #db6d28;
--accent-blue: #58a6ff;
--accent-purple: #bc8cff;
}index.html Structure
- Header: incident title, severity badge, status badge (Draft/Reviewed/Actioned), report date
- Impact stat cards row: severity | duration | users affected | revenue impact | TTD | TTR
- TL;DR card: one-paragraph summary in a highlighted box with severity-colored left border
- Visual timeline: vertical timeline with colored event markers
- System diagram: CSS/SVG diagram of affected flow with failure point highlighted
- Key findings: root cause summary in a cascading card chain
- Action items preview: top 3 P0 items as cards, link to full list
- Navigation: links to
timeline.html,root-cause.html,action-items.html
Supporting Pages
- timeline.html: Full detailed timeline with every event. Chart.js line chart showing error rate over time with annotated incident milestones. Expandable event details.
- root-cause.html: Full 5 Whys as cascading cards. System context diagram (detailed). Detection and response analysis. Lessons learned cards (went well / went wrong / got lucky).
- action-items.html: Complete action item tracker. Sortable table with priority, owner, due date, status, ticket link. Priority breakdown chart (doughnut).
Data Backup (data/incident.json)
{
"title": "incident title",
"severity": "SEV1|SEV2|SEV3|SEV4",
"date": "YYYY-MM-DD",
"duration": "duration",
"impact": {"users_affected": 0, "revenue_impact": "", "data_loss": false, "security_implications": false},
"timeline": [{"time": "HH:MM", "event": "...", "type": "detection|mitigation|resolution|other"}],
"root_cause": {"primary": "", "contributing": []},
"five_whys": [{"question": "", "answer": "", "evidence": ""}],
"detection": {"time_to_detect_min": 0, "detected_by": "", "worked": [], "failed": []},
"response": {"time_to_resolve_min": 0, "responders": [], "worked": [], "could_be_faster": []},
"lessons": {"went_well": [], "went_wrong": [], "got_lucky": []},
"action_items": [{"priority": "P0|P1|P2", "action": "", "owner": "", "due": "", "ticket": ""}]
}Use this JSON as the data backbone. Every HTML page reads from this structure. If the HTML ever needs regeneration, the JSON has everything.
STEP 3: Review Pass
Before saving, check:
- No person blamed. System blamed. Always system.
- Timeline has no gaps > 10 min without explanation — because gaps hide decision points and make the timeline unreliable for root cause analysis
- 5 Whys went deep enough (if Why 3 is still a person's mistake, go deeper)
- Every action item has an owner. No orphan actions.
- "Got lucky" section is honest. If you didn't get lucky, say so.
- TL;DR is actually a TL;DR (< 100 words) — because a TL;DR longer than that is a summary, not a TL;DR — executives won't read it
STEP 4: Save and Confirm
Create the full folder structure:
SLUG="YYYY-MM-DD-incident-slug"
mkdir -p "postmortem/$SLUG/assets"
mkdir -p "postmortem/$SLUG/data"
# Write all HTML files (index.html, timeline.html, root-cause.html, action-items.html)
# Write assets/style.css and assets/charts.js
# Write data/incident.json
echo "postmortem saved: postmortem/$SLUG/"
echo "entry point: postmortem/$SLUG/index.html"
echo "gitignored: yes"Tell user:
- Folder location and that
index.htmlis the entry point - That it's gitignored (so sensitive impact data stays local)
- Suggest next: share in incident channel, create tickets for P0s
- All supporting pages (timeline, root-cause, action-items) are linked from index.html
Blameless Culture — the 30 second version
Blame shuts down learning. When someone makes a mistake in a system, the question is never who — it's what conditions let this happen. Fix the conditions.
| Don't say | Say instead |
| "Alice pushed broken code" | "The deploy lacked a canary stage" |
| "Bob missed it in review" | "The review checklist didn't cover infra changes" |
| "On-call was slow" | "Alert threshold was too high to fire early" |
The goal: next engineer in same situation succeeds. Not: next engineer is scared.
Triggers Reference
See the "When to Use" section above for the full list of trigger phrases.
Edge Cases
"It was a minor incident" — still write it. SEV3s reveal patterns SEV1s don't.
"I don't know the root cause yet" — write what you know. Mark root cause section as [INVESTIGATION IN PROGRESS]. Revisit.
"It was a third-party issue" — still write it. Root cause = vendor. Action items = better circuit breakers, fallbacks, SLA review.
"We fixed it, no action items needed" — wrong. There's always at least one. "Monitor X metric" counts.
"I just want the template" — skip to Step 2, dump the template, let them fill it. Still do Step 0 (mkdir + gitignore).
Files Created by This Skill
postmortem/ # gitignored, auto-created
└── YYYY-MM-DD-<slug>/ # per-incident folder
├── index.html # main report (entry point)
├── timeline.html # detailed timeline + charts
├── root-cause.html # 5 whys + system diagrams
├── action-items.html # action item tracker
├── assets/
│ ├── style.css # dark theme stylesheet
│ └── charts.js # Chart.js configurations
└── data/
└── incident.json # raw structured data backup
.gitignore # updated with postmortem/ entryThat's it. No extra config. No setup. Just: incident happens -> run skill -> folder exists with visual HTML report -> tickets exist -> done.
Boundaries
- Does not track action items after creation (defers to project management tools)
- Does not replace incident response or on-call tooling
- Does not handle legal, compliance, or regulatory reviews
- Does not assign blame or evaluate individual performance
Composability — Working With Other Skills
See
PROTOCOL.md(SIP) at skills root for full interop contract.
Domain Declaration
domain: process
composable: true
yields_to: [] # process owns structure — nobody overrides itPostmortem owns process — the workflow, template, required sections, review checklist, file structure. The skeleton is sacred.
When Postmortem Leads
- Any incident documentation request
- When structured blameless analysis is needed
- SEV reports, outage reviews, failure documentation
When Postmortem Defers
| Other Skill's Domain | What Postmortem Does |
| Voice (e.g. personality/tone) | Postmortem provides the structure and required content. Voice skills fill it with personality. The timeline table still has precise times. The 5 Whys still go 5 deep. But the prose in "What happened" and "Lessons" sections can carry voice. |
| Density (e.g. compression) | After the report is generated, density skills can compress it. Postmortem generates the full report first — never skip sections for brevity. Compression is a post-processing step. |
| Craft (e.g. design/UI expertise) | If the incident involved UI/UX issues, invite craft skills to fill the technical analysis sections. Postmortem provides the section header and context; the craft skill provides the design-specific diagnosis. |
Layered Composition Rules
- Process + Voice: Structure first, voice second. Every required section exists. Every required field is filled. Voice applies WITHIN sections, never restructures them. The "Got lucky" section written in a casual voice is still a "Got lucky" section with honest content.
- Process + Density: Pipeline pattern. Postmortem generates full report → density skill compresses it. The density skill must preserve: all section headers, table structures, required fields, timeline entries. Compress only the prose in description paragraphs.
- Process + Craft: If the incident was UI-related, the "Root Cause" and "System context" sections benefit from craft skill analysis. Postmortem provides the section; craft fills the technical details (what broke visually, what heuristic was violated, what the fix should be).
- Process + Voice + Density (triple layer): Postmortem provides structure → voice fills sections with personality → density compresses the result. This is the full pipeline. Output: a postmortem report that sounds like the author, is compressed for storage, but has every required section.
Pipeline Behavior
- Upstream (receives content from another skill): Rare. Postmortem usually starts from raw user input. But if another skill pre-processed incident data (e.g., a craft skill already diagnosed a UI regression), incorporate that analysis into the appropriate section.
- Downstream (postmortem output goes to another skill): Common. Report → compress (density), report → blog post (voice + content), report → UI audit (craft). Postmortem's structured output is designed to be machine-readable and skill-parseable.
Handoff Patterns
Postmortem naturally leads to other skills:
postmortem → blogger
"Write a blog post about what we learned from this incident"
Postmortem provides the facts. Blogger provides the voice.
postmortem → compress
"Compress the postmortem for the knowledge base"
Full report → compressed version. Structure preserved.
postmortem → painter (advisory)
"The incident was a CSS regression — what exactly broke?"
Painter fills the technical analysis. Postmortem owns the structure.Conflict Signal
If another skill tries to modify postmortem's structure:
⚠️ Process conflict: postmortem structure is fixed. [Skill X] attempting to [merge sections / skip required fields / restructure template]. Preserving structure, applying [Skill X] within sections only.
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.

