debug

Diagnose bugs from symptoms to root cause and apply verified fixes.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Simon-YHKim/eject-button --skill debug-simon-yhkim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug
Source: https://github.com/Simon-YHKim/eject-button/tree/main/.claude/skills/debug
Command: npx skills add https://github.com/Simon-YHKim/eject-button --skill debug-simon-yhkim

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When code throws errors, tests fail, or behavior is unexpected, quick patches often mask the real defect and let the bug return. This Skill enforces a disciplined debugging workflow that reproduces the issue, isolates the failure, finds the root cause, and verifies the fix. ## Core Features & Use Cases - Reproduction-first workflow: Captures the exact error message, stack trace, and minimal trigger before changing any code. - Root-cause analysis: Uses hypothesis testing, targeted logging, code bisection, and git bisect to locate the actual defect rather than the symptom. - Fix verification and regression prevention: Confirms the original reproduction passes, related tests still pass, and adds a regression test where feasible. - Use Case: A user reports "tests failing after the last commit" — the Skill reproduces the failure, uses git bisect to find the offending change, fixes the underlying cause, and adds a regression test. ## Quick Start Ask the assistant to debug the failing test or error you are seeing and find the root cause instead of patching the symptom.

Frequently Asked Questions about debug

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a failing test effectively?

Start by reproducing the failure with the exact command and reading the full error output and stack trace. Then form a hypothesis about the failing component, isolate it with targeted logging or bisection, fix the root cause, and confirm the test passes.

How to find which commit introduced a bug?

Use git bisect to binary-search through commit history between a known-good and known-bad state. For uncommitted code, comment out half the changes and narrow down until the offending line is found.

Why is patching symptoms instead of root causes bad?

Symptom patches like swallowing exceptions or adding null checks without understanding the cause hide the real defect and let the same class of bug resurface elsewhere. Fixing the root cause prevents the entire category of failure.

What debugging anti-patterns should I avoid?

Avoid catching and ignoring exceptions, adding null guards without understanding why the value is null, retrying flaky tests instead of fixing them, and disabling tests or linters to bypass failures.

When should I add a regression test after fixing a bug?

Add a regression test whenever feasible after fixing a bug, especially for defects that reached production or escaped existing test coverage. The test should reproduce the original failure condition so the bug cannot silently return.