What problem does it solve? Debugging hard or flaky bugs often devolves into guessing, symptom-patching, and thrashing. This Skill enforces a systematic six-phase discipline that finds the actual root cause and locks it down with a regression test. ## Core Features & Use Cases - Red-Capable Feedback Loops: Build a tight, deterministic, agent-runnable command that reproduces the exact user symptom before any hypothesis work begins. - Structured Hypothesis Testing: Generate 3-5 ranked, falsifiable hypotheses, then instrument with tagged debug logs or a debugger, changing one variable at a time. - Root-Cause Fixes with Regression Tests: Fix at the source (never the symptom), convert the minimized repro into a failing test at the correct seam, and clean up all instrumentation afterward. - Use Case: A CI test fails intermittently. Use this Skill to raise the reproduction rate, bisect to the offending change, confirm the root cause with evidence, and ship a fix plus a regression test. ## Quick Start Use the diagnosing-bugs skill to find the root cause of this failing test and fix it with a regression test.