# Fix bug

> Fix bug is an open-source agent skill for developer tools. Guides the agent through reproducing, diagnosing, fixing and verifying a bug. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/drbojlergyula/BuildWithAI/tree/main/.claude/skills/fix-bug
- **Repository:** https://github.com/drbojlergyula/buildwithai
- **GitHub stars:** 7
- **License:** MIT
- **Skill name:** fix-bug
- **Collection:** https://github.com/drbojlergyula/BuildWithAI
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill gives the agent a fixed loop for broken or unexpected behavior. It asks for the expected and actual results, insists on reproducing the failure before any edit, traces the root cause and explains it in plain language, then makes the smallest change that addresses that cause. Verification means rerunning the original failing case and the project's tests, or giving the user exact steps to confirm when automation is not possible.

After a fix, the workflow expects records kept in the project's docs: a Fixed entry in docs/changelog.md, an optional decision line in docs/decisions.md, and a LESSON line when the root cause is a pattern that could recur. It also asks the agent to offer doc updates when the bug exposes a spec gap, and to suggest a separate command for committing the work.

The skill is a single SKILL.md with no bundled scripts. It assumes a project with those docs files and a git history, and it works on one bug at a time, redirecting missing features to a different workflow.

## When your agent uses it

> Structured bug-fixing workflow — reproduce the problem, find the cause, fix it, verify the fix actually works, and record it in the changelog. Use when something is broken or behaving unexpectedly.

## What it can access

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

- [Instructions only, no scripts](https://github.com/drbojlergyula/BuildWithAI/tree/HEAD/.claude/skills/fix-bug)
- [License: MIT](https://github.com/drbojlergyula/BuildWithAI/tree/HEAD/.claude/skills/fix-bug)

## Features

- **Reproduce before fixing:** Requires the failure to be seen first, or a request for more detail if it cannot be reproduced.
- **Root cause diagnosis:** Traces the failure through code, logs and recent git history before any change is made.
- **Minimal targeted fix:** Asks for the smallest change that addresses the underlying cause rather than the symptom.
- **Verification step:** Reruns the original failing case and project tests, or lists manual checks for the user.
- **Changelog and decision logging:** Records the fix in docs/changelog.md and optionally logs decisions and reusable lessons.
- **Scope control:** Handles one bug at a time and points missing functionality toward a feature workflow.

## Good for

- Fix a login form that rejects valid passwords
- Track down why an API endpoint returns a 500 error
- Investigate a test that started failing after a recent commit
- Diagnose a page that renders incorrectly in the browser
- Work out why a command-line script exits with an unexpected error

## Install

### Claude Code

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

```sh
/plugin marketplace add drbojlergyula/BuildWithAI
/plugin install buildwithai-team@buildwithai
```

Or copy only this skill to `~/.claude/skills/fix-bug`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/drbojlergyula/BuildWithAI.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/fix-bug &&
cp -R "$tmp/.claude/skills/fix-bug" ~/.claude/skills/fix-bug &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/drbojlergyula/BuildWithAI.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/fix-bug &&
cp -R "$tmp/.claude/skills/fix-bug" ~/.agents/skills/fix-bug &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/drbojlergyula/BuildWithAI.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/fix-bug &&
cp -R "$tmp/.claude/skills/fix-bug" ~/.cursor/skills/fix-bug &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/fix-bug` 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/drbojlergyula/BuildWithAI.git --path .claude/skills/fix-bug
```

Or copy the folder to `~/.gemini/skills/fix-bug` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/drbojlergyula/BuildWithAI.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/fix-bug &&
cp -R "$tmp/.claude/skills/fix-bug" ~/.copilot/skills/fix-bug &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/drbojlergyula/BuildWithAI.git
```

Then copy `BuildWithAI/.claude/skills/fix-bug` into your agent's skills folder as `fix-bug`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Fix bug trigger?

When something is broken or behaving unexpectedly, according to its description. Passing a bug description as an argument starts the workflow at the diagnosis step.

### What does Fix bug change in my project?

It asks the agent to add a Fixed entry to docs/changelog.md and, when relevant, lines to docs/decisions.md, alongside the code fix itself.

### Does Fix bug run any scripts?

No. The package contains only the SKILL.md file and no scripts.

### What if the bug cannot be reproduced?

The skill tells the agent to say so and ask for exact steps, the error message or other detail before attempting a fix.

### How do I install Fix bug in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/fix-bug to use it in all your projects, or to .claude/skills/fix-bug in one project. Or install the buildwithai-team plugin, which includes it: /plugin marketplace add drbojlergyula/BuildWithAI, then /plugin install buildwithai-team@buildwithai.

### Does Fix bug 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 Fix bug?

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 Fix bug?

The closest alternatives to Fix bug are Bugfix, Debugging, Bug fix, Debug and Bug.

## Where this comes from

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

## Alternatives

- [Bugfix](https://ai-powered.com/skills/bugfix): Bugfix 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-tansuasici): Debug is an open-source agent skill for developer tools.
- [Bug](https://ai-powered.com/skills/bug-jasgujral): Bug 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.
- [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.
- [Debug](https://ai-powered.com/skills/debug-evist0): Debug is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/fix-bug
