编程

thinking-five-whys-plus

试用

When a fault is localized and the proximate cause is known but the systemic root is not, chain evidence-linked whys with a counterfactual stop and a countermeasure.

它能做什么

When a fault is localized and the proximate cause is known but the systemic root is not, chain evidence-linked whys with a counterfactual stop and a countermeasure.

技能文档

Five Whys Plus

Build an evidence-linked causal chain from a known proximate fault to an actionable systemic root, then prescribe a countermeasure that would have blocked it.

When to Use

  • A fault is already localized to a component, path, or subsystem.
  • The proximate cause is known, but recurrence or systemic root is not.
  • Prior symptom-only fixes failed and the failure returned.
  • You need prevention that addresses why the proximate cause was possible.

When NOT to Use

  • Fault is not localized or multiple candidate causes remain — discriminate first.
  • Root is evidenced and actionable — fix it.
  • No evidence can answer the next "why" — gather evidence.
  • One-off error without a process, tooling, or design enabler.
  • Selective defect needing IS/IS-NOT analysis.
  • Forward failure forecasting before commitment.

Procedure

  1. State the localized problem. Record the observable symptom, confirmed component/path, time window, scope, and impact. Stop if localization is missing.
  2. Chain why with evidence. Make the prior answer the new effect; propose a cause; cite logs, code, config, metrics, or witnesses; name and rule out alternatives. Stop on speculation.
  3. Branch before descending. Ask what else could produce the same effect; keep every evidenced independent pathway. Treat the retained branches as a causal set rather than forcing one root.
  4. Counterfactually test each pathway and the set. For each candidate ask, "Would removing this cause block this pathway?" Then ask, "Would removing the retained set block the observed failure?" Retain independently sufficient branches whose removal blocks their own pathway; do not reject them merely because another branch could still cause the failure.
  5. Enforce stop criteria per branch. Stop a branch only when its cause is evidenced, controllable, actionable, recurrence-preventing, non-blame (not merely "someone erred"), and counterfactual-positive for that pathway. If it hits human error, ask why the error was possible.
  6. Prescribe a countermeasure for every retained root. Name the systemic fix, owner-capable action, and how recurrence will be checked. Prefer removing enabling conditions over only patching the proximate symptom.
  7. Stop when verified or blocked. Halt when stop criteria pass and a countermeasure is specified, or when further steps lack evidence. Do not pad by habit.

Output

Problem: 
Chain:
  Why1:  | Evidence: <...> | Ruled out: <...>
  WhyN: ...
Causal set check: would removing all retained roots block the failure? yes/no
Roots:
  -  | Pathway counterfactual: <...>
    Countermeasure: 
    Verification: 

Verification

  • Falsify the chain if any step lacks evidence, if alternatives were never considered, if a retained root does not pass its pathway counterfactual, or if the full causal set does not explain the failure.
  • Stop applying this skill once the root is fixed and verified, or when the problem is still pre-localization.
  • Over-application guard: skip a full chain for a single known one-line defect; do not end at blame; do not invent depth without data.

相关技能

5WHY根本原因分析专属引导师,通过追问-校验-判定流程帮助用户快速定位问题根源;适用于设备故障、生产异常、质量缺陷等现场问题分析

1 次安装

When a real test is too rare, large, or irreversible, run a controlled counterfactual: isolate one variable, fix conditions, trace the mechanistic chain, and bound what the result implies.

1 次安装

When a change has effects past the immediate fix—incentives, scale, feedback—trace consequence chains with timing and probability before committing.

2 次安装

Diagnose hardware performance shortfalls with measurable problem definition, first-principles models, equation-led decomposition, 5M1E coverage, multidisciplinary review and evidence-ranked causal trees. Use for root-cause analysis, causal diagrams, out-of-spec parameters, 5 Whys, engineering contradictions or hardware troubleshooting.

当某个 Bug 频繁复现、线上有缺陷需要做事后分析、或者发现同一类问题反复出现需要根治时使用此技能。从症状出发用 5Why、因果图和鱼骨图等方法系统化定位缺陷根源,区分直接原因、间接原因和系统原因。不要只修症状——根因分析的价值在于找到让同类 Bug 不再发生的系统性改进措施,同时分析漏测原因来优化测试设计。 ⚠️ 本技能示例可能调用外部日志/监控工具,请在受控环境执行。 本技能属于 QA Test Skills 技能集(49 个技能之一),完整工作流体验需安装全套:npx skills add Kokxi/qa-test-skills

2 次安装

Before committing to a plan or launch, assume it already failed and reason backward through concrete causes — convert failure paths into mitigations, gates, and stop checks.

1 次安装