What problem does it solve? When tests fail, builds break, or bugs appear, developers often fall into guess-and-check loops that waste time and introduce new bugs. This Skill enforces systematic root-cause investigation before any fix is attempted, requiring a written debug log artifact as a commitment device. ## Core Features & Use Cases - Four-Phase Debugging Protocol: Root cause investigation, pattern analysis against working code, hypothesis formation with a mandatory debug log, and minimal-change hypothesis testing. - Hard Enforcement via Plan Mode: Blocks all edits until the user approves the investigation plan, converting the no-fix-without-root-cause rule into a system-level gate. - Escalation and Learning Capture: After three failed hypotheses it escalates to architectural review, and optionally captures confirmed root causes as ADRs or knowledge entries. - Use Case: A test fails twice during TDD and a quick fix does not help. The Skill stops the thrashing, walks the data flow to the source, compares against a working example, logs the hypothesis in docs/06-debug-logs/, and only then applies the minimal fix. ## Quick Start Ask the AI to debug the failing test using systematic root-cause investigation and require a written debug log before any fix is applied.