/incident-tools:five-whysfrom incident-tools
Runs an evidence-grounded five-whys root cause analysis with fact-checker and cynic subagents. For internal post-mortems and RCAs.
Ships in incident-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Build a causal chain from impact to actionable root cause using the classic five-whys technique (https://en.wikipedia.org/wiki/Five_whys), with two additions the classic method lacks: every fact is verified against a primary source, and the finished chain must survive an adversarial review before it ships. The output is only done when a skeptical expert reading it can re-derive every claim from the cited evidence.
file:line), a log entry, a config value read from the live
system, a timestamped event. "The incident doc says" and "everyone knows"
are not sources. Keep the query, link, or path next to the claim so a
reader can re-run it.One short paragraph: who was affected, when (UTC), how badly, measured how. Precise numbers, with floors and ceilings stated as such ("at least 1,200 accounts" if the count is a floor). This is "why zero" — every subsequent why must chain back up to it.
Collect the timeline, metrics, code paths, and configs FIRST. Draft the chain from the evidence, not from the incident channel's first theory. For each why:
Dispatch one fact-checker subagent per why via the Agent tool, all in a
single message so they run concurrently. Default model: "sonnet".
The numbered whys are not the whole document. Dispatch a checker for every other section that carries factual claims too — the impact frame (blast radius, timing, how it was measured), the root causes, and each open inference. These are exactly the claims that get quoted onward, so an uncovered one defeats the promise that every fact in the chain was verified. One checker per section is enough; batch them into the same message as the per-why checkers.
Each dispatch prompt contains:
Independently verify every factual claim in the text below. For each claim return a verdict: CONFIRMED (you reproduced it from a primary source — name the source), UNSUPPORTED (you could not find evidence either way), or CONTRADICTED (the source says otherwise — quote it). Do not assess whether the causal story is convincing; check only whether the stated facts are true. Re-run queries rather than trusting quoted numbers. Return a compact claim-by-claim table, nothing else.
After the fact-checks come back clean, dispatch one cynic subagent with the
FULL chain (it needs cross-link context). Default model: "sonnet". This is
the hardest reasoning stage, so a stronger model is tempting — escalate only
if the user asks for it.
Its prompt, verbatim:
You are a skeptical senior engineer reviewing this root cause analysis. Your job is to break it, not to improve it. For every causal link ("why N → why N+1"): propose at least one alternative explanation consistent with the same evidence; check whether the link shows correlation or causation; look for a missing control (did the trigger ever fire without the claimed cause?); check the magnitude actually explains the effect; and identify the single weakest link in the whole chain. Verdict per link: HOLDS (you tried and failed to break it — say what you tried), SHAKY (survives but on thin evidence — say what evidence would firm it up), or BROKEN (an alternative explanation fits as well or better — state it). When uncertain, rule against the chain.
Format:
## Five whys: <incident / problem>
**Impact.** <who, when in UTC, how badly, measured how>
**1. Why <question in the reader's words>?**
<answer> <evidence citations inline>
**2. Why ...?**
...
**Root causes (<N>, compounding):**
1. ...
**Open inferences:** <each labelled inference and the observation that would
settle it — omit the section only if there are none>
Root causes are often plural: a slow-building fuel, an acute spark, and missing firebreaks (no alerting, blind automation) frequently compound. Naming all of them beats forcing one "true" root cause.
If a prose-humanizing skill is available, run the final document through it before delivery — but a rewrite that touches a claim, a citation, or an epistemic label puts the document back into an unverified state. Diff the humanized text against the verified chain and confirm every number, citation, and Measured/Derived/Inferred label survived intact. Anything that moved goes back through its fact-checker before the document ships.
Five is a guideline. The real stop rule: stop when the answer names something you can change that would have prevented the incident. Deeper than that lands on "because humans make mistakes", which is true and useless. Fewer than three usually means you stopped at a symptom. More than about seven usually means the steps are too small — merge them. Branching (3a/3b) is fine when two independent causes compound; carry each branch to its own root.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub intercom/2x-skills --plugin incident-toolsOther plugins' skills for the same job