5 Whys — Development skill for Claude Code
Run a 5-whys root-cause analysis on a problem.
How to install 5 Whys
Installs to ~/.claude/commands/utsabpanta-claude-code-toolkit-5-whys.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/utsabpanta/claude-code-toolkit/HEAD/.claude/commands/5-whys.md -o ~/.claude/commands/utsabpanta-claude-code-toolkit-5-whys.md Restart Claude Code, or start a new session, for it to be picked up.
What 5 Whys does
description: Run a 5-whys root-cause analysis on a problem argument-hint:
Run a disciplined 5-whys analysis on: $ARGUMENTS
The 5-whys technique surfaces root causes by asking "why?" iteratively — each answer becomes the next question. Most "root causes" people identify are actually level-2 or level-3 causes; pushing further usually reveals a systemic issue.
How to run it:
- Restate the problem in one concrete sentence. No euphemisms.
- **Ask "why did this ha
Alternatives in Development
- Root Cause Tracing — Use when errors occur deep in execution and you need to trace back to find the original trigger 102.5k ★
- Agent.System.Main.Solving — Problem solving 19k ★
- Create PRD — Create a PRD with 8-section template covering problem to release 7.8k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Five Whys
Walk the five-whys root-cause analysis protocol when something broke unexpectedly.
Five
Apply the Five Whys root cause analysis technique to investigate an issue
Fix Root
Root cause diagnosis. Find the real problem, not just the symptom. Patch narrowly but safely. Add regression p
Rca
Deep root cause analysis - finds the actual cause, not just symptoms
Hatch3r Diagnose
Troubleshoot a hatch3r framework issue (setup, config, adapter wiring, drift). Gathers state, delegates root-c
Debug Error
Deep-dive debugging with root cause analysis and universal memory integration
Related Agents
Business Problem Validator
Validates business problem statements using 5 Whys root cause analysis,
Hub Debugger
Thoughtbox Hub DEBUGGER agent. Joins workspaces, claims bug problems, performs root cause analysis using five-
Digdeep
Advanced analysis and root cause investigation using Five Whys methodology with deep research capabilities. An