Skip to content
Education
Skill

/five-whys

Finds the root cause of a bug, failure or recurring problem by asking "why" until the answer is a cause you can fix. Use when the user asks why something keeps happening, or wants the root cause rather than a quick fix.

From plugin
claude-code-quest
3.7k7 skills3 agents

Claude Code

$ npx -y skills add wesammustafa/claude-code-quest --skill five-whys --agent claude-code

SKILL.md

five-whys.SKILL.md
# What: a project skill that finds a problem's root cause by asking "why" until the answer is something you can fix.
# Runs: when you type /five-whys <problem>, or when Claude matches your request to the description.
# Side effects: none intended. It tells Claude to investigate and change no files; each tool call still follows your permission settings.
# Requires: Claude Code. Platforms: any.
# Remove: delete .claude/skills/five-whys/.
# Tested in Claude Code v2.1.285 (stable) on macOS, 2026-10-06
name: five-whys
description: Finds the root cause of a bug, failure or recurring problem by asking "why" until the answer is a cause you can fix. Use when the user asks why something keeps happening, or wants the root cause rather than a quick fix.
argument-hint: "[problem]"

Find the root cause of this problem: $ARGUMENTS

If no problem is given, ask for one in a single sentence, then stop.

1. Restate the problem as a symptom someone can observe: what happens, where and when. 2. Ask "Why does this happen?" Answer from evidence: the code, tests, logs and git history. Mark any answer you can't back with evidence as a guess. 3. Ask "Why?" of that answer, and keep going until the answer is a cause the team can change. That often takes about five rounds; stop sooner if you get there, and say so if you need more. 4. Check the chain backwards: each cause must explain the step before it. 5. Report the chain as a numbered list, the root cause in one sentence, then one fix for the root cause and one for the symptom.

Don't change any files. Propose the fixes and let the user decide.

Read more
@wesammustafa
Ships withclaude-code-quest

Learn Claude Code by doing it, one small step at a time, with Pip cheering you on. How it works · The three levels · Every page

3.7k7 skills3 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
3.7k
Star history of wesammustafa/Claude-Code-Everything-You-Need-to-Know on GitHub, a chart by star-history.com

Other skills on claude-code-quest.

tdd

tdd

Builds a requested feature test-first, one behavior at a time, and stops at a diff for review. Use when the user asks for a new…

More skills from other plugins.

lesson-quiz

lesson-quiz

Test a learner on a single Claude Code tutorial lesson (01-10) with 10 questions, scoring answers and flagging weak spots. Use…

@luongnv89@luongnv89Install Skill
build-personal-skill

build-personal-skill

Evidence-based creation of a reusable personal course-making Skill from the user's own classroom and chat history. Use when the…

@thu-maic@thu-maicInstall Skill

Questions about five-whys.

Which coding agents can use five-whys?
five-whys installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.