myoung34/dotfiles/systematic-debugging
- community
Checking that the SKILL.md file is still in the repository.
Four-phase debugging methodology with root cause analysis. Use when investigating bugs, fixing test failures, or troubleshooting unexpected behavior. Emphasizes NO FIXES WITHOUT ROOT CAUSE FIRST.
Install
npx vskill@latest install myoung34/dotfiles/systematic-debuggingSKILL.md
Systematic Debugging
Core Principle
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.
Never apply symptom-focused patches that mask underlying problems. Understand WHY something fails before attempting to fix it.
The Four-Phase Framework
Phase 1: Root Cause Investigation
Before touching any code:
- Read error messages thoroughly — every word matters.
- Reproduce consistently — you can't verify a fix you can't reproduce.
- Examine recent changes — what changed before this started failing?
- Gather diagnostic evidence — logs, stack traces, state dumps.
- Trace data flow — follow the call chain to where bad values
originate.
- Check for prior occurrences — search organizational knowledge
sources (Slack, Confluence, Jira) for the same error, a known issue, or a past incident. See `../shared/KNOWLEDGE-SOURCES.md`.
On a gnarly bug, delegate this evidence-gathering and prior-occurrence search to a read-only diagnostic subagent that reports findings — review-only; do not modify code or run tools that change state. Phase 4 implementation stays in the main thread so each fix is steerable.
Root-cause tracing technique:
Key principle: never fix only where the error appears — always trace to the original trigger.
Phase 2: Pattern Analysis
- Locate working examples — similar code that works correctly.
- Compare implementations completely — don't just skim.
- Identify differences — what differs between working and broken?
- Understand dependencies — what does this code depend on?
Phase 3: Hypothesis and Testing
Apply the scientific method:
- Formulate ONE clear hypothesis — "the error occurs because X".
- Design a minimal test — change ONE variable at a time.
- Predict the outcome — what happens if the hypothesis is correct?
- Run the test — execute and observe.
- Verify results — did it behave as predicted?
- Iterate or proceed — refine if wrong, implement if right.
Phase 4: Implementation
- Create a failing test case — captures the bug behavior.
- Implement a single fix — address root cause, not symptoms.
- Verify the test passes — confirms the fix works.
- Run the full test suite — ensure no regressions.
- If the fix fails, STOP — re-evaluate the hypothesis.
Critical rule: if THREE or more fixes fail consecutively, STOP. This signals architectural problems requiring discussion, not more patches.
Red Flags — Process Violations
Stop immediately if you catch yourself thinking:
- "Quick fix for now, investigate later"
- "One more fix attempt" (after multiple failures)
- "This should work" (without understanding why)
- "Let me just try..." (without a hypothesis)
- "It works on my machine" (without investigating the difference)
Warning Signs of Deeper Problems
Consecutive fixes revealing new problems in different areas indicates architectural issues:
- Stop patching.
- Document what you've found.
- Discuss with the team before proceeding.
- Consider whether the design needs rethinking.
Common Debugging Scenarios
Test Failures
Runtime Errors
"It worked before"
Intermittent Failures
Debugging Checklist
Before claiming a bug is fixed:
- [ ] Root cause identified and documented
- [ ] Hypothesis formed and tested
- [ ] Fix addresses root cause, not symptoms
- [ ] Failing test created that reproduces the bug
- [ ] Test now passes with the fix
- [ ] Full test suite passes
- [ ] No "quick fix" rationalization used
- [ ] Fix is minimal and focused
- [ ] Documentation updated if behavior changed (
docs/**/*.md,
**/README.md)
Success Metrics
Systematic debugging achieves ~95% first-time fix rate vs ~40% with ad-hoc approaches.
Signs you're doing it right:
- Fixes don't create new bugs.
- You can explain WHY the bug occurred.
- Similar bugs don't recur.
- Code is better after the fix, not just "working".
Integration with Other Skills
- go-testing: create a test that reproduces the bug before fixing.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghome/dot_agents/skills/systematic-debugging/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/myoung34/dotfiles/systematic-debugging)