# Debug issue

> Debug issue is an open-source agent skill for developer tools. Makes the agent find a bug's root cause with a reproducible test before any fix. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/phmatray/tagout/tree/main/plugins/tagout/skills/debug-issue
- **Repository:** https://github.com/phmatray/tagout
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** debug-issue
- **Collection:** https://github.com/phmatray/tagout
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell and TypeScript scripts](https://github.com/phmatray/tagout/tree/HEAD/plugins/tagout/skills/debug-issue)
- [No network calls found in its scripts](https://github.com/phmatray/tagout/tree/HEAD/plugins/tagout/skills/debug-issue)
- [License: MIT](https://github.com/phmatray/tagout/tree/HEAD/plugins/tagout/skills/debug-issue)

## Features

- **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

## Install

### Claude Code

This skill ships in the `tagout` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add phmatray/tagout
/plugin install tagout@tagout-marketplace
```

Or copy only this skill to `~/.claude/skills/debug-issue`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/debug-issue` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/debug-issue` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/phmatray/tagout.git --path plugins/tagout/skills/debug-issue
```

Or copy the folder to `~/.gemini/skills/debug-issue` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/debug-issue`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/phmatray/tagout.git
```

Then 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.

## 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.

## Alternatives

- [Debug](https://ai-powered.com/skills/debug-tansuasici): Debug is an open-source agent skill for developer tools.
- [Debug hypothesis](https://ai-powered.com/skills/debug-hypothesis): Debug hypothesis is an open-source agent skill for developer tools.
- [Debug](https://ai-powered.com/skills/debug-evist0): Debug is an open-source agent skill for developer tools.
- [Debugging](https://ai-powered.com/skills/debugging): Debugging is an open-source agent skill for developer tools.
- [Debugging and error recovery](https://ai-powered.com/skills/debugging-and-error-recovery): Debugging and error recovery is an open-source agent skill for developer tools.
- [Diagnosing bugs](https://ai-powered.com/skills/diagnosing-bugs): Diagnosing bugs is an open-source agent skill for developer tools.
- [Systematic Debugging](https://ai-powered.com/skills/systematic-debugging-joaoariedi): Systematic Debugging is an open-source agent skill for developer tools.
- [Debug](https://ai-powered.com/skills/debug-tjmonsi): Debug is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/debug-issue
