Skip to content
Skill

Fix bug

Guides the agent through reproducing, diagnosing, fixing and verifying a bug

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

Scripts
None
Platforms
Claude Code
GitHub stars
7
Last commit
License
MIT
Listing updated

Similar skills

About Fix bug

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.

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

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/drbojlergyula/BuildWithAI.git --path .claude/skills/fix-bug

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Fix bug 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 Bug fix, Debugging, Debug, Bug and Debug issue.

Where this comes from

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

More from drbojlergyula/BuildWithAI

  1. Turns a single-project repo into a multi-project portfolio and scaffolds new projects

    • Open source
    • 7 GitHub stars
    • Developer tools
  2. Brings an existing codebase into a docs-based project memory by reverse-engineering it

    • Open source
    • 7 GitHub stars
    • Documentation review
  3. Builds the next planned feature from a project status doc, then verifies and records it

    • Open source
    • 7 GitHub stars
    • Developer tools
  4. Audits project docs for stale status, contradictions and leftover placeholder text

    • Open source
    • 7 GitHub stars
    • Documentation review
  5. Rewinds a git project to an earlier save point, keeping a rescue copy first

    • Open source
    • 7 GitHub stars
    • Developer tools
  6. Runs a pre-launch readiness check and reports whether a project is fit to ship

    • Open source
    • 7 GitHub stars
    • Developer tools