debug
Find and fix the root cause of a bug, not the symptom.
SKILL.mdskills/debug/SKILL.md
GitHubWhen to use
Something errors, fails a test, or produces wrong output.
How
- Read the error/traceback and the relevant code before touching anything.
- State a hypothesis about the root cause (not just where it surfaced).
- Make the smallest
edit_filethat fixes the cause. - If a test reproduces the bug, mention running it to confirm the fix.
Avoid
- Patching the symptom (swallowing the error) instead of the cause.
- Refactoring unrelated code while fixing.
- Guessing without reading the traceback.
Done well
You can state: what was wrong, why, and the one change that fixes it — confirmed by a test or a clear, specific reason.