From skills
Debugs errors, test failures, and unexpected behavior with systematic root-cause analysis. Applies to frontend, backend, database, network, and performance issues.
How this skill is triggered — by the user, by Claude, or both
Slash command
/skills:debugThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Trace the failure before changing code. Systematic root-cause analysis:
Trace the failure before changing code. Systematic root-cause analysis: reproduce, isolate, hypothesize, fix, verify.
git bisect, comment blocks, feature flags,
or a minimal repro. Done only when the failure is narrowed to a component,
commit, input, or condition.git log --oneline -10 / git diff HEAD~1Reproduction:
# Find the commit that introduced it
git bisect start
git bisect bad HEAD
git bisect good <last-known-good-sha>
Strategic logging:
// Entry/exit with parameters — temporary, remove after fix
console.log('[debug] functionName called', { param1, param2 });
// ...
console.log('[debug] functionName result', { result });
## Root Cause
[What actually caused the issue]
## Evidence
- [Log excerpt / stack trace / variable state]
## Fix
`file:line`
```diff
- broken code
+ fixed code
```
**Why this fixes it:** [reasoning]
## Verification
- [Command/repro rerun and result]
## Prevention
- [Recommendation to avoid recurrence]
npx claudepluginhub kriscard/skillsGuides systematic root cause analysis for bugs, test failures, unexpected behavior, and technical issues before implementing fixes.
Systematic debugging methodology for any technical issue: bugs, test failures, unexpected behavior, build failures. Emphasizes root cause investigation before proposing fixes.
Enforces systematic root cause investigation for bugs, test failures, and unexpected behavior through four phases: investigation, pattern analysis, hypothesis testing, and implementation.