3.1k wesammustafa
five-whys Skill
通过不断追问"为什么"来找到 bug、故障或反复出现问题的根本原因,直到得到可修复的原因。当用户想知道某事为何反复发生,或想要根本原因而非快速修复时使用。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
Find the root cause of this problem: $ARGUMENTS
If no problem is given, ask for one in a single sentence, then stop.
- Restate the problem as a symptom someone can observe: what happens, where and when.
- 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.
- 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.
- Check the chain backwards: each cause must explain the step before it.
- 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.