lswhiteh/claude-agent-runner/debug
Claude Code and agent skill by lswhiteh/claude-agent-runner
- community
Checking that the SKILL.md file is still in the repository.
Systematic debugging workflow. Reproduces the issue, isolates the root cause, fixes it, and adds a regression test. Use when something is broken and the cause isn't obvious.
Install
npx vskill@latest install lswhiteh/claude-agent-runner/debugSKILL.md
The same SKILL.md was published earlier as lswhiteh/claude-agent-runner/debug.
debug
Systematic approach to finding and fixing bugs. Do not guess — follow the evidence.
Step 1: Reproduce
Before anything else, reproduce the bug reliably:
- What's the exact error message or incorrect behavior?
- What are the steps to trigger it?
- Does it happen every time or intermittently?
- When did it start? (check recent commits:
git log --oneline -20)
If you can't reproduce it, you can't verify the fix. Get a reliable repro first.
Step 2: Gather Evidence
Read error messages carefully — they usually point to the exact problem:
Step 3: Form a Hypothesis
Based on the evidence, form ONE specific hypothesis:
- "The null check on line 42 doesn't account for empty strings"
- "The migration added a NOT NULL column without a default"
- "The API response shape changed but the client type wasn't updated"
Step 4: Narrow Down
Bisect to isolate the root cause:
For runtime errors:
- Add targeted logging around the suspect code
- Check the exact values at the point of failure
- Trace the data backwards — where did the bad value come from?
For regressions:
For intermittent bugs:
- Race conditions: add logging with timestamps
- State-dependent: check what state differs between success and failure
- Environment-dependent: compare env vars, node version, OS
Step 5: Write a Failing Test
BEFORE fixing the bug, write a test that reproduces it:
This ensures:
- You understand the bug correctly
- Your fix actually works
- The bug can't regress silently
Step 6: Fix
Apply the minimal fix. Don't refactor surrounding code — that's a separate task.
Step 7: Verify
- Run the failing test — it should pass now
- Run the full test suite — nothing else should break
- Manually verify the original repro steps work correctly
- Check edge cases related to your fix
Rules
- Don't fix symptoms — find the root cause
- Don't add workarounds unless the real fix requires a larger change (and document the workaround with a TODO)
- One bug, one fix, one commit — don't bundle unrelated changes
- If the fix is in a different area than expected, investigate why your initial assumption was wrong
- If you can't find the root cause after 30 minutes of investigation, step back and re-read the error message from scratch
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/debug/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/lswhiteh/claude-agent-runner/debug)