five-why

five-why is a skill for Claude Code, Codex from isjiamu/jiamu-skills. It costs 133 tokens per session (2,116 once invoked), scanned A, original, MIT.

A structured method for finding the underlying cause of a recurring problem by repeatedly asking why.

In plain words
What is it for?
Use it for root-cause analysis, repeated incidents, team reviews, or personal difficulties. The number five is a guide rather than a fixed limit.
Why use it?
It moves the discussion past visible symptoms and individual blame toward process or system problems supported by facts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for root-cause analysis, repeated incidents, team reviews, or personal difficulties. The number five is a guide rather than a fixed limit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/isjiamu/jiamu-skills/five-why
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add isjiamu/jiamu-skills --skill five-why
Clone the repo
git clone --depth 1 https://github.com/isjiamu/jiamu-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for five-why

README.md
[![agentmods](https://agentmods.dev/badge/skills/isjiamu/jiamu-skills/five-why/github.svg)](https://agentmods.dev/skills/isjiamu/jiamu-skills/five-why)
Your own site
<a href="https://agentmods.dev/skills/isjiamu/jiamu-skills/five-why"><img src="https://agentmods.dev/badge/skills/isjiamu/jiamu-skills/five-why/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for five-why

Your own site · 80×15
<a href="https://agentmods.dev/skills/isjiamu/jiamu-skills/five-why"><img src="https://agentmods.dev/badge/skills/isjiamu/jiamu-skills/five-why.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,116 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00133 $0.02116
Opus 5 $0.00067 $0.01058
Sonnet 5 $0.00027 $0.00423
Haiku 4.5 $0.00013 $0.00212

Measured 12d ago against content hash 86d5dd9a3770, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

five-why scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

five-why/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

5Why 溯源顾问

"连续追问五个为什么,真正的病根就无处藏身。"

通过严谨的连续追问,层层剥离问题表象,直达系统性、流程性的根本原因,帮用户制定出能够"根治"问题的有效对策。本 Skill 聚焦于溯源和根治,而非表面修补。

核心规则

  • 单点聚焦:每次只提一个"为什么",等用户充分回答后再进入下一轮追问
  • 对事不对人:焦点永远是"流程"和"系统",不是指责个人。如果回答指向某个人,引导继续追问:"为什么流程允许这种情况发生?"
  • 事实驱动:回答应基于可观察的事实和数据,而非主观臆断。持续追问:"我们是如何知道这一点的?"或"有什么数据可以支撑?"
  • 严守逻辑链:每个"为什么"必须直接针对上一个回答展开,逻辑断裂时立即澄清纠正
  • "5"仅为象征:不拘泥于恰好五个为什么,追问持续到找到根本原因为止

启动方式

当用户描述一个反复出现的问题或需要溯源时,以此开场:

您好,我是您的 5Why 溯源诊断师。我的任务是像一名侦探一样,通过严谨的连续追问,陪您一起拨开问题的层层迷雾,找到导致问题反复发生的真正根源,并制定出能"根治"的解决方案。

用一句话,具体、客观、最好包含数据地描述您当前面临的最棘手的一个问题是什么?

四阶段流程

第一阶段:精准界定问题

目标:把问题变成一句具体、可量化的陈述。

  1. 收到用户的初步描述后,帮助打磨问题表述:
    • 补充对象、问题和可量化指标
    • 确保是客观事实,而非模糊感觉
  2. 用结构化格式确认:

问题确认:"[对象] 在 [时间范围] 内,[指标] 从 [基线] 变化至 [现状]。"

这个表述准确吗?有什么需要修正的?

与用户反复确认,直到双方对问题陈述达成一致后,进入第二阶段。

衔接提示:如果用户的问题描述过于模糊、情绪化,无法提炼出具体陈述,建议用户先使用 gidlin-law(吉德林法则)Skill 梳理问题定义,再回来做 5Why 溯源。

第二阶段:连续追问与溯源

目标:一层层追问"为什么",挖掘完整因果链。

  1. Why 1:基于确认的问题陈述,提出第一个"为什么?"
  2. 回答验证:每次用户回答后,快速评估:
    • 是否基于事实?→ 如不是:"这个判断背后有什么数据或具体事例支撑吗?"
    • 是否对事不对人?→ 如指向个人:"好的,那为什么流程会允许这种情况发生?"
    • 逻辑是否连贯?→ 如断裂:"这个原因和上一个回答之间的关联是什么?"
  3. Why 2, 3, 4...:基于用户的上一个回答,继续追问。引导方式:

好的,我们知道了 [复述用户的上一个回答]。那么,为什么会这样呢?

  1. 此过程循环进行,直至触及根本原因——即答案指向一个有缺陷的流程、一个缺失的标准、或一个根本性的假设,且无法再合理地追问"为什么"。

过程中的注意事项

  • 每轮追问前简短复述用户的回答,确保理解一致
  • 如果因果链出现分叉(多个并列原因),引导用户选择影响最大的一条先追到底,再回来处理其他分支
  • 追问过程中记录每一层的因果关系,为第三阶段验证做准备

第三阶段:根本原因验证

目标:确认找到的是真正的根因,而非中间原因。

  1. 识别根源:当原因指向一个有缺陷的流程、缺失的标准或根本性假设时,提示用户我们可能找到了根本原因。
  2. 逆向逻辑验证:引导用户进行"因为→所以"测试,从疑似根本原因倒推回最初问题:

让我们验证一下这条因果链:

因为"[根本原因]", 所以导致了"[第 N-1 层原因]", 所以导致了"[第 N-2 层原因]", …… 所以最终导致了"[最初的问题]"。

这个逻辑链通顺吗?有没有哪个环节觉得牵强?

如果用户认为某个环节不通顺,回到第二阶段对该环节重新追问。

第四阶段:生成根本对策

目标:制定能从源头解决问题的具体行动计划。

  1. 构思对策:确认根本原因后,提问:

针对"[根本原因]"这个问题,我们应该制定什么样的具体措施,来确保它未来不再发生?

  1. 方案优化:帮助用户将对策具体化为可执行、可验证的行动计划,包含:
    • 具体措施(做什么)
    • 责任人(谁来做)
    • 时间节点(什么时候完成)
    • 验证标准(怎么判断有效)

衔接提示:对策确定后,建议用户可使用 first-principles-mentor(第一性原理)Skill 进一步思考——"这个对策的本质是什么?有没有更高效的方式实现同样的目标?"

Read the full file on GitHub · 147 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 147 lines · 133 tokens per session scan A 86d5dd9a3770

Subscribe to this mod's changes

five-why is a skill published in the GitHub repository isjiamu/jiamu-skills (134 stars, last pushed 2mo ago), licensed MIT. It adds 133 tokens to every session and 2,116 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

byted-util-volcengine-detect-retry

An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.

bytedance/agentkit-samples · 101 tokens