Skip to content
Back to skills

Root Cause Hunt

ASecurity

Use when a first fix failed, the cause isn't obvious, a failure is intermittent, or something got slower. Skip obvious one-liners.

  • 2 stars
  • 0 votes
  • 1 copy
  • 2 views
  • Added November 21, 2026
researchgotesting

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 21, 2026

npx -y skills add dev-dami/dami-stack --skill root-cause-hunt --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Root Cause Hunt?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Root Cause Hunt
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dev-dami-root-cause-hunt/badge)](https://www.skillsdirectory.com/skills/dev-dami-root-cause-hunt)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: root-cause-hunt
description: "Use when a first fix failed, the cause isn't obvious, a failure is intermittent, or something got slower. Skip obvious one-liners."
user-invocable: false
---
# Root cause hunt
Job: Replace guesses with evidence until the confirmed cause is fixed.
Takes: a symptom.   Gives: a fix, a regression test or a stated reason for none, and the confirmed cause.
Team moves: dispatch, isolate, race, remember

Run the six stages in order. Skip one only with a reason you state.

## Steps

1. **Signal.** Build one runnable signal before any theory, climbing the rungs in the file `signal-ladder.md` in this skill. It is ready when it:
   - has already run, as one command
   - hits the real path
   - asserts the user's exact symptom
   - gives the same answer each run
   - takes seconds and runs unattended

   Hold every theory until that command exists. If no rung works, stop, list what you tried, and ask for one of: environment access, a redacted capture, or permission for temporary production instrumentation.
2. **Confirm and shrink.** Check that the signal shows the user's failure, repeatably, and not a neighbouring one. Record the exact symptom. Then remove one input, caller, config item or step at a time, re-running after each, until all that remains is needed.
3. **Rank hypotheses.** Write three to five, ranked, before testing any. Each predicts what a specific change does: `The retry reuses a closed connection. Forcing the first attempt to fail will fail every run.` Sharpen or drop any that predicts nothing. Share the ranking and carry on, since the user can often rule some out.
4. **Probe.** One probe tests one prediction by changing one variable. Prefer a debugger. Otherwise add targeted logs where hypotheses diverge, each tagged with one unique marker such as `[hunt-7f3]` so a single search finds them all. Skip blanket logging. For a slowdown, measure a baseline and bisect, because logs usually mislead there.
5. **Test, then fix.** Add the regression test before the fix, at a seam that recreates how the failure really reaches callers. A shallower test gives false confidence. A missing seam is a finding: use the skill `module-depth`, and state the gap. Turn the minimal case into the failing test and see it fail. If you forced the failure by mutating code or data, diff against a clean copy so the mutation can't reach the fix. Fix, see it pass, and re-run the signal.
6. **Close.** Confirm the original failure is gone. Confirm the test passes or the gap is documented. Remove temporary logs and harnesses. State the confirmed hypothesis in the commit message.

## Captures

Redact everything you capture or quote. Keep credentials in environment variables and quote capture lines sparingly. If redaction blocks the diagnosis, say so.

## In a team

- Parallel work starts only after the signal exists. Put the signal command in every brief, so each entry proves itself the same way.
- Two or more independent hypotheses: dispatch isolated probes, one hypothesis each.
- A known cause with several fix approaches: race them. The user keeps one entry, and it then goes through the route `race`.
- A probe's result is `[reported]` until you re-run the signal against it yourself.
- Pin the confirmed trap at its location with the remember move.
- At solo level, probe in rank order. A race there is one attempt: say no race ran.

## Done when

- The signal command is quoted, and you saw it fail before the fix and pass after it, `[observed]`.
- The recorded symptom is the user's, and the fix addresses that symptom.
- Hypotheses were written before the first probe, and the confirmed one is named.
- A regression test at a real seam was seen failing then passing, or the report states why there is none.
- A search for the temporary marker finds nothing, and every harness is gone.
- The commit message states the confirmed hypothesis.
- Each skipped stage has its reason stated, and every quoted capture is redacted.

Files in this skill

  • SKILL.md3.9 KB
  • signal-ladder.md2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.