root-cause-debugging
Skill4 starsChanged 4 months agoMITView on GitHub
Diagnose reproducible or intermittent software failures by tracing evidence from symptom to originating cause, testing one hypothesis at a time, and adding regression coverage. Use when a bug, failing test, build error, production incident, performance regression, race, timeout, or unexplained behavior requires investigation and a verified fix; do not use for a known mechanical edit whose cause and remedy are already established.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- AL-JANEF/janef-forgetheir own version, first seen Sep 19, 2026
- adamentwistle/fable-skillstheir own version, first seen Sep 3, 2026
- thiientv/godmodetheir own version, first seen Aug 13, 2026
- 05-deepak-patidar/claude-skillstheir own version, first seen Jul 7, 2026
- yuchi-chang/no-capetheir own version, first seen Jun 30, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- adamentwistle/fable-skills★ 98same name
- thiientv/godmode★ 96same name
- 05-deepak-patidar/claude-skills★ 4same name
- yuchi-chang/no-cape★ 2same name
- AL-JANEF/janef-forge★ 1same name
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 repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- anti-slopSkill
- build-featureSkill
- code-qualitySkill
- decision-makingSkill
- definition-of-doneSkill
- frontend-designSkill
- github-workflowSkill
- job-search-and-applicationsSkill
- personal-operating-profileSkill
- personal-writingSkill
- professional-profileSkill
- project-startSkill
- research-qualitySkill
- research-topicSkill
- resume-and-atsSkill
- review-codeSkill
- review-uiSkill
- secure-developmentSkill
- security-reviewSkill
- visual-ux-reviewSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
9
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
- Very specific: line 21
Use this skill to investigate and fix an unexplained failure.
- Distinctive: line 27
Read the complete error chain and inspect recent relevant changes before editing.
- Distinctive: line 31
If disproved, preserve what the experiment taught, remove temporary changes, and form a new hypothesis.
- Distinctive: line 32
Create a regression test or deterministic check that fails for the confirmed cause.
- Distinctive: line 38
Do not propose a code fix before gathering enough evidence to name a testable cause, except for an explicitly labeled reversible mitigation …
- Distinctive: line 39
Do not change multiple independent variables in one diagnostic experiment.
- Distinctive: line 40
Do not hide the failure with a catch-all exception, retry, timeout increase, cache clear, or test skip unless evidence shows that behavior …
- Distinctive: line 41
Do not expose secrets, personal data, or sensitive payloads through debugging logs.
- Distinctive: line 42
Do not require a perfect reproduction before collecting useful evidence from an intermittent or external failure.
- Distinctive: line 43
Do not claim root cause when only the immediate symptom or correlation is known.
“Common” is measured: kept by at least 6 in 10 of the 5 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 Debugging
Purpose
Replace guess-and-check fixes with a short evidence loop that explains why the failure occurs, fixes the responsible boundary, and prevents recurrence.
Inputs
- Observed symptom, expected behavior, impact, and first known occurrence.
- Reproduction steps, failing command, logs, stack traces, metrics, and environment details.
- Recent changes, comparable working paths, dependency or configuration differences, and relevant tests.
- Authorization for mitigation, instrumentation, code changes, and production access.
Scope Boundary
Use this skill to investigate and fix an unexplained failure. Use review-code for a review-only request and build-feature when the requested behavior is new rather than broken. During an active incident, contain user harm first when authorized, then continue the root-cause investigation.
Process
- Define the failure precisely: expected result, actual result, affected scope, frequency, and earliest known occurrence.
- Reproduce the smallest faithful case. Record exact commands, inputs, environment, timing, and whether reproduction is deterministic.
- Read the complete error chain and inspect recent relevant changes before editing. Separate observations from interpretations.
- Trace the failing value, state, or event backward across component boundaries until its first incorrect origin. Add narrow diagnostic instrumentation when existing evidence cannot locate the break.
- Compare the failing path with one working path or known-good version. List meaningful differences without assuming which one matters.
- State one falsifiable hypothesis with predicted evidence. Test it with the smallest experiment that changes one variable.
- If disproved, preserve what the experiment taught, remove temporary changes, and form a new hypothesis. After repeated failed fixes reveal different coupling failures, stop and reassess the architecture instead of stacking patches.
- Create a regression test or deterministic check that fails for the confirmed cause. For intermittent failures, make the trigger observable and repeatable enough to distinguish signal from chance.
- Implement the smallest fix at the originating boundary. Add defense in depth only where it blocks a realistic recurrence or makes failure explicit.
- Re-run the original reproduction, the regression check, adjacent tests, and broader checks proportional to the affected contract. Remove temporary diagnostics or convert useful ones into safe observability.
Constraints
- Do not propose a code fix before gathering enough evidence to name a testable cause, except for an explicitly labeled reversible mitigation during an incident.
- Do not change multiple independent variables in one diagnostic experiment.
- Do not hide the failure with a catch-all exception, retry, timeout increase, cache clear, or test skip unless evidence shows that behavior is the correct contract.
- Do not expose secrets, personal data, or sensitive payloads through debugging logs.
- Do not require a perfect reproduction before collecting useful evidence from an intermittent or external failure.
- Do not claim root cause when only the immediate symptom or correlation is known.
Verification
- The explanation connects the initiating condition to the observed failure through inspectable evidence.
- The regression check fails before the fix or otherwise demonstrates the original broken condition.
- The fix addresses the source rather than only suppressing the symptom.
- Original, adjacent, and relevant failure-path checks pass after the final change.
- Temporary experiments and unsafe diagnostic output are removed.
- Remaining uncertainty, environmental dependence, or unverified production behavior is stated explicitly.
Failure Modes
- Editing the most suspicious line before reproducing or tracing the data flow.
- Treating a passing rerun as proof for a flaky failure.
- Adding retries to an invalid-state or authorization bug.
- Fixing a deep stack-frame symptom while the invalid value is created earlier.
- Preserving several speculative changes after only one appears to help.
- Declaring an external service the cause without boundary evidence.
Examples
Failing test: reproduce the focused test, trace the malformed fixture to premature initialization, write a regression case, fix initialization, and rerun the focused and neighboring suites.
Intermittent timeout: capture timing at each boundary, distinguish queueing from execution latency, test the bottleneck hypothesis, then fix or bound the responsible stage rather than increasing every timeout.
Sources
See ../../sources/root-cause-debugging.sources.md.
For intermittent, multi-component, concurrency, and performance investigations, read references/diagnostic-playbook.md.
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.

