Agent Skill
2/7/2026debugger
Systematic debugging skill for investigating and resolving issues in existing code.
S
spenceriam
0GitHub Stars
1Views
npx skills add spenceriam/trip-sh
SKILL.md
| Name | debugger |
| Description | Systematic debugging skill for investigating and resolving issues in existing code. |
name: debugger description: Systematic debugging skill for investigating and resolving issues in existing code.
Debugger Skill
This skill provides a systematic approach to debugging issues in new or existing codebases.
What it is
A structured methodology for finding and fixing bugs rather than applying random trial-and-error changes.
What it does
- Guides reproduction of issues.
- Implements systematic root cause analysis.
- Encourages minimal, well-understood fixes.
- Ensures fixes are verified and do not introduce regressions.
- Captures findings so they can inform future work.
Why it is important
Undisciplined debugging is inefficient and risks masking symptoms without addressing root causes. A systematic approach improves understanding of the codebase and leads to durable fixes that are easier to maintain.
Process
-
Reproduce
- Confirm that the bug exists and can be reproduced reliably.
- Capture exact steps, inputs, and environment details.
-
Isolate
- Narrow down the code paths where the bug manifests.
- Use logging, breakpoints, or targeted tests to localize the problem.
-
Hypothesize
- Form one or more theories about the root cause.
- Prefer small, testable hypotheses over broad assumptions.
-
Test
- Design experiments or tests to confirm or refute each hypothesis.
- Update your understanding based on results.
-
Fix
- Implement the minimal change that addresses the confirmed root cause.
- Avoid opportunistic refactors unless they are essential to the fix and approved.
-
Verify
- Re-run reproduction steps to ensure the bug is resolved.
- Run existing tests and add new ones if coverage is lacking.
- Check for likely regressions in adjacent behavior.
-
Document
- Record what caused the bug and why the fix works.
- Note any follow-up work or areas that may need deeper refactor.
This skill should be combined with the bugfix workflow and code-review skill for a complete debugging lifecycle.
Skills Info
Original Name:debuggerAuthor:spenceriam
Download