root-cause-analysis
Skill0 starsChanged 6 months agoMITView on GitHub
Perform serious root cause analysis, RCA, postmortem, incident analysis, or Japanese なぜなぜ分析. Use when the user asks why a failure happened, why a previous analysis missed the real cause, what must be fixed to prevent recurrence, or asks for "なぜなぜ分析". Requires evidence, branching causal hypotheses, counterfactual tests, concrete fix surfaces, and verification gates. Do not use for casual one-sentence speculation.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- JeffreyFerreiras/ai-skillstheir own version, first seen Oct 5, 2026
- Wrosinski/heddletheir own version, first seen Sep 20, 2026
- arjunprabhulal/agent-skillstheir own version, first seen Aug 3, 2026
- aictrl-dev/skillstheir own version, first seen Jul 15, 2026
- Noorkhalel/saas-ai-skillstheir own version, first seen Jul 12, 2026
- jaysonventura/claude-dev-teamtheir own version, first seen Jun 17, 2026
Used with
Projects with it also use code-review.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- itseffi/agentic-os★ 115same name
- markpitt/claude-skills★ 23same name
- jaysonventura/claude-dev-team★ 19same name
- redhat-et/rhdp-rca-plugin★ 11same name
- viacheslav-tronko/claude-code-harness★ 6same name
- arjunprabhulal/agent-skills★ 4same name
- aictrl-dev/skills★ 2same name
- Noorkhalel/saas-ai-skills★ 2same name
- JeffreyFerreiras/ai-skills★ 1same name
- Wrosinski/heddle★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 15 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the user wants なぜなぜ分析, root cause analysis, RCA, postmortem analysis, incident analysis, accident-style investigation, …
- Distinctive: line 21
Never claim a root cause just because it is plausible.
- Distinctive: line 29
Ask why down each branch. Stop neither at five whys nor at the first plausible human explanation.
- Distinctive: line 36
Create an evidence ledger with one row per important claim:
- Distinctive: line 44
Use exact paths and line numbers for local evidence.
- Distinctive: line 46
Do not rely on recollection, a previous final answer, or a green command unless the command covers the actual requirement.
- Distinctive: line 50
Use more than one model when the system is complex:
- Distinctive: line 59
Avoid these failure modes:
- Distinctive: line 88
Do not mark the analysis complete until:
- Distinctive: line 90
every explicit user concern has a row in the evidence ledger.
- Distinctive: line 91
every accepted cause has a counterfactual test.
- Distinctive: line 92
every root cause maps to at least one concrete fix surface.
- Distinctive: line 93
every fix surface has a verification gate.
- Very specific: line 97
If the task asks you to create or update a skill/runbook/test so future Codex sessions catch the issue, completion requires editing that …
- Distinctive: line 101
Use the audit helper to check whether an RCA report has the minimum structure expected by this skill:
- Distinctive: line 108
Run the self-test after edits:
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Root Cause Analysis
Use this skill when the user wants なぜなぜ分析, root cause analysis, RCA, postmortem analysis, incident analysis, accident-style investigation, or an explanation of why a previous diagnosis failed. The output must identify what must be changed to prevent recurrence. A chain of five guesses is not enough.
Core Standard
RCA is complete only when these claims are evidence-backed:
- what happened;
- where the analysis boundary is;
- which causal factors are proven, suspected, contradicted, or unknown;
- which factors are proximate triggers, contributing conditions, detection failures, organizational/process failures, or lesson-retention failures;
- which concrete surfaces must change;
- how those changes will be verified and how similar failures will be searched for.
Never claim a root cause just because it is plausible. Treat uncertain evidence as incomplete.
Start Here
- State the incident in one falsifiable sentence: observed bad outcome, affected artifact/system/user, exact time or version when known, and why the outcome mattered.
- Gather evidence before asking why. Inspect current files, logs, rollouts, commits, configs, tests, reports, tickets, screenshots, traces, and prior session records that can prove or contradict each causal step.
- Build a timeline from evidence. Separate "what happened" from "why it happened".
- List at least two causal branches unless the incident is demonstrably trivial. Include direct trigger, missed detection, missing gate, process/skill/runbook/memory gap, and environment/tooling conditions when relevant.
- Ask why down each branch. Stop neither at five whys nor at the first plausible human explanation. Continue until the next cause is outside the task authority, is not actionable, or is already covered by a concrete countermeasure.
- For each candidate root/contributing cause, run a counterfactual test: if this condition had been removed or changed, would the original bad outcome or class of outcome have been prevented or detected in time?
- Convert accepted causes into fix surfaces: exact file, script, skill, runbook, test, gate, config, process owner, or command that must change.
- Define verification gates before completion: deterministic tests, scanners, negative fixtures, replay/smoke evidence, review criteria, or live-system checks that prove the recurrence class is blocked.
Evidence Discipline
Create an evidence ledger with one row per important claim:
claim_idclaimevidencestatus:proven,contradicted,unknown, orneeds_more_evidencesource: path, command, URL, rollout line, commit, log, or observation
Use exact paths and line numbers for local evidence. When the user explicitly asks for web research or when facts may have changed, browse and cite sources. For current OpenAI/Codex behavior, prefer official OpenAI docs and local source over memory.
Do not rely on recollection, a previous final answer, or a green command unless the command covers the actual requirement.
Causal Model
Use more than one model when the system is complex:
- 5 Whys for local causal chains.
- Fishbone or branch list for multiple causes.
- Barrier analysis for "what should have stopped this and why did each barrier fail?"
- AcciMap-style levels for sociotechnical incidents: operator/session, tooling, repo/process, organization/lesson retention, external constraints.
- Timeline plus change history for software regressions.
- Postmortem action mapping for incident recurrence prevention.
Avoid these failure modes:
- a single linear chain for a multi-factor incident;
- "human error", "forgot", "careless", "insufficient attention", "education", "be careful", or "double-check" as the terminal root cause;
- stopping at direct cause when the missing prevention/detection mechanism is the real fix surface;
- treating "known in the past" as "operationalized now";
- reporting that a cause is known without proving the future task would encounter it through a skill, runbook, scanner, test, memory, or gate;
- proposing actions without owners, changed artifacts, and verification.
Output Shape
For serious RCA, produce these sections:
- Incident Statement: one falsifiable sentence.
- Scope And Impact: what is included, excluded, and why the analysis depth is appropriate.
- Evidence Ledger: compact table or bullets with statuses.
- Timeline: ordered events with sources.
- Causal Map: branch list, barrier analysis, or AcciMap-style levels.
- Why Analysis: why chains per branch, with evidence status on each step.
- Counterfactual Tests: what would have prevented, detected, or limited the incident.
- Root And Contributing Causes: distinguish terminal actionable root causes from triggers and contributors.
- Required Fix Surfaces: exact files, skills, scripts, tests, commands, process gates, or owners.
- Verification Plan: deterministic checks, negative fixtures, replay, smoke tests, and acceptance gates.
- Residual Risk And Unknowns: what remains unproven and what evidence would close it.
For small incidents, you may compress the sections, but do not omit evidence, fix surfaces, or verification.
Completion Gate
Do not mark the analysis complete until:
- every explicit user concern has a row in the evidence ledger;
- every accepted cause has a counterfactual test;
- every root cause maps to at least one concrete fix surface;
- every fix surface has a verification gate;
- known previous incidents and lessons were searched when the user references past sessions, known history, or recurrence;
- the final recommendation states exactly what should be changed next.
If the task asks you to create or update a skill/runbook/test so future Codex sessions catch the issue, completion requires editing that durable surface and verifying that the updated surface is discoverable or executable.
Local Evaluation Helper
Use the audit helper to check whether an RCA report has the minimum structure expected by this skill:
python3 /path/to/root-cause-analysis/scripts/root_cause_analysis_audit.py \
--report /absolute/path/to/root-cause-report.mdRun the self-test after edits:
python3 /path/to/root-cause-analysis/scripts/root_cause_analysis_audit.py --self-testThe helper is not proof of correctness. It catches shallow reports that lack evidence, branches, counterfactuals, fix surfaces, or verification gates.
Research Basis
See references/root-cause-analysis-research-ledger.md for the sources used to design this workflow, including OpenAI skill/eval guidance, NTSB accident investigation practice, NASA/JAXA/IPA incident-learning material, Google SRE postmortem guidance, ASQ 5 Whys guidance, and critiques of 5 Whys as a standalone RCA tool.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

