# Debug

> Debug is an open-source agent skill for developer tools. Guides an agent through root cause analysis and iterative bug fixing. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/tjmonsi/assist-marketplace-plugin/tree/main/plugins/assist-plugin/skills/debug
- **Repository:** https://github.com/tjmonsi/assist-marketplace-plugin
- **GitHub stars:** 11
- **License:** AGPL-3.0
- **Skill name:** debug
- **Collection:** https://github.com/tjmonsi/assist-marketplace-plugin
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill lets an AI coding agent diagnose and repair bugs in a codebase in a structured sequence. It is split into three subcommands: analyze investigates a bug and produces a root cause report without changing code, fix applies a change only after an approved analysis or a human-report file exists, and review checks that a previously applied fix holds up.

The skill pulls in the current branch, recent commits and working tree status at load time so the agent starts with the repository state. It sets debugging habits to follow, such as reading error messages closely, testing one hypothesis at a time, bisecting the problem space and fixing root causes rather than symptoms. It also forbids broad try/catch blocks and error suppression as fixes, and says to report bugs in dependencies instead of patching them.

The agent can read files, search with grep and glob, run shell commands and use language server features. It needs a working repository to operate on. When reproducing a bug requires user action, the skill tells the agent to ask the user for it. Output follows a bundled root cause analysis template and a report style that puts findings first.

## When your agent uses it

> Diagnoses and fixes bugs through structured root cause analysis and iterative fix cycles. Supports analyze, fix, and review subcommands.

## What it can access

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

- [Instructions only, no scripts](https://github.com/tjmonsi/assist-marketplace-plugin/tree/HEAD/plugins/assist-plugin/skills/debug)
- [Asks for: Read, Grep, Glob, Bash, LSP](https://github.com/tjmonsi/assist-marketplace-plugin/blob/HEAD/plugins/assist-plugin/skills/debug/SKILL.md)
- [License: AGPL-3.0](https://github.com/tjmonsi/assist-marketplace-plugin/tree/HEAD/plugins/assist-plugin/skills/debug)

## Features

- **Root cause analysis:** Investigates a bug and writes a report that traces the failure to its underlying cause, using a bundled RCA template.
- **Gated fix mode:** Applies code changes only after an approved RCA or a human-report file is present, otherwise asks the user to run analysis first.
- **Fix verification:** Reviews a previously applied fix to confirm it resolves the reported problem.
- **Debugging principles:** Gives the agent working habits such as one change at a time, checking assumptions and bisecting the search space.
- **Fix constraints:** Forbids broad try/catch blocks, error suppression and symptom patches, and asks for user input when reproduction needs it.
- **Repository context:** Loads the current branch, recent commits and working tree status before the investigation begins.

## Good for

- Find the root cause of a failing test in my project
- Analyze a crash reported at a specific file and line
- Fix a bug after reviewing an approved root cause report
- Check whether a recent bug fix actually resolved the issue
- Investigate intermittent errors and write up the findings

## Install

### Claude Code

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

```sh
/plugin marketplace add tjmonsi/assist-marketplace-plugin
/plugin install assist-plugin@assist-plugin-marketplace
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tjmonsi/assist-marketplace-plugin.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/debug &&
cp -R "$tmp/plugins/assist-plugin/skills/debug" ~/.claude/skills/debug &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/debug` inside it instead.

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tjmonsi/assist-marketplace-plugin.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/debug &&
cp -R "$tmp/plugins/assist-plugin/skills/debug" ~/.agents/skills/debug &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/debug` inside it instead.

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tjmonsi/assist-marketplace-plugin.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/debug &&
cp -R "$tmp/plugins/assist-plugin/skills/debug" ~/.cursor/skills/debug &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/debug` 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/tjmonsi/assist-marketplace-plugin.git --path plugins/assist-plugin/skills/debug
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tjmonsi/assist-marketplace-plugin.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/debug &&
cp -R "$tmp/plugins/assist-plugin/skills/debug" ~/.copilot/skills/debug &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/debug` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/tjmonsi/assist-marketplace-plugin.git
```

Then copy `assist-marketplace-plugin/plugins/assist-plugin/skills/debug` into your agent's skills folder as `debug`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does the skill change code when I run analyze?

No. The constraints say analyze produces a report only, with no code changes.

### What does fix need before Debug runs?

Either an approved RCA from the analyze step with user confirmation, or a human-report file such as human-report.md or .human-report. Without either, the skill halts and asks for one.

### Which tools does the skill allow?

Read, Grep, Glob, Bash and LSP.

### Does Debug run any scripts?

No scripts are bundled with the skill.

### How do I install Debug in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/debug to use it in all your projects, or to .claude/skills/debug in one project. Or install the assist-plugin plugin, which includes it: /plugin marketplace add tjmonsi/assist-marketplace-plugin, then /plugin install assist-plugin@assist-plugin-marketplace.

### Does Debug run scripts?

No. It is instructions only, with no 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?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Debug?

The closest alternatives to Debug are Systematic Debugging, Debug, Principle fix root causes, Debug issue and Debug hypothesis.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [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-tansuasici): Debug is an open-source agent skill for developer tools.
- [Principle fix root causes](https://ai-powered.com/skills/principle-fix-root-causes): Principle fix root causes is an open-source agent skill for developer tools.
- [Debug issue](https://ai-powered.com/skills/debug-issue): Debug issue 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.
- [Debugging](https://ai-powered.com/skills/debugging): Debugging is an open-source agent skill for developer tools.
- [Bug fix](https://ai-powered.com/skills/bug-fix): Bug fix 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.

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