
Debug
Guides the agent through root-cause debugging with reproduction, hypotheses
Debug is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 6
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Debug
This skill walks an agent through a structured debugging session for bugs, failing tests, crashes and unexpected behavior. It requires a reliable reproduction before any investigation, then asks the agent to form a small set of ranked hypotheses and test them one at a time, recording evidence for each. A root cause must be written down and must explain every observed symptom before any change is made.
The fix phase is deliberately constrained: one focused change per commit, a check for the same pattern elsewhere, and a full test run. The skill also includes a stop rule for cases where two fixes have already failed against the same reproduction, requiring the agent to test the shared assumption before attempting a third fix. A regression test that fails without the fix and passes with it is part of the expected output, and the skill ends with a standard debug report template.
The skill references a language-specific error-patterns file that is loaded only when an error message matches one of its categories. It mentions a loop-detection hook in the wider kit, which is a separate component. Nothing in the content indicates that it requires particular languages or external services beyond git for checking recent changes.
When your agent uses it
Systematic root-cause debugging with evidence-before-fix enforcement and regression-test generation. Use when chasing a bug, failing test, error, crash, or unexpected behavior — before attempting a fix.
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 2 files (11 KB) on GitHub on 3 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 claude-code-kit plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add tansuasici/claude-code-kit
/plugin install claude-code-kit@claude-code-kitOr copy only this skill to ~/.claude/skills/debug:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/debug &&
cp -R "$tmp/.claude/skills/debug" ~/.claude/skills/debug &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/debug inside it instead.
Copy the skill folder to ~/.agents/skills/debug to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/debug &&
cp -R "$tmp/.claude/skills/debug" ~/.agents/skills/debug &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/debug inside it instead.
Copy the skill folder to ~/.cursor/skills/debug to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/debug &&
cp -R "$tmp/.claude/skills/debug" ~/.cursor/skills/debug &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/debug inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/tansuasici/claude-code-kit.git --path .claude/skills/debugOr copy the folder to ~/.gemini/skills/debug yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/debug:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/debug &&
cp -R "$tmp/.claude/skills/debug" ~/.copilot/skills/debug &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/debug inside it instead.
Get the folder:
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.gitThen copy claude-code-kit/.claude/skills/debug into your agent's skills folder as debug. Agents that support SKILL.md read one folder per skill.
What it does
- Reproduce before fixing
- Establishes a reliable reproduction of the symptom, the trigger and whether the failure is intermittent.
- Ranked hypothesis testing
- Forms two or three hypotheses and checks them one at a time, gathering evidence for each.
- Root cause documentation
- Requires a written root cause covering what, where, why, when and the evidence behind it.
- Failed-fix stop rule
- After two failed fixes for the same bug, the agent must test the shared premise before trying again.
- Regression test generation
- Guides writing a test that fails without the fix, passes with it and covers an edge case.
- Debug report template
- Provides a markdown report format covering symptom, investigation, root cause, fix and related issues.
Good for
- Track down why a test started failing after recent changes
- Find the root cause of a crash before patching it
- Investigate an intermittent bug and add instrumentation to gather data
- Write a regression test for a bug that was just fixed
- Produce a structured debug report for a reported issue
Debug FAQ
When does Debug trigger?
It is meant for chasing a bug, failing test, error, crash or unexpected behavior, before attempting a fix. It can also be invoked directly with /debug.
What does Debug change in the code?
The skill instructs the agent to investigate without changing code, then make one focused fix per commit and add a regression test. It does not include scripts of its own.
Does Debug include scripts or extra files?
The folder contains the SKILL.md plus a reference file of error patterns that is loaded only when an error message matches a listed category.
What happens if the bug cannot be reproduced?
The skill says not to guess at fixes and instead to add logging or instrumentation to gather more data.
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 claude-code-kit plugin, which includes it: /plugin marketplace add tansuasici/claude-code-kit, then /plugin install claude-code-kit@claude-code-kit.
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 Debug hypothesis, Diagnostic reasoning, Debug, Principle fix root causes and Bug fix.
Where this comes from
- Description: from the skill's own SKILL.md.
More from tansuasici/claude-code-kit

Audits UI code against WCAG 2.1 AA for semantics, keyboard use, contrast and ARIA
- Open source
- 6 GitHub stars
- Developer tools

Audits a codebase's structure for SOLID violations, coupling and module boundary issues
- Open source
- 6 GitHub stars
- Developer tools

Lists the skills, agents, hooks and modules installed in a kit-enabled project
- Open source
- 6 GitHub stars
- Developer tools

Audits code for smells, error-handling gaps and maintainability issues with fixes
- Open source
- 6 GitHub stars
- Developer tools

Guides the agent to write and extend a project's golden-principles.yaml rule file
- Open source
- 6 GitHub stars
- Developer tools

Finds unused functions, dead imports, orphan files and unreachable branches in a codebase
- Open source
- 6 GitHub stars
- Developer tools





