Skip to content
FunCoding

debug-systematically

Use this skill when diagnosing a bug, unexpected behavior, test failure, or any situation where code does not behave as expected. Follow a structured debugging process instead of randomly changing code.

Star
3,473
License
MIT
Last commit
Jun 7, 2026

memory_data/skills/debug-systematically/SKILL.md

View on GitHub

Debug Systematically

Process:

  1. Reproduce the bug with the smallest possible input.
  2. Isolate — narrow down which component/function causes it.
  3. Hypothesize — form a specific, falsifiable hypothesis.
  4. Test — verify or disprove the hypothesis with a minimal experiment.
  5. Fix — address the root cause, not just the symptom.
  6. Verify — re-run the failing test and related tests.

Useful tools: print/logging, pdb/ipdb, unit tests, git bisect.

Anti-patterns:

  • Changing multiple things at once and not knowing what fixed it.
  • Ignoring related test failures.
  • Commenting out code instead of understanding it.

Similar Skills

rea-analysis-optimization

MOmorluto/rea485k7,690 new stars in the last 7 days

codebase-design

MAmattpocock/skills336k4,217 new stars in the last 7 days

Featured

diagnosing-bugs

Diagnose hard bugs and performance regressions by building a feedback loop with tests or scripts.

MAmattpocock/skills336k4,217 new stars in the last 7 days

setup-ts-deep-modules

MAmattpocock/skills336k4,217 new stars in the last 7 days

code-review

MAmattpocock/skills336k4,217 new stars in the last 7 days

implement

MAmattpocock/skills336k4,217 new stars in the last 7 days