Root cause analysis — evidence-based timeline, 5 whys, fault tree and contributing factors, detection and prevention gaps, blameless framing, actions mapped to causes with owners. Use after incidents or recurring defects (RCA, root cause, 5 whys, fault tree, postmortem analysis).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Root Cause Analysis?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-root-cause-analysis)
---
name: root-cause-analysis
description: Root cause analysis — evidence-based timeline, 5 whys, fault tree and contributing factors, detection and prevention gaps, blameless framing, actions mapped to causes with owners. Use after incidents or recurring defects (RCA, root cause, 5 whys, fault tree, postmortem analysis).
metadata:
category: reliability
---
# Root cause analysis
## Purpose
Find the causes and missed defences behind a failure so it does not recur.
**Use when:** after mitigation of incidents or repeated defects.
**Not for:** live incident handling.
## Inputs
- Incident record, telemetry, deploys, code.
## Outputs
- RCA section of the postmortem with actions.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "root cause analysis"` for prior decisions, patterns and anti-patterns.
- [Postmortem template](../../../templates/postmortem.md)
## Steps
1. **Timeline.** Reconstruct from logs, metrics, deploys, chat with sources.
Done when every entry has a source.
2. **Causes.** 5 whys / fault tree; separate trigger, root causes, contributing factors.
Done when each link is evidenced.
3. **Defences.** Why tests, review, monitoring did not catch it.
Done when each defence gap named.
4. **Actions.** Actions per cause and gap, with owners and dates.
Done when actions are specific.
## Best practices
- Several causes are normal; avoid a single villain.
- Prefer systemic fixes over "be careful".
## Common mistakes
- Blaming individuals.
- Actions like "improve monitoring".
## Example
Trigger: DB failover; root causes: retries without jitter, no backpressure; detection gap: alert on queue length not age.
## Reusable prompt
```text
Apply the Root cause analysis skill (.agents/skills/root-cause-analysis/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Reconstruct the timeline, build the causal chain with evidence, identify defence gaps and map actions to causes.
Return: RCA section of the postmortem with actions..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```