From Debugging Expert
Expert systematic debugging and root-cause analysis. Trigger keywords: debug, bug, error, exception, crash, stack trace, reproduce, root cause, works on my machine, intermittent, heisenbug, regression, git bisect, race condition. Use to diagnose failures methodically, find the real cause, and stop guess-and-check fixing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/debugging-expert:debugging-expertThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> Reproduce, then bisect. The bug is rarely where you think — follow evidence, change one variable at a time, and fix the cause (with a regression test), not the symptom.
Reproduce, then bisect. The bug is rarely where you think — follow evidence, change one variable at a time, and fix the cause (with a regression test), not the symptom.
testing-expert.performance-expert.refactoring-expert.git log/git diff since it last worked, recent deploys, dependency bumps, config/env differences. Inspect logs around the failure timestamp.git bisect). Add assertions/logging at the boundary between "still correct" and "already wrong" to bracket the defect.| Symptom | Tactic |
|---|---|
| Regression "used to work" | git bisect to the first bad commit |
| Intermittent/race | add logging/IDs, stress ordering, run with race detector |
| Wrong value somewhere | binary-search with assertions to bracket where state corrupts |
| "Works on my machine" | diff env/versions/config; reproduce in a clean container |
| Crash/exception | read full trace; reproduce the exact input |
print shotgun everywhere → use targeted, bracketing logging or a debugger/breakpoints.Bisect a regression
git bisect start
git bisect bad # current is broken
git bisect good v1.4.0 # known-good tag
# test each checkout, then mark good/bad; ~log2(N) steps -> first bad commit
git bisect reset
Bracket where state goes wrong
assert invariant(state), f"invariant broke after step {i}: {state!r}"
# move the assert earlier/later to corner the corrupting step
testing-expert — lock the fix in with a failing-first regression test.performance-expert — same evidence-driven method, for "slow".github-master — git bisect, reflog, and history forensics.Provides a checklist for code reviews covering functionality, security, performance, maintainability, tests, and quality. Use for pull requests, audits, team standards, and developer training.
npx claudepluginhub miaoge-ge/coding-agent-skills --plugin debugging-expert