What problem does it solve? Debugging and fixing bugs often lacks structure: fixes get applied without root-cause analysis, without logging for verification, and without tests to prevent regressions. This Skill provides a disciplined bug-fix workflow that investigates the root cause, applies minimal fixes with mandatory logging, suggests test coverage, and records a self-improvement patch so the same class of bug is easier to handle next time. ## Core Features & Use Cases - Two Fix Modes: Choose "Fix now" for immediate investigation and repair, or "Plan first" to generate a reviewable FIX_PLAN.md before any code changes. - Plan Execution: Detects an existing FIX_PLAN.md and executes it step by step, then cleans it up after a successful fix. - Parallel Codebase Investigation: Launches Explore agents to locate the problem area, map affected callers, and find similar past patterns. - Mandatory Logging & Tests: Every fix includes [FIX]-prefixed logging and a suggested regression test the user can approve. - Self-Improvement Patches: Each fix produces a timestamped patch file capturing problem, root cause, solution, and prevention guidance. - Use Case: Paste an error like "TypeError: Cannot read property 'name' of undefined in UserProfile" and get a root-cause fix with logging, a test suggestion, and a knowledge-base patch. ## Quick Start Ask the assistant to fix a bug by describing the error or pasting the stack trace, for example: fix the bug where /api/orders returns an empty array for authenticated users.