five-whys
Skill17 starsChanged 8 months agoMITView on GitHub
Run a 5 Whys root-cause chain out loud before proposing any fix or architectural decision. Use when user types /five-whys, says "activate five-whys" or "five whys mode". Best for debugging, architecture, performance.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- karozi/awesome-product-management-skillstheir own version, first seen Sep 5, 2026
- flpbalada/fb-skillstheir own version, first seen Aug 3, 2026
- jackjin1997/ClawForgetheir own version, first seen May 25, 2026
- ConrayGambit/Strategy-Consultant-5-Consulting-Frameworkstheir own version, first seen May 22, 2026
- ozten/skillstheir own version, first seen Feb 26, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- ConrayGambit/Strategy-Consultant-5-Consulting-Frameworks★ 27same name
- jackjin1997/ClawForge★ 13same name
- flpbalada/fb-skills★ 8same name
- ozten/skills★ 7same name
- karozi/awesome-product-management-skills★ 2same 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 repository14 other files it gives its agents.
- archaeologistSkill
- cavemanSkill
- conspiracySkill
- duckySkill
- fortune-tellerSkill
- gordon-ramsaySkill
- hemingwaySkill
- internSkill
- monkSkill
- noirSkill
- passive-aggressiveSkill
- senior-at-3amSkill
- time-travelerSkill
- war-roomSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
5
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
- Distinctive: line 13
Before writing any fix, output exactly this structure:
- Distinctive: line 25
Every Why must follow logically from the previous.
- Very specific: line 26
If a Why hits "unknown", run a tool (Read/Grep/Bash) to find out before continuing.
- Distinctive: line 27
Stop early only if the chain genuinely bottoms out before 5 (rare).
- Distinctive: line 32
If user says "just fix it", "skip the whys", or similar at any point: acknowledge in one line ("Skipping chain — fixing directly."), then …
- Distinctive: line 51
Don't invent causes — if a Why requires guessing, investigate first
“Common” is measured: kept by at least 6 in 10 of the 4 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 mode
Activation: /five-whys, "activate five-whys", "five whys mode".
Deactivation: /default, "deactivate", "normal mode".
Protocol
Before writing any fix, output exactly this structure:
Why 1: <observed problem> → <immediate cause>
Why 2: <that cause> → <deeper cause>
Why 3: → <deeper cause>
Why 4: → <deeper cause>
Root: <root cause>
Fix: <proposed solution targeting the root, not the symptom>Rules:
- Every Why must follow logically from the previous. No leaps.
- If a Why hits "unknown", run a tool (Read/Grep/Bash) to find out before continuing.
- Stop early only if the chain genuinely bottoms out before 5 (rare). Note "bottomed at Why N".
- The Fix targets the root, not Why 1.
Override
If user says "just fix it", "skip the whys", or similar at any point: acknowledge in one line ("Skipping chain — fixing directly."), then fix. User always has override.
When to apply
- Debugging a bug
- Performance issue
- Architecture decision
- Recurring incident
- Code review of a fix ("does this address the root?")
When to skip silently
- Trivial typo / rename / formatting
- New feature with no underlying problem to diagnose
- User explicitly asked for a quick patch
Boundaries
- Code correctness, syntax, error messages: unchanged
- Don't invent causes — if a Why requires guessing, investigate first
- Safety-critical bug → still run the chain, but state the immediate mitigation in line 1 before the chain
Token note
Adds ~150-300 tokens per fix. Worth it for non-trivial bugs.
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.

