five-whys

GitHub

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.

solutions/i-1/dot-claude/skills/five-whys/SKILL.md wesammustafa/Claude-Code-Quest

Install

npx skills add wesammustafa/Claude-Code-Quest --skill five-whys -g -y
More Options

Non-standard path

npx skills add https://github.com/wesammustafa/Claude-Code-Quest/tree/main/solutions/i-1/dot-claude/skills/five-whys -g -y

Use without installing

npx skills use wesammustafa/Claude-Code-Quest@five-whys

指定 Agent (Claude Code)

npx skills add wesammustafa/Claude-Code-Quest --skill five-whys -a claude-code -g -y

安装 repo 全部 skill

npx skills add wesammustafa/Claude-Code-Quest --all -g -y

预览 repo 内 skill

npx skills add wesammustafa/Claude-Code-Quest --list

SKILL.md

Frontmatter
{
    "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.

Version History

  • 7bb7ec3 Current 2026-11-07 15:33

Same Skill Collection

.claude/skills/claude-md-review/SKILL.md
solutions/a-capstone/dot-claude/skills/team-review/SKILL.md
solutions/i-1/dot-claude/skills/tdd/SKILL.md
solutions/i-3/dot-claude/skills/changelog/SKILL.md
solutions/i-capstone/dot-claude/skills/check-links/SKILL.md

Metadata

Files
0
Version
7bb7ec3
Hash
0dadec96
Indexed
2026-11-07 15:33

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-10 03:11
浙ICP备14020137号-1