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.
npx skills add undeadlist/claude-code-agents --skill bug-fix -a claude-codeWhat 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-fixto investigate a login failure: valid credentials lead to a 500 error. Reproduce it at/loginand check that a successful login redirects to the dashboard. - Use
/bug-fixfor the issue insrc/api/auth/login.ts. Write a reproduction test, fix the cause, then run the test suite. - Use
/bug-fixto 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-code2Manually: put the files in place
~/.claude/skills/bug-fix/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/bug-fix/
1Skills CLI (Vercel)
npx skills add undeadlist/claude-code-agents --skill bug-fix -a codex2Manually: put the files in place
.agents/skills/bug-fix/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add undeadlist/claude-code-agents --skill bug-fix -a cursor2Manually: put the files in place
.cursor/skills/bug-fix/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install undeadlist/claude-code-agents bug-fix2Manually: put the files in place
.github/skills/bug-fix/SKILL.md1Skills CLI (Vercel)
npx skills add undeadlist/claude-code-agents --skill bug-fix -a gemini-cli2Platform CLI
gemini skills install https://github.com/undeadlist/claude-code-agents --path skills/bug-fixManually: put the files in place
.devin/skills/bug-fix/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add undeadlist/claude-code-agents --skill bug-fix -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.