debug-tracer
Skill9 starsChanged 3 months agoMITView on GitHub
If you cannot reproduce it, stop. A bug you can't reproduce cannot be safely fixed. Never fix before confirming hypothesis.
In this repository109 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- router/CLAUDE.mdCLAUDE.md
- .agents/skills/llms.txtllms.txt
- agent-harnessSkill
- auto-fixSkill
- brain-dumpSkill
- industrial-brutalist-uiSkill
- changelog-enforcerSkill
- checkpoint-strategySkill
- context-primeSkill
- cooldown-resumeSkill
- council-reviewSkill
- data-quality-auditSkill
- dependency-auditSkill
- deslopSkill
- docs-syncSkill
- duplicate-threadSkill
- email-triageSkill
- fabric-patternsSkill
- feature-flagSkill
- git-hygieneSkill
- graphifySkill
- implementation-plannerSkill
- insightsSkill
- issue-resolverSkill
- learn-ruleSkill
- local-ai-querySkill
- lr-schedule-advisorSkill
- minimalist-uiSkill
- modularity-reviewSkill
- full-output-enforcementSkill
- parallel-agentsSkill
- parallel-worktreesSkill
- prompt-librarySkill
- prompt-transparencySkill
- pro-workflowSkill
- redesign-existing-projectsSkill
- release-readinessSkill
- replay-learningsSkill
- repo-memory-updaterSkill
- repowise-intelligenceSkill
- researchSkill
- resource-panelSkill
- risky-module-reviewSkill
- sandboxed-execSkill
- scope-guardSkill
- self-improveSkill
- session-handoffSkill
- skill-composerSkill
- smart-commitSkill
- high-end-visual-designSkill
- stitch-design-tasteSkill
- system-prompt-auditSkill
- task-alive-updatesSkill
- task-scoperSkill
- design-taste-frontendSkill
- test-first-executorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
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 16
Before any investigation, reproduce the bug:
- Distinctive: line 25
If you cannot reproduce it, stop.
- Distinctive: line 31
When it started occurring (if known)
- Distinctive: line 50
Update hypothesis list based on results
- Distinctive: line 58
Check if the same pattern exists elsewhere in the codebase
- Distinctive: line 62
Do not "fix" symptoms
- Distinctive: line 63
Do not add defensive code around the bug without fixing it
- Distinctive: line 67
Write a test that:
- Distinctive: line 91
Never commit a fix without a regression test
- Distinctive: line 92
If the root cause is "unclear", keep investigating — don't guess-fix
- Distinctive: line 94
Document the reasoning, not just the change
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: debug-tracer
Purpose
Systematically trace and resolve bugs using hypothesis-driven debugging. Prevents random trial-and-error and ensures the root cause is found, not just the symptom.
Trigger
Use when:
- A bug report needs investigation
- Tests are failing unexpectedly
- Behavior is wrong but the cause is unknown
- "It worked before" situations
Process
Step 1: Reproduce First
Before any investigation, reproduce the bug:
# Document exact reproduction steps:
1. [exact command or action]
2. [expected behavior]
3. [actual behavior]
4. [error message or output]If you cannot reproduce it, stop. A bug you can't reproduce cannot be safely fixed.
Step 2: Gather Evidence
Collect all available information:
- Full error message and stack trace
- Relevant log output
- When it started occurring (if known)
- What changed recently (
git log --oneline -20) - Environment details if relevant
Step 3: Form Hypotheses
Based on the evidence, list 2-5 hypotheses ranked by likelihood:
## Hypotheses
1. [Most likely] The input validation in X is not handling Y case
2. [Likely] Race condition in async handler Z
3. [Possible] Dependency version mismatch after recent update
4. [Unlikely] Infrastructure/environment issueStep 4: Test Hypotheses (Cheapest First)
For each hypothesis, starting with the easiest to test:
- What evidence would confirm or deny this hypothesis?
- What is the minimal test to check it?
- Run the test
- Update hypothesis list based on results
Never fix before confirming hypothesis.
Step 5: Identify Root Cause
Once a hypothesis is confirmed:
- Find the exact line(s) causing the issue
- Understand WHY it causes the issue (not just that it does)
- Check if the same pattern exists elsewhere in the codebase
Step 6: Fix
Apply the minimal fix that addresses the root cause:
- Do not "fix" symptoms
- Do not add defensive code around the bug without fixing it
- The fix should make the reproduction steps work correctly
Step 7: Add Regression Test
Write a test that:
- Reproduces the exact bug scenario
- Fails before the fix
- Passes after the fix
- Will catch any future regression
Step 8: Post-Mortem (for significant bugs)
## Bug Post-Mortem
### Root Cause
[What caused the bug]
### Why It Wasn't Caught
[Why tests/review didn't catch this]
### Fix Applied
[What was changed]
### Prevention
[What could prevent this class of bug in future]Rules
- Never commit a fix without a regression test
- If the root cause is "unclear", keep investigating — don't guess-fix
- A fix that introduces a new bug is worse than the original bug
- Document the reasoning, not just the change
Anti-Patterns
- Shotgun debugging: changing multiple things at once and seeing if it works
- Symptomatic fixes: adding
try/exceptaround broken code - Cargo-cult fixes: copying a similar fix without understanding why
- Optimistic fixing: assuming the fix works without verifying
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.

