Skip to content
Skill

Debug

Guides an agent through root cause analysis and iterative bug fixing

Debug is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
11
Last commit
License
AGPL-3.0
Listing updated

Similar skills

About Debug

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 6 files (10 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 assist-plugin plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

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

More from tjmonsi/assist-marketplace-plugin

  1. Generates black-box acceptance-criteria tests from specs without reading implementation

    • Open source
    • 11 GitHub stars
    • Developer tools
  2. Guides an agent through integration and Playwright E2E testing across several languages

    • Open source
    • 11 GitHub stars
    • Developer tools
  3. Runs existing test suites, captures coverage and writes a consolidated test report

    • Open source
    • 11 GitHub stars
    • Developer tools
  4. Answers repo questions with cited sources, optionally adding web research

    • Open source
    • 11 GitHub stars
    • Developer tools
  5. Create, switch, list and clean up git branches with standard naming and stash support

    • Open source
    • 11 GitHub stars
    • Developer tools
  6. Bumps project versions, writes changelog entries, and optionally commits and tags

    • Open source
    • 11 GitHub stars
    • Developer tools