/mattpocock-skills:post-mortemfrom mattpocock-skills
Lead a blameless post-mortem analysis after an incident or severe bug: establish timeline, run 5 Whys, identify detection gaps, record ADRs, and trigger retro.
Ships in mattpocock-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
When a production outage, data corruption incident, or critical regression occurs, fixing the immediate symptom is only half the job. If the root cause, detection gap, and architectural vulnerability are not formally addressed, the incident will recur.
This skill leads a blameless post-mortem analysis once an incident has been mitigated. It establishes the factual timeline, uncovers structural causes, documents lasting architectural decisions in docs/adr/, files preventive tickets on the issue tracker, and feeds improvements into /retro.
The issue tracker and domain docs configuration should have been provided to you. If not, tell the user to run /setup-matt-pocock-skills.
Assemble the raw evidence from the event:
Construct an exact chronological sequence using UTC timestamps:
Calculate the key operational metrics:
Conduct a blameless root cause investigation. Never stop at human error ("developer forgot a null check" or "reviewer missed a typo"). Ask why five times until structural, architectural, or tooling gaps are revealed:
Identify the two critical system gaps:
Turn lessons learned into lasting assets:
docs/adr/ (e.g. "ADR 0012: Enforce Expand-Contract for All Database Migrations").docs/agents/issue-tracker.md) with explicit owners and priority:
/retroClose the post-mortem by prompting the user:
"Run /retro to update our agent environment, CODING_STANDARDS.md, and automated checks so future code reviews catch this class of failure automatically."
Synthesize the analysis into docs/incidents/YYYY-MM-DD-<incident-slug>.md:
# Incident Post-Mortem: <Incident Title>
- **Date**: YYYY-MM-DD
- **Severity**: P1 / P2
- **Lead Investigator**: <Name>
- **Impact Duration**: <X> minutes
## Executive Summary
A 2-3 sentence overview of what broke, the customer impact, and how it was mitigated.
## User Impact
- Total requests affected / error rate spike.
- Customer accounts impacted.
- Revenue or business disruption.
## Incident Timeline (UTC)
- **YYYY-MM-DD HH:MM** - Bad deploy merged (`<commit-hash>`).
- **YYYY-MM-DD HH:MM** - First customer error recorded.
- **YYYY-MM-DD HH:MM** - Alert `<alert-name>` fired.
- **YYYY-MM-DD HH:MM** - Rollback initiated.
- **YYYY-MM-DD HH:MM** - Impact mitigated.
## Root Cause & Five Whys
Detailed causal chain explaining why the failure occurred structurally.
## Gaps Identified
- **Detection Gap**: <Why alerts or tests failed to catch it earlier>
- **Containment Gap**: <Why blast radius or rollback was slower than needed>
## Action Items
| Action Item | Type | Tracker Issue | Priority |
| --- | --- | --- | --- |
| Add regression integration test | Prevention | #<issue_id> | P1 |
| Add P99 latency alert on payment queue | Detection | #<issue_id> | P2 |
| Adopt Expand-Contract ADR | Process | #<issue_id> | P2 |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
48 skills in this plugin
/ask-mattAsk which skill or flow fits your situation. A router over the skills in this repo./chief-of-staffPursue a long-running goal in a single session by co-ordinating subagents./claude-handoffHand the current conversation off to a fresh background agent that picks up the work immediately./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewReview the changes since a fixed point (commit, branch, tag, or merge-base) along three axes: Standards (does the code follow this repo's documented coding standards?), Spec (does the code match what the originating issue/spec asked for?), and Security (does the code introduce AppSec or privacy vulnerabilities?). Runs all three reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X"./diagnosing-bugsDiagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.npx claudepluginhub op3616windows/skills --plugin mattpocock-skills