Skip to main content
skill CX Codex

bug-fix · undeadlist — Claude Code skill for fixing bugs

This skill guides an agent through reproducing a bug with a test, applying a focused fix, and checking for regressions. Use it when a bug report needs a verifiable fix.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add undeadlist/claude-code-agents --skill bug-fix -a claude-code
Open on GitHub

What bug-fix does

The workflow starts by asking test-writer to create a failing test from the bug report. Next, code-fixer investigates the cause and changes only what the fix requires. Provide the bug details and reproduction steps.

Then test-runner runs the new test and the existing suite. For UI issues, browser-qa-agent repeats the reported actions and checks related features. Browser QA is skipped for API and background-job bugs, build problems, and test infrastructure issues.

What it helps with

  • turn a bug report into a failing reproduction test
  • trace a defect to its cause and make a focused change
  • check existing tests for regressions
  • replay a UI bug and verify related features

Example prompts for the agent

  • Use /bug-fix to investigate a login failure: valid credentials lead to a 500 error. Reproduce it at /login and check that a successful login redirects to the dashboard.
  • Use /bug-fix for the issue in src/api/auth/login.ts. Write a reproduction test, fix the cause, then run the test suite.
  • Use /bug-fix to fix this UI issue and verify the original steps in the browser.

How to install bug-fix

1Skills CLI (Vercel)

npx skills add undeadlist/claude-code-agents --skill bug-fix -a claude-code

2Manually: put the files in place

~/.claude/skills/bug-fix/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/bug-fix/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about bug-fix

How do I install bug-fix in Claude Code?

Run npx skills add undeadlist/claude-code-agents --skill bug-fix -a claude-code. The skill file is at ~/.claude/skills/bug-fix/SKILL.md.

What does bug-fix do?

It guides bug fixing through a reproduction test, a focused code change, and checks of both the new and existing tests.

When does bug-fix use browser QA?

For UI bugs, it asks browser-qa-agent to replay the reported steps and check related features. API, background-job, build, and test-infrastructure issues skip that stage.

Source text

SKILL.md · MIT
---
name: bug-fix
description: Fix bugs with regression prevention using test-first approach
---

# Bug Fix Workflow

Fix bugs with a test-first approach to prevent regressions. Provide the bug description when invoking.

## Execution (Sequential)

### Step 1: Reproduce with Test
Spawn `test-writer` with the bug description:
- Create a test that fails (reproduces the bug)
- Test should pass after the fix is applied

### Step 2: Fix the Bug
Spawn `code-fixer` with the bug description and test file:
- Find root cause
- Implement minimal fix
- Don't refactor unrelated code

### Step 3: Verify
Spawn `test-runner`:
- New test passes (bug is fixed)
- All existing tests pass (no regressions)

### Step 4: Browser QA (if UI bug)
Spawn `browser-qa-agent`:
- Reproduce original steps
- Confirm bug is fixed
- Check related features still work

## Usage

Provide bug details when invoking:
```
/bug-fix

Bug: Login fails with valid credentials
Steps to reproduce:
1. Go to /login
2. Enter valid email/password
3. Click submit
Expected: Redirect to dashboard
Actual: 500 error
Location: src/api/auth/login.ts
```

## Skip browser-qa for
- Non-UI bugs (API, background jobs)
- Build/compilation issues
- Test infrastructure bugs

© undeadlist · MIT · undeadlist/claude-code-agents

Similar skills

All skills for Testing and QA →

bug-fix by other authors comes first.

From the same set6

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor