Agent skill · Code Review & Quality

five-whys

Root cause analysis for software bugs using the 5 Whys technique. Use when the user wants to find the underlying cause of a bug, error, or technical issue. Triggers include phrases like "why is this happening", "root cause", "debug this", or when investigating software problems.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill 5-whys --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 7 KB
Bundled scripts: none
Path: skills/analysis/5-whys/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 5 Whys Debugging Ask "why" five times systematically to find the root cause of a bug. --- ## ⛔ CRITICAL: One Why at a Time **ANTI-PATTERN (DO NOT DO THIS):** - Asking all 5 whys in a single response - Hypothesizing answers without code evidence - Jumping to conclusions before investigating **CORRECT PATTERN:** ``` ASK why #1 → STOP → INVESTIGATE → ANSWER with evidence ↓ ASK why #2 → STOP → INVESTIGATE → ANSWER with evidence ↓ ... repeat until root cause PROVEN ``` You MUST search the codebase and gather evidence between each "why" question. If you find yourself typing "WHY #2" without having investigated after "WHY #1", you are doing it wrong. --- ## ✅ MANDATORY: Progress Tracking Use a todo list to track each "why" round. Mark complete before proceeding to the next. --- ## Investigation Techniques Evidence gathering is the core of each "why" iteration. Use these approaches flexibly — they're starting points, not checklists. ### Trace the Data Flow Follow the FULL value through the system to find where behavior diverges from expectation: - Origin → transformations → failure point - Dependencies, imports, function calls - State changes across boundaries (API, DB, modules, etc) ###

What's inside
Steps it walks through
  1. ⛔ CRITICAL: One Why at a Time
  2. ✅ MANDATORY: Progress Tracking
  3. Investigation Techniques
  4. Trace the Data Flow
  5. Examine Artifacts
  6. When Stuck
  7. Process
  8. Example Flow
  9. Tips
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the five-whys skill do?

Root cause analysis for software bugs using the 5 Whys technique. Use when the user wants to find the underlying cause of a bug, error, or technical issue. Triggers include phrases like "why is this happening", "root cause", "debug this", or when investigating software problems.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill 5-whys --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going