fix-bug
Installation
SKILL.md
Guide for diagnosing and fixing bugs. This skill defines a test-first debugging workflow: reproduce the bug with a failing test, diagnose the root cause, then fix it.
Mode Check
This skill must be used outside plan mode. Before doing anything else, check the current mode:
ExitPlanModeis NOT in the deferred tools list (i.e., directly callable) → in plan mode → stop immediately and tell the user:"This skill (
/fix-bug) must be used outside plan mode. Please exit plan mode first."ExitPlanModeis in the deferred tools list → not in plan mode → proceed.
Workflow
Phase 1: Clarify the Bug Report
Do not read code files during this phase. You may only read specs and design docs.
Extract the following from the user's prompt: