vstorm-co/pydantic-deepagents/systematic-debugging
Claude Code and agent skill by vstorm-co/pydantic-deepagents
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Systematic approach to diagnosing and fixing errors
Install
npx vskill@latest install vstorm-co/pydantic-deepagents/systematic-debuggingSKILL.md
The same SKILL.md was published earlier as vstorm-co/pydantic-deepagents/systematic-debugging.
Systematic Debugging
A structured approach to finding and fixing bugs.
The Debugging Loop
Never skip steps. Never guess-and-check repeatedly.
Step 1: Reproduce
- Run the exact command that fails
- Capture FULL output (stdout AND stderr)
- Note: exit code, error message, stack trace
- If intermittent, identify what changes between runs
Step 2: Isolate
- What's the MINIMAL input that triggers the error?
- Which specific line/function fails? (read the traceback bottom-up)
- Is it a compile error, runtime error, or wrong output?
- Does it fail on all inputs or specific ones?
Step 3: Diagnose
Read the error message carefully
| Error type | Where to look | |
|---|---|---|
| Compile error | The FIRST error (later ones are often cascading) | |
| Segfault | Last function in the stack trace, check array bounds and null pointers | |
| Python traceback | The innermost frame (bottom), but also check the middle for context | |
| Wrong output | Diff expected vs actual: diff <(expected) <(actual) | |
| Timeout/hang | Is it an infinite loop? Deadlock? I/O bound? Add a timer or counter |
Add minimal instrumentation
- C:
fprintf(stderr, "reached checkpoint %d\n", __LINE__); - Python:
print(f"DEBUG: {var=}", file=sys.stderr) - Check intermediate values, not just final output
- Remove debug prints after fixing
Step 4: Fix
- Change ONE thing at a time
- If the same approach fails 3 times → completely different strategy
- Don't add workarounds — fix the root cause
- Common root causes:
- Off-by-one errors (loop bounds, array indexing)
- Type mismatches (int vs float, signed vs unsigned)
- Encoding issues (UTF-8 vs bytes)
- Path errors (relative vs absolute, missing trailing slash)
- Race conditions (file not written yet, process not started)
Step 5: Verify
- Run the same command that failed before
- Test with multiple inputs, not just the one that was failing
- Check edge cases: empty input, single element, very large input
- Run any existing test suite
Common Failure Patterns
"It compiles but gives wrong output"
- Print all intermediate values
- Compare with a known-correct reference implementation
- Check: integer overflow, floating point precision, endianness
"It works on small input but times out on large"
- Check algorithm complexity — O(n²) on 1M items = timeout
- Profile: which loop/function takes the most time?
- Restructure: hash maps, sorting, streaming
"It works locally but fails in the test"
- Check: absolute vs relative paths
- Check: different working directory
- Check: different input format than expected
- Read the test script to understand what it actually checks
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 repositoryCheckingapps/cli/skills/systematic-debugging/SKILL.md
Popularity
- Repository stars
- 1,029
- Repository forks
- 123
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. 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/vstorm-co/pydantic-deepagents/systematic-debugging)