debug
Installation
SKILL.md
Debug Skill
Purpose
Systematically find the root cause of bugs using a disciplined hypothesis-test-narrow loop. This skill treats debugging as a scientific investigation, not a guessing game.
The core principle: never change code to debug. Observe, hypothesize, test, narrow. Only hand off to fix once the root cause is identified with evidence.
Workflow
Phase 1: Symptom Analysis
- Capture the symptom precisely
- What is the observed behavior? (exact error, incorrect output, crash, hang, etc.)
- What is the expected behavior?
- Is it reproducible? (always, sometimes, only under certain conditions)
- When did it start? (after a specific change, deployment, data change)