python-debugging
Installation
SKILL.md
Python Debugging Skill
Toolkit for AI agents to debug Python code autonomously without IDE dependencies. Enables agents to programmatically insert breakpoints, analyze execution state, test hypotheses, and automate debugging workflows.
Agent Debugging Workflow
When debugging code, agents should:
- Analyze code structure - Use AST to identify key locations
- Insert breakpoints programmatically - Add breakpoints to inspect state
- Execute and inspect - Run code, check variables at breakpoints
- Test hypotheses - Evaluate expressions, modify variables
- Clean up - Remove breakpoints after debugging
Quick Debugging Workflow
# 1. Agent analyzes code and suggests breakpoints
python scripts/smart_breakpoint_suggester.py script.py --only functions --max 3