Root cause frameworks

From event4u-app/agent-config · View interactive version

Root cause frameworks is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when tracing the root cause of a resolved incident or recurring bug — 5-whys chain, fishbone categorisation, contributing-factors split — even if the user says 'why does this keep breaking?'.

How to use this skill

Skill file

root-cause-frameworks

Structured root-cause analysis for resolved incidents and recurring bugs.

Sibling of CODE0 (live

reproduction loop) and CODE0 (static

call-site analysis) — this skill takes the post-resolution "why did this

happen and how do we stop it recurring?" view.

When to use

writing the post-mortem.

condition, not just the symptom.

to populate the cause section.

Do NOT use when:

CODE0 instead.

CODE0 instead.

Procedure

Work through the three methods in order; return the best-supported result.

1. 5-Whys chain

Ask "Why did X happen?" iteratively, attaching evidence to each

link. Continue until the link is unfalsifiable, evidence runs out, or

you reach a systemic condition outside the team's control.

Rules:

test failure, code path, human observation). Label unverified links

explicitly as [speculative].

branching chain is common and valid.

(b) the answer is outside the system boundary (e.g. "the cloud

provider had an outage").

2. Fishbone / Ishikawa (if chain stalls or branches widely)

When the 5-whys chain stalls before reaching a systemic cause, or

branches into more than three independent paths, map contributing

factors across six categories:

| Category | Sample questions |

|---|---|

| People | Knowledge gap, on-call fatigue, ambiguous ownership? |

| Process | Missing review step, deploy gate skipped, alert threshold wrong? |

| Technology | Library version, configuration drift, race condition, hardware limit? |

| Data | Unexpected input shape, stale cache, missing validation, schema mismatch? |

| Environment | Infra difference between environments, dependency version skew? |

| Communication | Unclear spec, siloed knowledge, delayed escalation? |

List each identified factor as a bullet under its category. A factor

may appear in more than one category — that is evidence of a systemic

coupling worth naming.

3. Contributing-factors split

Classify every cause surfaced in steps 1–2 into exactly one bucket:

| Bucket | Definition |

|---|---|

| root | The condition that, if absent, the incident would not have occurred. |

| contributing | A condition that increased likelihood or severity, but not sufficient alone. |

| amplifying | A condition that made recovery slower or harder once the incident started. |

| coincidence | Present at the time but causally unrelated. |

A well-formed analysis typically has one root cause and two to

four contributing causes. Multiple root entries indicate the chain

has not been traced far enough, or that the incident was a genuine

compound failure — label it explicitly.

Output

The output has three ordered sections:

  1. Why-chain — numbered chain, each link with evidence (or

[speculative] flag) and any branch markers.

  1. Cause taxonomy — each identified cause labelled

root / contributing / amplifying / coincidence, with a

one-sentence justification.

  1. Evidence gaps — explicit list of claims that could not be

verified and what evidence would resolve them. An empty list is

fine; omitting the section is not.

May invoke CODE0 or

CODE0 mid-procedure to gather

evidence for a specific hypothesis, then continue the analysis.

Do NOT

cause to produce a cleaner narrative.

name the gap.

loop; this skill assumes the bug is already understood or resolved.

Gotchas

failure with one root and several contributing causes is the norm,

not an edge case.

for that branch; do not guess past it.

not just temporal proximity.

See also

this skill for the cause section.

reproduction and fix loop.

corrective actions after the cause is established.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.