root-cause-analysis
Skill11 starsChanged 10 days agoMITView on GitHub
Structured root-cause analysis for recurring failures, incidents, regressions, systemic process gaps, and postmortem-style prevention work. Use after the direct cause of a current symptom is understood; use systematic-debugging first for active failing tests, crashes, or unknown immediate causes.
17 other projects use a version of this.
Adopted by
Most recently taken up by
- azoghry-commits/Cognition-OStheir own version, first seen Nov 1, 2026
- Robert-Adunka/triz-skillstheir own version, first seen Nov 1, 2026
- KMaruthi2002/universal-llm-skillstheir own version, first seen Oct 25, 2026
- aictrl-dev/skillstheir own version, first seen Oct 22, 2026
- realityforge/skillstheir own version, first seen Oct 20, 2026
- JacobStephens2/skillstheir own version, first seen Oct 17, 2026
Used with
Projects with it also use observability, improve-codebase-architecture and 3 more.
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.
OpenAISkillobservability
Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.
Also in 3 projects that use this
GoogleSkillimprove-codebase-architecture
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Also in 3 projects that use this
GoogleSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
- +1 more from google
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- itseffi/agentic-os★ 114same name
- microsoft/cat-agent-skills★ 101same name
- Robert-Adunka/triz-skills★ 14same name
- microsoft/aibast-agents-library★ 8same name
- viacheslav-tronko/claude-code-harness★ 6same name
- saitarrun/Devforge-ai★ 4same name
- aictrl-dev/skills★ 3same name
- azoghry-commits/Cognition-OS★ 3same name
- JacobStephens2/skills★ 2same name
- JeffreyFerreiras/ai-skills★ 1same name
7 more not listed
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.
In this repository70 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adversarial-reviewSkill
- api-designSkill
- architecture-reviewSkill
- behavior-driven-developmentSkill
- brainstormingSkill
- ci-release-engineeringSkill
- clean-architectureSkill
- code-reviewSkill
- container-engineeringSkill
- create-agent-skillSkill
- csharp-dotnet-engineeringSkill
- css-scss-stylingSkill
- data-platform-engineeringSkill
- dependency-supply-chain-reviewSkill
- digital-asset-managementSkill
- documentation-engineeringSkill
- domain-driven-designSkill
- domain-modelingSkill
- donsetch-web-researchSkill
- gherkinSkill
- git-commitSkill
- git-workflowsSkill
- hexagonal-architectureSkill
- impeccableSkill
- internationalization-localizationSkill
- javascript-typescript-engineeringSkill
- justfilesSkill
- mcp-server-engineeringSkill
- mysql-mariadb-sql-engineeringSkill
- observability-engineeringSkill
- onion-architectureSkill
- parallelism-engineeringSkill
- performance-reviewSkill
- playwright-e2eSkill
- postgresql-sql-engineeringSkill
- prompt-engineering-reviewSkill
- python-antipatternsSkill
- python-design-patternsSkill
- python-engineeringSkill
- random-data-identifiersSkill
- release-readinessSkill
- review-verification-protocolSkill
- ruby-engineeringSkill
- rust-antipatternsSkill
- rust-async-webSkill
- rust-code-reviewSkill
- rust-design-patternsSkill
- rust-desktop-guiSkill
- rust-engineeringSkill
- rust-persistence-sqlSkill
- rust-testing-qualitySkill
- script-engineeringSkill
- security-review-evidenceSkill
- security-reviewSkill
- semantic-versioningSkill
- sql-engineeringSkill
- sqlite-sql-engineeringSkill
- suggest-lucide-iconsSkill
- svelte-sveltekit-engineeringSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
6
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 14
Use this skill for:
- Very specific: line 26
Do not use this as the first response to an active failing test, crash, or unknown bug.
- Distinctive: line 34
Use concrete evidence: test names, commands, route classes, logs, metrics, screenshots, traces, or user-visible behavior.
- Distinctive: line 47
Prefer behavior-oriented regression tests, domain invariant checks, stronger validation, clearer ownership, better observability, or …
- Distinctive: line 89
Prefer repository-owned validation lanes when prevention depends on repeatable checks.
- Distinctive: line 108
Stop at "human error", "test was wrong", "race condition", or "environment issue" without evidence and a control gap.
- Distinctive: line 113
Add process-heavy follow-ups that are not proportional to impact and recurrence risk.
“Common” is measured: kept by at least 6 in 10 of the 16 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
Root cause analysis (RCA) identifies the underlying technical, process, and system factors that allowed a failure to occur or recur. Its goal is durable prevention, not just the smallest code fix.
When to Use
Use this skill for:
- Recurring defects, flaky failures, repeated regressions, or incident trends.
- Production or incident-like failures where impact, timeline, and prevention matter.
- Customer-impacting behavior where the direct fix is not enough to explain why the defect escaped.
- Cross-team, workflow, validation, documentation, release, observability, or ownership gaps.
- Postmortem-style analysis after
systematic-debugginghas identified the immediate cause of a current symptom.
Do not use this as the first response to an active failing test, crash, or
unknown bug. Use systematic-debugging first to reproduce the symptom, capture
evidence, and isolate the direct cause.
RCA Workflow
- Define the event
- What happened, when, where it was observed, and who/what was affected?
- Use concrete evidence: test names, commands, route classes, logs, metrics, screenshots, traces, or user-visible behavior.
- Separate symptom, trigger, root cause, and contributing factors
- Symptom: what was observed.
- Proximate trigger: what activated the failure.
- Direct cause: the technical mechanism.
- Contributing factors: why the issue escaped or recurred.
- Map expected vs actual controls
- Which test, review, type, constraint, migration, observability, or process should have caught this?
- Was the control absent, weak, bypassed, flaky, undocumented, or scoped to the wrong layer?
- Identify durable prevention
- Prefer behavior-oriented regression tests, domain invariant checks, stronger validation, clearer ownership, better observability, or documented workflow changes over broad rewrites.
- Prioritize actions
- Separate required fixes from nice-to-have cleanup.
- Assign follow-ups to the lowest layer that prevents recurrence.
Techniques
- 5 Whys: useful for walking from the proximate failure to a process or system gap. Stop when the next "why" would become speculative.
- Fault tree: useful when multiple independent factors could have caused or amplified the failure.
- Control gap analysis: useful when prevention depends on repository workflows, generated artifacts, schema metadata, feature boundaries, security review evidence, or other controls that should have caught the failure.
- Timeline reconstruction: useful for incidents, flaky tests, releases, and multi-step regressions.
Output Template
## Root Cause Analysis
- Event:
- Impact:
- Evidence reviewed:
- Expected behavior/control:
- Actual behavior/control gap:
- Proximate trigger:
- Direct technical cause:
- Contributing factors:
- Root cause:
- Why existing tests/reviews/checks missed it:
- Corrective actions completed:
- Preventive actions recommended:
- Validation or monitoring needed:
- Remaining risks:Prevention Considerations
- Prefer repository-owned validation lanes when prevention depends on repeatable checks.
- For user-visible behavior, use
behavior-driven-developmentfor stakeholder-readable prevention examples and acceptance criteria. Loadgherkinonly when writing a formal.featureartifact. - For code defects, recommend TDD-style regression coverage at the narrowest useful layer before or alongside implementation.
- For domain failures, name the affected bounded context and invariant rather than describing only tables, routes, or UI widgets.
- For security-sensitive incidents or prevention work, load
security-reviewandsecurity-review-evidence, follow any repository security policy that exists, and keep evidence sanitized.
Guardrails
Do not:
- Stop at "human error", "test was wrong", "race condition", or "environment issue" without evidence and a control gap.
- Blame individuals; analyze systems, ownership, workflow, validation, and technical constraints.
- Recommend broad rewrites when a targeted control prevents recurrence.
- Add process-heavy follow-ups that are not proportional to impact and recurrence risk.
- Claim prevention is complete without validation, monitoring, or an explicit reason it is not needed.
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.

