
Debug issue
Makes the agent find a bug's root cause with a reproducible test before any fix
Debug issue is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- shell, TypeScript
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 5
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Debug issue
This skill sets a strict investigation order for broken behavior: the agent first builds a command that reproduces the failure, then reads errors, checks recent changes, and instruments the layers involved. Only after it can explain the cause with evidence from that run does it move to hypotheses and a fix. Hypotheses are ranked and tested one variable at a time, and the skill warns against stacking guesses or patching the symptom where the error appears.
The workflow also covers implementation discipline. Debug probes get a unique tag so they can be found and removed from the diff before committing, a failing test is written before the fix, and the confirmed cause is recorded in the commit message. If three or more fixes fail, the skill tells the agent to question the design instead of patching again.
The package includes bundled reference guides for feedback loops, backward root-cause tracing, defense in depth, condition-based waiting for flaky tests, and a bisection script that finds test pollution. It is written to be harness-agnostic and needs no particular tools or repository state, though the process assumes the agent can run commands in the project.
When your agent uses it
Use the moment a user reports something broken or behaving unexpectedly — a bug, failing or flaky test, crash, exception, stack trace, regression, build break, or integration failure — and use it BEFORE the first command you would run to investigate, not just before the fix. That first look is where the symptom gets patched and the cause survives. It applies even when the report is thin ("this stack trace", "the deploy fails") and even when the next step seems obvious: gathering what is missing is the skill's own first step. Triggers on "fix it", "patch it", "find out why", "get to the bottom of it", « ce test est flaky, corrige-le », « ça marchait avant, maintenant ça plante ». Not for new code, features, error handling, refactoring code that works, CI/tooling setup, or reviewing code that already works.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs shell and TypeScript scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 9 files (56 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the tagout plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add phmatray/tagout
/plugin install tagout@tagout-marketplaceOr copy only this skill to ~/.claude/skills/debug-issue:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phmatray/tagout.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/debug-issue &&
cp -R "$tmp/plugins/tagout/skills/debug-issue" ~/.claude/skills/debug-issue &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/debug-issue inside it instead.
Copy the skill folder to ~/.agents/skills/debug-issue to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phmatray/tagout.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/debug-issue &&
cp -R "$tmp/plugins/tagout/skills/debug-issue" ~/.agents/skills/debug-issue &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/debug-issue inside it instead.
Copy the skill folder to ~/.cursor/skills/debug-issue to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phmatray/tagout.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/debug-issue &&
cp -R "$tmp/plugins/tagout/skills/debug-issue" ~/.cursor/skills/debug-issue &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/debug-issue inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/phmatray/tagout.git --path plugins/tagout/skills/debug-issueOr copy the folder to ~/.gemini/skills/debug-issue yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/debug-issue:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phmatray/tagout.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/debug-issue &&
cp -R "$tmp/plugins/tagout/skills/debug-issue" ~/.copilot/skills/debug-issue &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/debug-issue inside it instead.
Get the folder:
git clone --depth 1 https://github.com/phmatray/tagout.gitThen copy tagout/plugins/tagout/skills/debug-issue into your agent's skills folder as debug-issue. Agents that support SKILL.md read one folder per skill.
What it does
- Reproduction-first investigation
- Requires one fast, deterministic command that reproduces the failure before any code is changed.
- Ranked hypothesis testing
- Lists several falsifiable hypotheses with predictions and tests them in order, one variable at a time.
- Tagged debug instrumentation
- Marks temporary probes with unique tags and checks the diff so leftovers do not reach the fix.
- Failing test before fix
- Writes a test that fails on the bug and passes after the fix to confirm the repair is real.
- Flaky test handling
- Covers waiting for actual conditions instead of fixed delays and bisecting test pollution.
- Architecture escalation
- Advises stepping back to review the design after repeated failed fixes instead of patching again.
Good for
- Find out why a test passes locally but fails in CI
- Track down the cause of a regression after a recent commit
- Diagnose a crash from a stack trace without guessing a patch
- Fix a flaky test by replacing fixed delays with condition waits
- Locate which test leaves shared state that breaks another test
Debug issue FAQ
When does Debug issue trigger?
When a user reports something broken or unexpected, such as a bug, failing or flaky test, crash, stack trace, regression, build break or integration failure, including requests like find out why or fix it.
Does Debug issue apply to writing new features?
No. It is not meant for new code, features, error handling, refactoring working code, CI setup or reviewing code that already works.
What does Debug issue need to run?
It is harness-agnostic and requires no tools, MCP servers or repository state. The bundled scripts are in bash and TypeScript.
What license applies?
The skill is released under the MIT license.
How do I install Debug issue in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/debug-issue to use it in all your projects, or to .claude/skills/debug-issue in one project. Or install the tagout plugin, which includes it: /plugin marketplace add phmatray/tagout, then /plugin install tagout@tagout-marketplace.
Does Debug issue run scripts?
Yes. It runs shell and TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Debug issue?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Debug issue?
The closest alternatives to Debug issue are Debug, Debug hypothesis, Debug, Debugging and Debugging and error recovery.
Where this comes from
- Description: from the skill's own SKILL.md.
More from phmatray/tagout

Guides an agent through a gated, phased upgrade of legacy .NET applications
- Open source
- 5 GitHub stars
- Developer tools

Consolidates open migration follow-ups across repos and updates them at the source
- Open source
- 5 GitHub stars
- Developer tools

Runs a parallel fleet of agents that implement and merge GitHub issues from a backlog
- Open source
- 5 GitHub stars
- Developer tools

Files a fully seeded GitHub issue with brainstorm, spec and implementation plan
- Open source
- 5 GitHub stars
- Developer tools

Turns a finished branch or a fix left on main into a guarded, linked pull request
- Open source
- 5 GitHub stars
- Developer tools

Takes one idea or planned issue through filing, building and merging a PR
- Open source
- 5 GitHub stars
- Developer tools





