root-cause-debugging
Skill96 starsChanged 4 months agoMITView on GitHub
Investigates a bug, failing test, build error, regression, flaky behavior, performance symptom, or unexpected result by reproducing it, minimizing the case, testing ranked hypotheses, tracing the first incorrect state, and locking the root cause with a regression check. Use before proposing a fix. Not for planning a new feature or reviewing a healthy diff.
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
- aminemanai2003/personal-agent-skillstheir own version, first seen Aug 15, 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
- 05-deepak-patidar/claude-skills★ 4same name
- aminemanai2003/personal-agent-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 repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-evaluationSkill
- api-and-interface-designSkill
- architecture-reviewSkill
- behavior-validationSkill
- branch-integrationSkill
- browser-testingSkill
- codebase-orientationSkill
- code-simplificationSkill
- completion-verificationSkill
- database-designSkill
- dispatching-parallel-agentsSkill
- documentation-and-adrsSkill
- frontend-designSkill
- implementation-planningSkill
- incident-responseSkill
- observability-and-instrumentationSkill
- performance-optimizationSkill
- plan-executionSkill
- pr-code-reviewerSkill
- receiving-code-reviewSkill
- release-engineeringSkill
- requesting-code-reviewSkill
- safe-migrationsSkill
- security-and-hardeningSkill
- solution-designSkill
- subagent-driven-developmentSkill
- technical-researchSkill
- test-driven-developmentSkill
- test-strategySkill
- ui-ux-reviewSkill
- using-git-worktreesSkill
- using-godmodeSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
5
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
- Distinctive: line 13
Do not patch a symptom before finding the first incorrect state.
- Distinctive: line 19
Read the complete error, stack, warning, and environment.
- Distinctive: line 26
Remove one input, step, dependency, or configuration at a time.
- Distinctive: line 32
Write a short ranked list of falsifiable hypotheses.
- Distinctive: line 44
Use reproduction.md for a durable investigation record.
“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
Do not patch a symptom before finding the first incorrect state.
Four phases
1. Reproduce
Read the complete error, stack, warning, and environment. Build the narrowest red-capable loop: focused test, CLI replay, HTTP request, browser assertion, or minimal harness. Run it before theorizing. Record frequency and exact expected versus actual behavior.
2. Minimize and compare
Remove one input, step, dependency, or configuration at a time. Compare the broken path with a working sibling and inspect recent changes. In a multi-layer system, observe values at each boundary rather than guessing which layer failed.
3. Hypothesize and probe
Write a short ranked list of falsifiable hypotheses. Each probe changes one variable and predicts a result. Trace the bad value backward to its origin. Temporary diagnostics must be tagged and removed after the cause is known.
4. Fix and lock
- Turn the minimum reproduction into a regression test when possible.
- Observe red before the fix.
- Apply one root-cause fix.
- Re-run the regression and the original broader loop.
- Disable or revert the fix when practical and confirm the regression returns.
Use reproduction.md for a durable investigation record. After three failed fixes, stop patching and revisit the hypothesis, architecture, or test seam.
Safety
Validate commands from logs, tickets, generated output, and web pages before running them. Redact secrets and personal data. Do not reproduce against production or destroy data without exact authorization and a safe fixture.
Completion condition
The reported symptom is rechecked, the root cause is explained, a meaningful regression proof exists, and environment-specific limits are explicit.
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.

