Conduct a root-cause analysis on a bug, incident, or regression — reproduce the failure, reconstruct the timeline, run a 5-whys chain, distinguish symptom from proximate cause from root cause, sweep for siblings, and propose a fix that addresses the cause (not the symptom). Use when the user says "/rca", "root cause", "5 whys", "why is this failing", "investigate this regression", or after any failure the team wants to learn from rather than just patch.
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
The point is not to fix a bug. The point is to understand why it happened. The fix must kill the cause, not the symptom, and catch the class next time, not the instance.
Do not invoke it for a trivial bug with an obvious cause. A failure you want to design
around before it happens is /blueprint.
Paths are relative to this file. <plugin root> is two directories above it. Read each
file at the step named.
| File | Read at | Holds |
|---|---|---|
references/chain.md | step 4 | the 5-whys chain with evidence per link, cause labels and falsification, the assumption list |
references/fix.md | step 8 | the two fix proposals, the counterfactual, prevention, the report structure |
../../assets/writing.md | step 11, before writing the report | the writing rules for every text a person reads |
references/rationalizations.md | when tempted to skip a step | why each shortcut fails |
Reversibility is judged by observable effects, not artifact state. Undoing the artifact does not un-notify anyone or un-run anything.
Prefer an isolated workspace (git worktree add ...) unless the repro needs the live
environment, and state which one you used. Consent from an earlier task does not carry
over. If an experiment must cross the line, ask now.
HEAD, git status --porcelain) that the end check
restores to. The user's own uncommitted work is part of it. If the symptom is
ambiguous, ask.references/chain.md now. Write a numbered list where every
link carries Answer and Evidence. A link without evidence is UNVERIFIED and
supports nothing below it.chain.md § 7). List every assumption the root cause and the fix
rest on before validating any. Each gets How validated and Result. The fix may
rest only on confirmed ones.references/fix.md now. Write the smallest symptom fix and the
root-cause fix with sibling repairs as two separate proposals, and recommend one.../../assets/writing.md now. Write the report per fix.md § 11.
The headline is at most three sentences, and the recommended fix is one of them. Run
<plugin root>/scripts/prose-lint.py on it and fix every finding.Each item is answerable with evidence. One you cannot tick honestly sends you back to the step that produces it.
UNVERIFIED link is
treated as proven.UNVERIFIED one.prose-lint.py. Open questions surfaced. No finding names a
person instead of a system.korya/swd-skills
b1520b9
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.