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
- State the symptom.
- Ask "why?" — answer with a verified cause (cite evidence: log line, metric, code path).
- 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.
- 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
runbook
Write or refresh an operational runbook for an alert/symptom; structured as TL;DR + Pre-checks + Steps + Verification + Rollback + Escalation.
rfc
Draft a lightweight design RFC to docs/rfcs/<slug>.md; Summary, Motivation, Detailed design, Drawbacks, Alternatives, Unresolved questions. A proposal to debate, not a recorded decision (adr).
editorial-pass
Review and tighten prose in a Markdown artifact for a target tone (terse, formal, friendly) without dropping information; preserve quotations and load-bearing constraints.
architecture-review-facilitation
Run an architecture review as a process — entry criteria, reviewer checklist, decision log, and follow-up actions — pairing the design artifact with a red-team pass.
architecture-doc
Write a C4-style architecture document; System Context + Containers (+ Components when interesting) with mermaid diagrams. Describes structure, not a decision (adr) or proposal (rfc).
adr
Write an Architecture Decision Record (Michael Nygard format) to docs/adrs/NNNN-<slug>.md; frontmatter validated by the ADR artifact schema. Records a made decision, not a proposal to debate (rfc).