⚡AgentSkills
🧰 Engineering Essentials · Debugging Craft

Hunt bugs systematically (Python)

Reproduce, bisect, hypothesize, verify — the method that beats random poking under deadline pressure.

foundation~30 minAll Software Engineers

Steps

  1. 1Reproduce deterministically first; flaky repro = flaky fix
  2. 2Write failing test capturing the bug before touching source
  3. 3Bisect history or code path until minimal failing case remains
  4. 4Form ONE hypothesis, predict its observable, then check
  5. 5Fix root cause, not nearest symptom; add regression test
  6. 6Document the hunt briefly for future searchers
  7. 7Profile with py-spy and cProfile; watch the GIL on CPU-bound paths
  8. 8Pin environments via lockfiles; verify wheels exist for your platforms

Common Pitfalls

  • ▲Shotgun changes stacking unknown unknowns
  • ▲Fixing symptoms while root cause ships elsewhere

Commands

Install with skills CLI
$ npx skills add aniruddhaadak80/skills --skill debug-craft-systematic-bug-hunt-python
Install globally
$ npx skills add aniruddhaadak80/skills --skill debug-craft-systematic-bug-hunt-python -g

Tags

#debugging#methodology#engineering-essentials#debug-craft

Related skills

Reproduce, bisect, hypothesize, verify — the method that beats random poking under deadline pressure.

🧰 Engineering Essentials·~30m

Reproduce, bisect, hypothesize, verify — the method that beats random poking under deadline pressure.

🧰 Engineering Essentials·~30m

Reproduce, bisect, hypothesize, verify — the method that beats random poking under deadline pressure.

🧰 Engineering Essentials·~30m