AGENT SKILL

5-whys

Investigate an incident or bug via the 5-whys technique — iterative root-cause drill-down; stop early if a system cause emerges before five iterations.

License 许可
MIT
最近更新
2026-10-29
Stars
★ 0
Forks
0

01 前言 Front Matter

name
5-whys
description
Investigate an incident or bug via the 5-whys technique — iterative root-cause drill-down; stop early if a system cause emerges before five iterations.

03 SKILL.md 正文

5-whys

Iteratively ask "why?" to walk back from a symptom to a root cause. Five is a heuristic, not a quota.

Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.

When to use

  • An incident or recurring bug needs root-cause analysis.
  • A workflow's postmortem step needs structured root cause.
  • The user says "why did this happen?" twice in the same conversation.

Inputs

  • The observed symptom (one sentence).
  • Anything we already know about the timeline / runtime.

Procedure

  1. State the symptom.
  2. Ask "why?" — answer with a verified cause (cite evidence: log line, metric, code path).
  3. Repeat against the previous answer. When a "why" has more than one verified cause, branch and follow each — incidents usually have several contributing factors, and a single chain hides the others. Stop a branch when:
    • The cause is a system property (process, structure, incentive) — not another proximate event.
    • Continuing would speculate beyond evidence.
  4. Translate the deepest verified cause into one actionable change.

Output

5-whys: <symptom>

Why 1: <symptom> happened because …  (evidence: …)
Why 2: that happened because …       (evidence: …)
Why 3: that happened because …       (evidence: …)
[Why 4, Why 5 if needed]

Root cause (system level): …
Proposed change: …

Quality bar

  • Each "why" cites concrete evidence; "we think" is not evidence.
  • Branches are followed where more than one cause is verified; the output doesn't force a single chain.
  • The final cause names a process, structure, or incentive — not "Alice forgot".
  • The proposed change addresses the root, not a proximate symptom.

04 同仓库更多 Skills