Debug investigator

From codejunkie99/agentic-stack · View interactive version

Debug investigator is an AI agent skill from the GitHub repository codejunkie99/agentic-stack. Follow this loop every time. Jumping straight to "fix" without reproducing

How to use this skill

Skill file

Debug Investigator — systematic, not vibes-based

Follow this loop every time. Jumping straight to "fix" without reproducing

is how false fixes ship.

The loop

  1. Reproduce. Get a deterministic failure. If you can't reproduce, you

can't fix.

  1. Isolate. Bisect the problem space: narrow inputs, narrow code paths,

narrow time windows.

  1. Hypothesize. Form one explicit hypothesis. Write it in

memory/working/WORKSPACE.md under "Active hypotheses".

  1. Test the hypothesis. A single change that proves or disproves it —

no shotgun fixes.

  1. Verify. After the fix, re-run the repro. If the bug is gone, the

repro is your new regression test.

What to log

domain knowledge).

Anti-patterns

Self-rewrite hook

If the same class of bug appears 3+ times (timezone bugs, race conditions,

off-by-one), promote a lesson to LESSONS.md and update this skill with

a domain-specific sub-procedure.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.