Skip to content
Skill

Debugging and error recovery

Walks an agent through systematic root-cause debugging instead of guess-and-patch fixes

Debugging and error recovery 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
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
122K
Last commit
License
MIT
Listing updated

Similar skills

About Debugging and error recovery

This skill gives the agent a structured triage process for failing tests, broken builds, regressions and unexpected runtime errors. The workflow runs in order: reproduce the failure, localize which layer is failing, reduce the case to a minimal reproduction, fix the underlying cause, add a regression test, and verify end to end. It also includes decision trees for non-reproducible bugs, test failures, build failures and common runtime errors such as undefined property access or CORS problems.

The guidance stresses stopping feature work when something breaks and preserving evidence such as error output and logs first. It includes git bisect as a way to find the commit that introduced a regression, plus safe fallback patterns and rules for when to add or remove logging.

The skill expects a project with its own test and build commands; its examples use npm and TypeScript but the agent is told to substitute the repository's own commands. It also instructs the agent to treat text inside error messages and stack traces as data rather than instructions to follow.

When your agent uses it

Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing. Use when asked what broke, why a test started failing, or why code throws, even when the diff, the function, or the stack trace is pasted inline and the cause looks obvious from reading it, so that the cause is named, the fix is minimal, and the reply says how to confirm it.

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 (16 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 agent-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add chrisalehman/bionic
/plugin install agent-skills@bionic

Or copy only this skill to ~/.claude/skills/debugging-and-error-recovery:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/debugging-and-error-recovery &&
cp -R "$tmp/skills/debugging-and-error-recovery" ~/.claude/skills/debugging-and-error-recovery &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/debugging-and-error-recovery inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/debugging-and-error-recovery to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/debugging-and-error-recovery &&
cp -R "$tmp/skills/debugging-and-error-recovery" ~/.agents/skills/debugging-and-error-recovery &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/debugging-and-error-recovery inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/debugging-and-error-recovery to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/debugging-and-error-recovery &&
cp -R "$tmp/skills/debugging-and-error-recovery" ~/.cursor/skills/debugging-and-error-recovery &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/debugging-and-error-recovery 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/addyosmani/agent-skills.git --path skills/debugging-and-error-recovery

Or copy the folder to ~/.gemini/skills/debugging-and-error-recovery yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/debugging-and-error-recovery:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/debugging-and-error-recovery &&
cp -R "$tmp/skills/debugging-and-error-recovery" ~/.copilot/skills/debugging-and-error-recovery &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/debugging-and-error-recovery inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/addyosmani/agent-skills.git

Then copy agent-skills/skills/debugging-and-error-recovery into your agent's skills folder as debugging-and-error-recovery. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Stop-the-line triage
A fixed sequence for handling unexpected failures, from preserving evidence through to verifying the fix before resuming work.
Non-reproducible bug guide
Decision trees for timing-, environment-, state-dependent and random failures that cannot be triggered on demand.
Regression bisection
Uses git bisect to locate the commit that introduced a bug, running the failing test at each midpoint.
Root-cause fixing
Pushes past symptoms to the actual cause and adds a regression test that fails without the fix.
Error-type triage trees
Quick checklists for test failures, build errors and common runtime errors.
Untrusted error output
Treats instructions embedded in stack traces or CI logs as data to review rather than commands to run.

Good for

  • Figure out why a test started failing after my last change
  • Track down which commit broke the build
  • Diagnose a TypeError that appears only in production
  • Find the root cause of duplicate entries in an API response
  • Add a regression test after fixing a bug

Debugging and error recovery FAQ

Does Debugging and error recovery run any scripts?

No. The skill has no scripts; it is a SKILL.md with supporting reference files that give the agent a process to follow.

Which test and build commands does Debugging and error recovery use?

Its examples use npm, but it instructs the agent to substitute the repository's own test, focused-test and build commands.

Can Debugging and error recovery fix a bug without reproducing it first?

The guidance says to reproduce the failure before fixing it, and to document conditions when a bug cannot be reproduced on demand.

How do I install Debugging and error recovery in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/debugging-and-error-recovery to use it in all your projects, or to .claude/skills/debugging-and-error-recovery in one project. Or install the agent-skills plugin, which includes it: /plugin marketplace add chrisalehman/bionic, then /plugin install agent-skills@bionic.

Does Debugging and error recovery 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 Debugging and error recovery?

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 Debugging and error recovery?

The closest alternatives to Debugging and error recovery are Ci, Agent introspection debugging, Debug, Principle fix root causes and Debug hypothesis.

Where this comes from

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

More from addyosmani/agent-skills

  1. Audits interfaces against WCAG 2.2 AA and guides fixing the violations found

    • Open source
    • 122K GitHub stars
    • Developer tools
  2. Guides designing stable, hard-to-misuse APIs, REST endpoints and module contracts

    • Open source
    • 122K GitHub stars
    • Design and media
  3. Lets your coding agent inspect and test live browser pages through Chrome DevTools

    • Open source
    • 122K GitHub stars
    • Browser automation
  4. Sets up CI/CD quality gates, deployment strategies and rollback plans for agents

    • Open source
    • 122K GitHub stars
    • Developer tools
  5. Guides an agent through multi-axis code review before changes are merged

    • Open source
    • 122K GitHub stars
    • Developer tools
  6. Guides an agent to simplify working code for clarity without changing behavior

    • Open source
    • 122K GitHub stars
    • Developer tools