From superpowers-plus
Post-mortem analysis skill that runs 5-Why root cause analysis, detects recurring failure patterns, and generates preventive actions. Invoke after any approach that turned out wrong.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-plus:failure-autopsyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Wrong skill?** Still debugging -> systematic-debugging. Stuck -> think-twice. Review feedback -> receiving-code-review.
Wrong skill? Still debugging -> systematic-debugging. Stuck -> think-twice. Review feedback -> receiving-code-review.
Announce at start: "I am using the failure-autopsy skill to analyze what went wrong."
# Example: 5-Why for misdiagnosed routing ceiling
echo "What: Routing accuracy stuck at 82%"
echo "Why1: 3 queries return wrong skill"
echo "Why2: TF-IDF scores too close"
echo "Why3: Intent patterns too generic"
echo "Why4: No collision detection in patterns"
echo "Why5: Pattern specificity never tested"
echo "Fix: Add specific patterns before generic ones"
What happened: [factual description] Expected: [what should have happened] Impact: [time wasted, wrong output, user intervention]
| Level | Why? | Answer |
|---|---|---|
| 1 | Why did [failure] happen? | [direct cause] |
| 2 | Why [direct cause]? | [deeper cause] |
| 3 | Why [deeper cause]? | [systemic issue] |
| 4 | Why [systemic issue]? | [missing check] |
| 5 | Why [missing check]? | [root gap] |
| Pattern | Signal | Match? |
|---|---|---|
| False ceiling | "Impossible" proved wrong | ? |
| Incomplete measurement | Metric on data subset | ? |
| Confirmation bias | Evidence sought to confirm | ? |
| Single-method validation | One way to check | ? |
Immediate fix + Process update + Skill update
| Anti-Pattern | Detection | Correction |
|---|---|---|
| Stops at surface | "API was slow" | Push: why was it slow? What could agent do? |
| No preventive action | Step 4 empty | Not done until process update exists |
| Same failure twice | Pattern repeats | Previous preventive action failed — escalate |
| Blames environment | "Network issue" | Reframe: agent-controllable factors |
| Failure | Detection | Recovery |
|---|---|---|
| Stops at Why 2 | <4 levels | Push deeper |
| No preventive action | Step 4 empty | Not done until process update exists |
| Same failure recurs | Pattern 2+ times | Escalate: preventive did not work |
| Blames externals | "API was slow" | Reframe: what could AGENT do? |
npx claudepluginhub bordenet/superpowers-plus --plugin superpowers-plusGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.