bug
Installation
SKILL.md
Bug Investigation and Fix
Structured bug workflow: capture → reproduce → root cause → failing test → fix → verify.
Iron Laws
- Reproduce before investigating. You cannot fix a bug you cannot trigger reliably.
- Find root cause before writing any fix. Symptom fixes are failure. Three failed fix attempts means you haven't found the real cause yet.
- Write a failing test before the fix. The test proves your diagnosis is correct and prevents regression.
- One hypothesis at a time. Test the most likely cause with the smallest possible change. Never change multiple things simultaneously.
- Verify with the original repro — not just the unit test. The user-visible symptom must be confirmed resolved.
Phase 1 — Capture
Collect everything needed to understand and reproduce the issue: