← ClaudeAtlas

debuglisted

Systematically debug a failing test, a production symptom, or a build error — find the ROOT cause (not the symptom), fix it minimally, and verify. TRIGGER when the user says 'the <X> test is failing, find out why and fix it', 'users are seeing 500 errors on /checkout, investigate and tell me what's going on', 'here is a build error, fix the root cause and verify the build succeeds', 'why is this broken', 'debug this'. Hebrew: 'הטסט נכשל, תמצא למה ותתקן', 'יש שגיאות 500 ב..., תחקור', 'תתקן את שגיאת הבנייה מהשורש', 'תדבג', 'למה זה נשבר'. Follows a strict reproduce → prove RED → root-cause → surgical fix → GREEN methodology. NOT for adding new tests to passing code (that's a job for a test-writing skill like test-loop, if you have one), NOT for live production incident triage across logs/deploys/config (that's incident-response's job, if you have it).
hiyabh/claude-skills · ★ 0 · Code & Development · score 66
Install: claude install-skill hiyabh/claude-skills
# Debug — Root-Cause Fix with Proof ## Purpose Turn a symptom into a proven root cause and a verified fix. Covers three entry points: a **failing test**, a **production error report**, and a **build error**. This skill follows a strict bug-handling methodology — do not skip its phases; in particular **never fix without a failing-state proof, and never declare fixed without a green proof**. **Fundamental rule:** don't trust the report — reproduce and prove it first. **Language:** explanations in Hebrew; code in English. --- ## Mode 1 — Failing test → red → green + explanation Trigger: "the UserAuth test is failing, find out why and fix it". 1. **Reproduce** — run that test, read the full failure output (message, stack, assertion diff). Confirm it fails now (this is your RED evidence). 2. **Root cause** — trace backwards from the failing assertion to the origin. Read the code under test *and* the test itself. Apply the 5 Whys. Check `git log`/blame: did a recent change break it? Is the test asserting the right thing? 3. **Decide** who's wrong — the code or the test — with a reason, not a guess. 4. **Surgical fix** — smallest change at the root cause; no scope-widening refactors. 5. **Verify GREEN** — re-run the test (must pass), then the **full suite** for regressions, then build/lint. A regression is a new bug — block on it. 6. **Explain** in Hebrew: root cause in one sentence, the fix, RED→GREEN evidence, files touched, and whether the same pattern exists