Debug Mantra
Enforces a disciplined four-step debugging methodology to reliably reproduce, trace, falsify, and resolve complex software defects.
Debug Mantra instills a rigorous, evidence-first troubleshooting discipline into Claude Code to eliminate premature fixes and shotgun debugging. Before proposing code changes, Claude recites and follows four structured steps: establishing a deterministic reproduction, methodically tracing the fail path (via debuggers, knob enumeration, or isolated instrumentation), actively attempting to falsify candidate hypotheses before testing them, and maintaining a ledger of breadcrumbs across all experimental runs. This skill is indispensable when tackling evasive edge cases, flaky test failures, obscure stack traces, or attribution questions where identifying ground-truth state is essential.