withzombies/hyperpowers/debugging-with-tools
Claude Code and agent skill by withzombies/hyperpowers
- community
Checking that the SKILL.md file is still in the repository.
Use when encountering bugs or test failures - systematic debugging using debuggers, internet research, and agents to find root cause before fixing
Install
npx vskill@latest install withzombies/hyperpowers/debugging-with-toolsSKILL.md
<skill_overview> Random fixes waste time and create new bugs. Always use tools to understand root cause BEFORE attempting fixes. Symptom fixes are failure. </skill_overview>
<rigidity_level> MEDIUM FREEDOM - Must complete investigation phases (tools → hypothesis → test) before fixing.
Can adapt tool choice to language/context. Never skip investigation or guess at fixes. </rigidity_level>
<quick_reference>
| Phase | Tools to Use | Output | |
|---|---|---|---|
| 1. Investigate | Error messages, internet-researcher agent, debugger, codebase-investigator | Root cause understanding | |
| 2. Hypothesize | Form theory based on evidence (not guesses) | Testable hypothesis | |
| 3. Test | Validate hypothesis with minimal change | Confirms or rejects theory | |
| 4. Fix | Implement proper fix for root cause | Problem solved permanently |
FORBIDDEN: Skip investigation → guess at fix → hope it works REQUIRED: Tools → evidence → hypothesis → test → fix
Key agents:
internet-researcher- Search error messages, known bugs, solutionscodebase-investigator- Understand code structure, find related codetest-runner- Run tests without output pollution
</quick_reference>
<when_to_use> Use for ANY technical issue:
- Test failures
- Bugs in production or development
- Unexpected behavior
- Build failures
- Integration issues
- Performance problems
ESPECIALLY when:
- "Just one quick fix" seems obvious
- Under time pressure (emergencies make guessing tempting)
- Error message is unclear
- Previous fix didn't work
</when_to_use>
<the_process>
Phase 1: Tool-Assisted Investigation
BEFORE attempting ANY fix, gather evidence with tools:
1. Read Complete Error Messages
- Entire error message (not just first line)
- Complete stack trace (all frames)
- Line numbers, file paths, error codes
- Stack traces show exact execution path
2. Search Internet FIRST (Use internet-researcher Agent)
Dispatch internet-researcher with:
What agent should find:
- Exact matches to your error
- Similar symptoms and solutions
- Known bugs in your dependency versions
- Workarounds that worked for others
3. Use Debugger to Inspect State
Claude cannot run debuggers directly. Instead:
Option A - Recommend debugger to user:
Option B - Add instrumentation Claude can add:
4. Investigate Codebase (Use codebase-investigator Agent)
Dispatch codebase-investigator with:
Phase 2: Form Hypothesis
Based on evidence (not guesses):
- State what you know (from investigation)
- Propose theory explaining the evidence
- Make prediction that tests the theory
Example:
NEVER:
- Guess without evidence
- Propose fix without hypothesis
- Skip to "try this and see"
Phase 3: Test Hypothesis
Minimal change to validate theory:
- Make smallest change that tests hypothesis
- Run test/reproduction case
- Observe result
If confirmed: Proceed to Phase 4 If rejected: Return to Phase 1 with new information
Phase 4: Implement Fix
After understanding root cause:
- Write test reproducing bug (RED phase - use test-driven-development skill)
- Implement proper fix addressing root cause
- Verify test passes (GREEN phase)
- Run full test suite (regression check)
- Commit fix
The fix should:
- Address root cause (not symptom)
- Be minimal and focused
- Include test preventing regression
</the_process>
<examples>
<example> <scenario>Developer encounters test failure, immediately tries "obvious" fix without investigation</scenario>
<code> Test error:
Developer thinks: "Obviously the token expiration check is wrong"
Makes change without investigation:
Commits without testing other cases. </code>
<why_it_fails> No investigation:
- Didn't read error completely
- Didn't check what
expires_atcontains - Didn't debug to see token state
- Didn't search for similar issues
What actually happened: Token expires_at was being parsed incorrectly, always showing future date. The "fix" adds dead code that never runs.
Result: Bug not fixed, new dead code added, time wasted. </why_it_fails>
<correction> Phase 1 - Investigate with tools:
Dispatch internet-researcher:
Add instrumentation:
Run test again:
Phase 2 - Hypothesis: "Token expires_at is being set to 2099, not actual expiration. Problem is in token creation, not validation."
Phase 3 - Test: Check token creation code:
Phase 4 - Fix root cause:
Result: Root cause fixed, test passes, no dead code. </correction> </example>
<example> <scenario>Developer skips internet search, reinvents solution to known problem</scenario>
<code> Error:
Developer thinks: "Must be a linking issue, I'll add flags"
Spends 2 hours trying different linker flags:
</code>
<why_it_fails> Skipped internet search:
- This is a common error with known solutions
- Stack Overflow has exact fix
- Official docs explain the issue
- Wasted 2 hours reinventing solution
Why it happens: Impatience, thinking "I can figure this out faster" </why_it_fails>
<correction> Dispatch internet-researcher FIRST:
Agent returns (30 seconds):
Apply solution:
Result: Fixed in 5 minutes, not 2 hours. </correction> </example>
<example> <scenario>Developer fixes symptom without understanding root cause, bug returns different way</scenario>
<code> Bug: Users can delete other users' posts
Developer notices: DELETE /posts/:id doesn't check ownership
"Fix":
Bug "fixed"... but bug report comes back: "Users can edit other users' posts" </code>
<why_it_fails> Symptom fix:
- Fixed DELETE endpoint
- Didn't investigate root cause
- Didn't check other endpoints
Root cause: No authorization middleware checking ownership across ALL endpoints.
Result: Whack-a-mole fixing symptoms, not the underlying issue. </why_it_fails>
<correction> Phase 1 - Investigate with codebase-investigator:
Agent reports:
Phase 2 - Hypothesis: "Missing authorization layer. Need middleware checking resource ownership across ALL endpoints."
Phase 4 - Fix root cause:
Result: Root cause fixed, ALL endpoints secured, not just one symptom. </correction> </example>
</examples>
<critical_rules>
Rules That Have No Exceptions
- Tools before fixes → Never guess without investigation
- Use internet-researcher for errors
- Use debugger or instrumentation for state
- Use codebase-investigator for context
- Evidence-based hypotheses → Not guesses or hunches
- State what tools revealed
- Propose theory explaining evidence
- Make testable prediction
- Test hypothesis before fixing → Minimal change to validate
- Smallest change that tests theory
- Observe result
- If wrong, return to investigation
- Fix root cause, not symptom → One fix, many symptoms prevented
- Understand why problem occurred
- Fix the underlying issue
- Don't play whack-a-mole
Common Excuses
All of these mean: Stop, use tools to investigate:
- "The fix is obvious"
- "I know what this is"
- "Just a quick try"
- "No time for debugging"
- "Error message is clear enough"
- "Internet search will take too long"
</critical_rules>
<verification_checklist>
Before proposing any fix:
- [ ] Read complete error message (not just first line)
- [ ] Dispatched internet-researcher for unclear errors
- [ ] Used debugger or added instrumentation to inspect state
- [ ] Dispatched codebase-investigator to understand context
- [ ] Formed hypothesis based on evidence (not guesses)
- [ ] Tested hypothesis with minimal change
- [ ] Verified hypothesis confirmed before fixing
Before committing fix:
- [ ] Written test reproducing bug (RED phase)
- [ ] Verified test fails before fix
- [ ] Implemented fix addressing root cause
- [ ] Verified test passes after fix (GREEN phase)
- [ ] Ran full test suite (regression check)
</verification_checklist>
<integration>
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 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 repositoryCheckingskills/debugging-with-tools/SKILL.md
Popularity
- Repository stars
- 80
- Repository forks
- 16
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 6 May 2026, 6 months ago.
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/withzombies/hyperpowers/debugging-with-tools)