systematic-debugginglisted
Install: claude install-skill grimaldost/craft-collection
# Systematic Debugging
Random fixes waste time and breed new bugs; symptom patches mask the cause
until it resurfaces somewhere worse. The protocol: prove the cause, then fix
it once.
This is a **rigid** skill. The bright line: **no fix is proposed before the
root cause is identified with evidence.** It holds hardest under time
pressure — guess-and-check thrashes for hours where the four phases take
minutes — and it applies to simple-looking bugs too, which have root causes
like any other.
## Phase 1 — investigate
1. **Read the error completely.** The full stack trace, line numbers, error
codes. The exact answer is often already in it.
2. **Reproduce reliably — observe before you theorize.** Exact steps, every
time; not reproducible yet means gather more data, not guess. For a behavior
or regression question, run the failing path and read its real output (logs,
stack, emitted query) *before* forming hypotheses from source — dynamic
observation precedes static theory. (Exception: when running the path is
destructive, irreversible, or not yet buildable, read and instrument first —
don't trigger a payment or drop a table to "observe" it.) And **confirm the
code that ran is the code you read** — resolve the imported module's
`__file__` and installed version; an editable checkout and an installed
release of the same library diverge silently. (A data-engineering skill,
when one is installed, states this canonically as an axiom — e.g.
`data-en