agentleFS
abevzabevz/devops-skills/skills/root-cause-analysis/SKILL.md

root-cause-analysis

Skill0 starsChanged 41 days agoMITView on GitHub

Use when investigating a bug, failure, regression, outage, or unclear behavior and the cause is not yet known. Mention "root cause", "why is this happening", "investigate this bug" as triggers.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use observability, adversarial-review and 6 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

  • MicrosoftSkill

    adversarial-review

    Adversarial review of a system design from 6 critical perspectives -- SRE, security, staff engineer, finance, operator, and developer advocate. Produces a unified risk assessment. Use for INTERACTIVE on-demand reviews during a design conversation (/adversarial-review). For RECIPE-DRIVEN reviews (where prior step context is needed), use the systems-design-critic agent instead.

    Also in 3 projects that use this

  • GoogleSkill

    domain-modeling

    Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model.

    Also in 4 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

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

  • +3 more from google

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read exact errors, recent changes, call paths, and focused test output.

    line 18
  2. Distinctive:

    Do not present an untested hypothesis as the confirmed cause.

    line 22
  3. Distinctive:

    Follow the Workflow, Safety rules, and Quality checklist below.

    line 26
  4. Distinctive:

    Use when something is broken, behaving unexpectedly, or regressed, and the cause is not yet established — before jumping to a fix.

    line 36
  5. Distinctive:

    Do not state a cause as confirmed until it has been validated with evidence.

    line 64
  6. Distinctive:

    If two hypotheses remain equally plausible after investigation, say so rather than picking one arbitrarily.

    line 67
  7. Distinctive:

    Do not apply the fix automatically unless asked — propose it first.

    line 69

“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

TL;DR checklist

  • Write the exact observed and expected behavior.
  • Tie hypotheses to logs, code, metrics, and timeline evidence.
  • Test competing explanations until one cause is supported.

Key read-only checks

  • Read exact errors, recent changes, call paths, and focused test output.

Common pitfalls

  • Do not present an untested hypothesis as the confirmed cause.

Agent procedure

Follow the Workflow, Safety rules, and Quality checklist below.

Quick references

  • Workflow below.

Last verified: unverified

When to use

Use when something is broken, behaving unexpectedly, or regressed, and the cause is not yet established — before jumping to a fix.

Goal

Find the actual root cause, backed by evidence, and propose a fix and a way to prevent recurrence — without guessing.

Workflow

  1. Symptoms — write down exactly what is observed (error message, wrong output, crash, latency spike) and what was expected instead.
  2. Timeline — when did it start? What changed around that time (deploy, config, dependency bump, traffic pattern, data shape)?
  3. Evidence — gather logs, stack traces, metrics, recent commits/diffs, test failures. Quote exact evidence; do not paraphrase from memory.
  4. Hypotheses — list plausible causes ranked by likelihood, each tied to specific evidence that would confirm or rule it out.
  5. Validation — test each hypothesis (reproduce locally, add a targeted log/print, bisect the commit history, read the exact code path) until one is confirmed.
  6. Root cause — state the confirmed cause in one or two sentences, distinct from any contributing/secondary factors.
  7. Fix — propose the minimal correct fix for the root cause, not just the symptom.
  8. Prevention — suggest how to prevent this class of bug (test, assertion, lint rule, monitoring, process change).

Safety rules

  • Do not state a cause as confirmed until it has been validated with evidence.
  • Clearly separate "evidence" (what was observed) from "assumption" (what you believe but haven't checked) at every step.
  • If two hypotheses remain equally plausible after investigation, say so rather than picking one arbitrarily.
  • Do not apply the fix automatically unless asked — propose it first.

Output format

## Symptoms
## Timeline
## Evidence
## Hypotheses (ranked)
## Validation
## Root cause
## Fix
## Prevention

Quality checklist

  • Every claim in "Root cause" is backed by evidence listed above it
  • Assumptions are explicitly labeled as assumptions, not stated as fact
  • At least one alternative hypothesis was considered and ruled out
  • The fix addresses the root cause, not just the symptom
  • A prevention measure is proposed, not just the fix

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.