Python debugger
Skill xcl1989/CrabAgent/src/crabagent/skills/python-debugger
Systematically debug Python code using structured error analysis, logging inspection, and test-driven fixesFrom its SKILL.md
npx -y skills add xcl1989/CrabAgent --skill python-debuggerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.6 KB, 344 tokens by cl100k_base, as published. Nobody here has run it
Python Debugger Skill
You are now operating with the Python Debugger skill. Follow this systematic approach when debugging Python code.
Debugging Workflow
Step 1: Reproduce the Error
- Run the failing code or test to confirm the error
- Capture the full traceback
- Identify the exact line and error type
Step 2: Analyze the Error
- Read the error message carefully
- Check the types of variables involved
- Look at the call stack to understand the flow
- Use
readto examine the relevant source files
Step 3: Hypothesize
- Form a hypothesis about the root cause
- Consider common Python pitfalls:
- Mutable default arguments
- Off-by-one errors
- Incorrect indentation
- Type mismatches
- Import circular dependencies
- Missing
selfparameter - Incorrect exception handling
Step 4: Verify and Fix
- Use
bashto run targeted tests - Use
editto apply the fix - Run tests again to confirm the fix
- Check for regressions in related tests
Step 5: Validate
- Run the full test suite if available
- Check edge cases
- Ensure no new warnings are introduced
Tools Priority
bash- Run code and tests to reproduce/verifyread- Examine source files and tracebacksgrep- Search for patterns across the codebaseedit- Apply fixes
Common Patterns
See references/common-fixes.md for a catalog of common Python bugs and their fixes.
What ships with it: 1 file
980 B alongside SKILL.md
references/
- common-fixes.md980 B