Systematic debugging when something is broken, throws an error, or works locally but fails in CI or production: reproduce, hypothesise, run discriminating experiments, fix the root cause, add a regression test.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Debugging Method?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-debugging-method)
---
name: debugging-method
description: "Systematic debugging when something is broken, throws an error, or works locally but fails in CI or production: reproduce, hypothesise, run discriminating experiments, fix the root cause, add a regression test."
tags: [core, quality]
---
# Debugging Method
## When to use
- A bug with an unclear cause
- Works locally but fails in CI/prod
## Procedure
1. Reproduce with exact steps
2. Read the full stack trace and logs
3. List hypotheses ranked by likelihood
4. Run the cheapest experiment that splits them (git bisect, logging, minimal repro)
5. Fix root cause
6. Add regression test
## Checklist
- [ ] Root cause explained
- [ ] Regression test fails without fix
## Anti-patterns
- Shotgun changes
- Catching and ignoring the error