Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

postmortem

FreeNo executable scriptsNot checked

Use when analyzing failures, outages, incidents, or negative outcomes, conducting blameless postmortems, documenting root causes with 5 Whys or fishbone…

nicepkgby nicepkg★ 298 GitHub stars

About this skill

Postmortem

Table of Contents

  1. Purpose
  2. When to Use
  3. What Is It?
  4. Workflow
  5. Common Patterns
  6. Guardrails
  7. Quick Reference

Purpose

Conduct blameless postmortems that transform failures into learning opportunities by documenting what happened, why it happened, impact quantification, root cause analysis, and actionable preventions with clear ownership.

When to Use

Use this skill when:

Incident Context

  • Production outage, system failure, or service degradation occurred
  • Security breach, data loss, or compliance violation happened
  • Product launch failed, project missed deadline, or initiative underperformed
  • Customer-impacting bug, quality issue, or support crisis arose
  • Near-miss incident that could have caused serious harm (proactive postmortem)

Learning Goals

  • Need to understand root cause (not just symptoms) to prevent recurrence
  • Want to identify systemic issues vs. individual mistakes
  • Must document timeline and impact for stakeholders or auditors
  • Aim to improve processes, systems, or practices based on failure insights
  • Building organizational learning culture (celebrate transparency, not blame)

Timing

  • Immediately after incident resolution (while memory fresh, within 48 hours)
  • Scheduled reviews for recurring issues or chronic problems
  • Quarterly reviews of all incidents to identify patterns
  • Pre-mortem style: Before major launch, imagine it failed and write postmortem

Do NOT use when:

  • Incident still ongoing (focus on resolution first, postmortem second)
  • Looking to assign blame or punish individuals (antithesis of blameless culture)
  • Issue is trivial with no learning value (reserved for significant incidents)

What Is It?

Postmortem is a structured, blameless analysis of failures that answers:

  • What happened? Timeline of events from detection to resolution
  • What was the impact? Quantified harm (users affected, revenue lost, duration)
  • Why did it happen? Root cause analysis using 5 Whys, fishbone, or fault trees
  • How do we prevent recurrence? Actionable items with owners and deadlines
  • What went well? Positive aspects of incident response

Key Principles:

  • Blameless: Focus on systems/processes, not individuals. Humans err; systems should be resilient.
  • Actionable: Corrective actions must be specific, owned, and tracked
  • Transparent: Share widely to enable organizational learning
  • Timely: Conduct while memory fresh (within 48 hours of resolution)

Quick Example:

Incident: Database outage, 2-hour downtime, 50K users affected

Timeline:

  • 14:05 - Automated deployment started (config change)
  • 14:07 - Database connection pool exhausted, errors spike
  • 14:10 - Alerts fired, on-call paged
  • 14:15 - Engineer investigates, identifies bad config
  • 15:30 - Rollback initiated (delayed by unclear runbook)
  • 16:05 - Service restored

Impact: 2-hour outage, 50K users unable to access, estimated $20K revenue loss

Root Cause (5 Whys):

  1. Why outage? Bad config deployed
  2. Why bad config? Connection pool size set to 10 (should be 100)
  3. Why wrong value? Config templated incorrectly
  4. Why template wrong? New team member unfamiliar with prod values
  5. Why no catch? No staging environment testing of configs

Corrective Actions:

  • Add config validation to deployment pipeline (Owner: Alex, Due: Mar 15)
  • Create staging env with prod-like load (Owner: Jordan, Due: Mar 30)
  • Update runbook with rollback steps (Owner: Sam, Due: Mar 10)
  • Onboarding checklist: Review prod configs (Owner: Morgan, Due: Mar 5)

What Went Well: Alerts fired quickly, team responded within 5 minutes, good communication

Workflow

Copy this checklist and track your progress:

Postmortem Progress:
- [ ] Step 1: Assemble timeline and quantify impact
- [ ] Step 2: Conduct root cause analysis
- [ ] Step 3: Define corrective and preventive actions
- [ ] Step 4: Document and share postmortem
- [ ] Step 5: Track action items to completion

Step 1: Assemble timeline and quantify impact

Gather facts: when detected, when started, key events, when resolved. Quantify impact: users affected, duration, revenue/SLA impact, customer complaints. For straightforward incidents use resources/template.md. For complex incidents with multiple causes or cascading failures, study resources/methodology.md for advanced timeline reconstruction techniques.

Step 2: Conduct root cause analysis

Ask "Why?" 5 times to get from symptom to root cause, or use fishbone diagram for complex incidents with multiple contributing factors. See Root Cause Analysis Techniques for guidance. Focus on system failures (process gaps, missing safeguards) not human errors.

**Step 3: Define correctiv

Full SKILL.md on GitHub

Install postmortem in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

resources/evaluators/rubric_postmortem.jsonresources/methodology.mdresources/template.md

FAQ

What does the postmortem skill do?

Use when analyzing failures, outages, incidents, or negative outcomes, conducting blameless postmortems, documenting root causes with 5 Whys or fishbone diagrams, identifying corrective actions with owners and timelines, learning from near-misses, establishing prevention strategies, or when user mentions postmortem, incident review, failure analysis, RCA, lessons learned, or after-action review.

How do I install the postmortem skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the postmortem skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare postmortem with