agentleFS
nledfordnledford/engineering-review-board/skills/root-cause-analysis/SKILL.md

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

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.
  • OpenAISkill

    observability

    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

  • GoogleSkill

    improve-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

  • GoogleSkill

    tdd

    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

  • MicrosoftSkill

    handoff

    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

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
  1. Distinctive:

    Use this skill for:

    line 14
  2. Very specific:

    Do not use this as the first response to an active failing test, crash, or unknown bug.

    line 26
  3. Distinctive:

    Use concrete evidence: test names, commands, route classes, logs, metrics, screenshots, traces, or user-visible behavior.

    line 34
  4. Distinctive:

    Prefer behavior-oriented regression tests, domain invariant checks, stronger validation, clearer ownership, better observability, or …

    line 47
  5. Distinctive:

    Prefer repository-owned validation lanes when prevention depends on repeatable checks.

    line 89
  6. Distinctive:

    Stop at "human error", "test was wrong", "race condition", or "environment issue" without evidence and a control gap.

    line 108
  7. Distinctive:

    Add process-heavy follow-ups that are not proportional to impact and recurrence risk.

    line 113

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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-debugging has 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

  1. 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.
  2. 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.
  3. 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?
  4. Identify durable prevention
    • Prefer behavior-oriented regression tests, domain invariant checks, stronger validation, clearer ownership, better observability, or documented workflow changes over broad rewrites.
  5. 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-development for stakeholder-readable prevention examples and acceptance criteria. Load gherkin only when writing a formal .feature artifact.
  • 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-review and security-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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.