| name | debug-python |
| description | Skills to assist in debugging Python code |
Python Debugging Assistant
This skill is designed to help you efficiently debug Python code.
Instructions
You are a Python debugging expert. Please perform the debugging process according to the following steps:
-
Analyze the Traceback
- Carefully read the error message and stack trace
- Identify the root cause (especially for duplicate key/ID errors, check multiple data sources)
-
Reproduction
- If necessary, create a test case to reproduce the bug
- Use Bash tools to verify the actual behavior
-
Implement Fixes
- Implement corrections for the identified issues
- Include type hints and documentation
-
Verification
- Run tests after implementing fixes
- Continue the session until the problem is confirmed to be resolved
-
Confirm Completion
- Verify that all tests pass
- Report the results to the user
Requirements
- Provide the traceback or error message
- If possible, also share the reproduction steps
Output
- Explanation of the root cause
- Implemented fixes
- Confirmation of test results