five-whys
Skill20 starsChanged 28 days agoMITView on GitHub
Use for the 5 Whys, or when the user wants the root cause of a failure: "why did this happen?", "this keeps breaking", "write the postmortem", "find the real cause". Asks why repeatedly with evidence at each step, then sets countermeasures. Skip for one-off typos or when the cause is already proven.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- shawnclybor/clybor-claude-toolingtheir own version, first seen Nov 8, 2026
- RBraga01/a-teamtheir own version, first seen Nov 1, 2026
- kitloomlk-stack/testing-debugging-kittheir own version, first seen Oct 15, 2026
- karozi/awesome-product-management-skillstheir own version, first seen Sep 5, 2026
- tupe12334/instincttheir own version, first seen Aug 17, 2026
- flpbalada/fb-skillstheir own version, first seen Aug 3, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- RBraga01/a-team★ 24same name
- jackjin1997/ClawForge★ 12same name
- flpbalada/fb-skills★ 8same name
- ozten/skills★ 7same name
- shawnclybor/clybor-claude-tooling★ 6same name
- karozi/awesome-product-management-skills★ 2same name
- tupe12334/instinct★ 1same name
- kitloomlk-stack/testing-debugging-kit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analytical-thinkingSkill
- creative-thinkingSkill
- critical-thinkingSkill
- design-thinkingSkill
- ethical-thinkingSkill
- fermi-estimationSkill
- first-principles-thinkingSkill
- lateral-thinkingSkill
- pre-mortemSkill
- prioritizationSkill
- six-thinking-hatsSkill
- strategic-thinkingSkill
- swot-analysisSkill
- systems-thinkingSkill
- thinking-method-selectorSkill
- tradeoff-analysisSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Gather first: Read logs, commits, tickets, timelines and configs before answering any "why".
- Distinctive: line 32
Write the problem, then ask why.
- Distinctive: line 41
Reverse test: read the chain from the bottom up with "therefore".
- Distinctive: line 42
Stop test: if the last answer is "human error", "not enough time" or "bad luck", ask why once more.
- Distinctive: line 46
When one "why" has several valid answers, follow each as its own chain.
- Distinctive: line 50
Contain: stop the damage now.
- Distinctive: line 51
Fix: remove the cause.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Five Whys
A root-cause method from the Toyota Production System. Ask "why" of the previous answer until you reach a cause you can change, and check each link with evidence.
When to use
- An incident, outage, defect, missed deadline or process failure needs its real cause.
- A problem repeats after quick fixes.
- A postmortem or retrospective needs a causal chain, not a list of symptoms.
Skip: a typo or one-line bug whose cause is already visible, or questions about metrics that need data analysis rather than a causal chain.
Before you start
- State in one block: Problem statement (what happened, where, when, impact, in observable terms) and Pass (Chain, Check, Branch if needed, Countermeasures).
- Gather first. Read logs, commits, tickets, timelines and configs before answering any "why". Mark each answer
verified(you saw evidence) orhypothesis(plausible, not yet checked). Ask up to 3 questions only for facts tools cannot reach. - Light path. Small ask: the chain in 3-5 lines, one countermeasure per root cause.
Steps
1. Chain
Write the problem, then ask why. Each "Why" answers the previous answer, not the original problem.
| # | Why did that happen? | Status | Evidence |
| 1 | ... | verified / hypothesis | file, log line, ticket |
Five is a guide. Stop earlier or later when you reach a cause that is (a) within the team's control and (b) such that fixing it would have prevented the problem.
2. Check
- Reverse test: read the chain from the bottom up with "therefore". Each step must follow from the one below.
- Stop test: if the last answer is "human error", "not enough time" or "bad luck", ask why once more. These describe a missing safeguard, not a cause.
- Mark any link still
hypothesis; list how to verify it.
3. Branch (only if causes split)
When one "why" has several valid answers, follow each as its own chain. If the causes spread across many areas, group them under People, Process, Tools, Environment, Data or Measurement (a fishbone view) and chain the top two or three.
4. Countermeasures
For each root cause:
- Contain: stop the damage now.
- Fix: remove the cause.
- Prevent: a check or guardrail so it cannot recur.
- Owner and date, or "to be assigned".
Pitfalls
- Jumping to a favorite cause and filling the chain backward to justify it.
- Asking "who" instead of "why". Blame ends the chain early; look for the missing safeguard.
- Single-chain thinking on a complex failure. Branch when there are several causes.
- Stopping at a cause nobody can change (for example "the vendor was down") without asking why there was no fallback.
- Treating
hypothesisrows as findings in the summary.
Worked example: references/example.md.
Checklist
- Problem statement is observable (what, where, when, impact)
- Each why answers the previous answer; each row is
verifiedorhypothesis - Reverse test passed; no chain ends at "human error"
- Branches followed where causes split
- Countermeasures cover contain, fix, prevent, with owners
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

