root-cause-tracing
Skill1 starsChanged 5 months agoMITView on GitHub
Trace errors deep in execution back to their original trigger — find the root cause, not just the symptom
15 other projects use a version of this.
Adopted by
Most recently taken up by
- ZacheryGlass/.claudetheir own version, first seen Nov 1, 2026
- OpenxIntelligence/Coding-Agent-Skillstheir own version, first seen Nov 1, 2026
- I-Onlabs/claude-code-skillstheir own version, first seen Oct 25, 2026
- davidanthonyn/claude-skillstheir own version, first seen Oct 20, 2026
- PracticalSwan/agent-skillstheir own version, first seen Oct 19, 2026
- allanninal/claude-code-skillstheir own version, first seen Oct 17, 2026
Used with
Projects with it also use condition-based-waiting, defense-in-depth and 7 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.
kntismSkillcondition-based-waiting
Use when tests have race conditions, timing dependencies, or inconsistent pass/fail behavior - replaces arbitrary timeouts with condition polling to wait for actual state changes, eliminating flaky tests from timing guesses
Also in 3 projects that use this
frankxaiSkilldefense-in-depth
Use when invalid data causes failures deep in execution, requiring validation at multiple system layers - validates at every layer data passes through to make bugs structurally impossible
Also in 3 projects that use this
OpenAISkillverification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Also in 6 projects that use this
OpenAISkilldispatching-parallel-agents
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
Also in 4 projects that use this
- +5 more from openai
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- microsoft/FluidFramework★ 4.9ksame name
- ZacheryGlass/.claude★ 599same name
- withzombies/hyperpowers★ 80same name
- fimoklei/pm-ai-playbook★ 42same name
- PracticalSwan/agent-skills★ 22same name
- I-Onlabs/claude-code-skills★ 4same name
- OpenxIntelligence/Coding-Agent-Skills★ 4same name
- Crumbgrabber/llm_system_template_agents_skills_patterns_tools_prompts★ 3same name
- allanninal/claude-code-skills★ 1same name
- kntism/skills★ 1same name
5 more not listed
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 repository84 other files it gives its agents.
- api-design-reviewerSkill
- api-test-suite-builderSkill
- ask-mattSkill
- aws-solution-architectSkill
- captureSkill
- changelog-generatorSkill
- ci-cd-pipeline-builderSkill
- cloud-securitySkill
- codebase-designSkill
- codebase-onboardingSkill
- code-reviewerSkill
- context-compressSkill
- context-modeSkill
- database-designerSkill
- database-schema-designerSkill
- dependency-auditorSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- env-secrets-managerSkill
- finish-branchSkill
- firecrawlSkill
- focused-fixSkill
- frontend-designSkill
- get-shit-doneSkill
- git-guardrails-claude-codeSkill
- git-worktree-managerSkill
- git-worktreesSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- implementSkill
- improve-codebase-architectureSkill
- incident-commanderSkill
- incident-responseSkill
- mcp-builderSkill
- memSkill
- migration-architectSkill
- monorepo-navigatorSkill
- observability-designerSkill
- performance-profilerSkill
- playwright-testingSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-gainSkill
- ponytail-helpSkill
- ponytail-reviewSkill
- ponytailSkill
- prompt-engineeringSkill
- prototypeSkill
- pr-review-expertSkill
- rag-architectSkill
- red-teamSkill
- reflectSkill
- resolving-merge-conflictsSkill
- runbook-generatorSkill
- self-evalSkill
- senior-architectSkill
- senior-backendSkill
- senior-devopsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 10 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
10
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 8
When errors occur deep in execution, trace back to find the original trigger.
- Distinctive: line 31
Follow the error upstream:
- Distinctive: line 43
Data flow: Follow the data from input to error point
- Distinctive: line 44
Timing: Add logging at each layer, narrow the window
- Distinctive: line 67
Add test that catches this specific failure
- Distinctive: line 68
Consider if similar patterns exist elsewhere
- Distinctive: line 124
Read error message completely
- Distinctive: line 125
Follow stack trace to origin
- Distinctive: line 126
Check what changed recently
- Distinctive: line 127
Verify fix resolves the actual root cause
“Common” is measured: kept by at least 6 in 10 of the 14 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 Tracing
When errors occur deep in execution, trace back to find the original trigger.
When to Use
- Error message is far from actual cause
- Intermittent failures with no obvious trigger
- Stack trace leads through framework code
- Multiple related failures cascading
- "Something broke" but unclear what
Process
1. Capture the Error State
What is the error message?
What is the stack trace?
When does it occur (always, sometimes, under load)?
What changed recently?2. Trace Backwards
Follow the error upstream:
Error at Layer A
← caused by bad input from Layer B
← caused by unexpected state from Layer C
← caused by missing initialization in Layer D (ROOT CAUSE)Techniques:
- Binary search: Comment out half the code path, does error still occur?
- Last known good: Find when it last worked, diff that commit
- Data flow: Follow the data from input to error point
- Timing: Add logging at each layer, narrow the window
3. Identify Root Cause Categories
| Category | Signs |
| State | Race condition, stale data, missing initialization |
| Input | Unexpected null, wrong type, boundary value |
| Configuration | Wrong env var, missing dependency, version mismatch |
| Logic | Off-by-one, wrong condition, missing case |
| Integration | API changed, timeout, permission denied |
4. Verify Root Cause
Can you reproduce with this root cause?
If you fix ONLY this, does everything work?
Are there other paths that trigger the same root cause?5. Fix and Prevent
- Fix root cause, not symptom
- Add test that catches this specific failure
- Consider if similar patterns exist elsewhere
Techniques
Binary Search Bisection
# Find the commit that introduced the bug
git bisect start
git bisect bad # current commit
git bisect good <hash> # last known working
# For each commit, test if bug exists
git bisect run npm testStrategic Logging
# Add trace points
def process(data):
logger.debug(f"process input: {data}")
result = validate(data)
logger.debug(f"validate result: {result}")
return transform(result)State Snapshots
# Capture state at boundaries
state_before = snapshot(system)
result = operation()
state_after = snapshot(system)
diff = compare(state_before, state_after)Common Root Causes
| Symptom | Likely Root Cause |
| "Cannot read property of undefined" | Missing initialization or wrong order |
| Intermittent 500 errors | Race condition or resource exhaustion |
| Works in dev, fails in prod | Environment difference |
| Slow then crashes | Memory leak or connection pool exhaustion |
| Works for small data, fails for large | Missing pagination or timeout |
Red Flags
Don't:
- Fix symptoms without finding cause
- Assume first error is the root cause
- Skip reading the full stack trace
- Ignore "works on my machine" — investigate why
Do:
- Read error message completely
- Follow stack trace to origin
- Check what changed recently
- Verify fix resolves the actual root cause
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.

