agentleFS
aradmanamnaoonaradmanamnaoon/vibe-coding-skills/skills/debugging/root-cause-debugger/SKILL.md

root-cause-debugger

Skill0 starsChanged 18 days agoMITView on GitHub

Diagnose recurring software failures from reproducible evidence, logs, failing tests, and causal hypotheses. Use when a bug fix is uncertain, repeated, or risks treating symptoms.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 6

    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 applicable repository instructions before edits.

    line 20
  2. Distinctive:

    Run the cheapest discriminating check first.

    line 36
  3. Distinctive:

    Run the original reproducer, focused regression tests, and one adjacent unaffected path.

    line 38
  4. Distinctive:

    Do not delete data, weaken assertions, suppress exceptions, or broaden retries merely to hide the symptom.

    line 46
  5. Distinctive:

    No unrelated behavior or files changed without a dependency rationale.

    line 52
  6. Distinctive:

    If the failure cannot be reproduced, stop code edits and report the missing environment, inputs, or observability needed to discriminate …

    line 63

“Common” is measured: kept by at least 6 in 10 of the 3 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

Purpose

Find the smallest falsifiable explanation for a failure before changing code.

When to activate

A bug, runtime failure, flaky behavior, or repeated unsuccessful fix needs diagnosis.

When not to activate

The root cause is already proven by a minimal failing test and the requested task is only to implement the known fix.

Preconditions

  • Read applicable repository instructions before edits.
  • Preserve unrelated working-tree changes and establish a baseline when the workflow can modify code.
  • Identify which tools and environments are actually available; do not claim unavailable checks ran.

Required inputs

  • Failure report or expected/actual behavior
  • Relevant logs, stack traces, and commands
  • Repository state and recent changes

Workflow

  1. Reproduce the failure with the narrowest command or test available.
  2. Capture the exact failing assertion, frame, request, or observable symptom before editing.
  3. List at most three causal hypotheses and state what evidence would falsify each.
  4. Inspect the code paths and recent changes that connect the symptom to each hypothesis.
  5. Run the cheapest discriminating check first; discard hypotheses contradicted by evidence.
  6. Implement the smallest fix that addresses the supported cause.
  7. Run the original reproducer, focused regression tests, and one adjacent unaffected path.

Relevant tools

Repository search, test runner, logs, debugger, version-control history when available.

Safety restrictions

Do not delete data, weaken assertions, suppress exceptions, or broaden retries merely to hide the symptom.

Validation

  • The original failure changes from red to green for the expected reason.
  • A regression test fails before the fix and passes after it when feasible.
  • No unrelated behavior or files changed without a dependency rationale.

Expected output

  • Root-cause statement with evidence
  • Changed files and why they are necessary
  • Commands/tests executed with observed results
  • Remaining uncertainty

Failure handling

If the failure cannot be reproduced, stop code edits and report the missing environment, inputs, or observability needed to discriminate hypotheses.

Completion criteria

The skill is complete only when every applicable validation item above has observed evidence or is explicitly marked not executed with the concrete blocker. Do not replace missing evidence with confidence language.

Research mapping

This skill was selected from research problems: P006, P008, P011. See research/vibe-coding-problems.md and research/problem-evidence.csv in the Vibe Coding Skills repository.

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.