Skip to content
AI & Agents
Skill

/bug-fix

Fix bugs with regression prevention using test-first approach

BOOST
From plugin
claude-code-agents
1496 skills24 agents
Install
$ npx -y skills add undeadlist/claude-code-agents --skill bug-fix --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/bug-fix

Context preview

The summary Claude sees to decide when to auto-load this skill.

Fix bugs with regression prevention using test-first approach

SKILL.md

bug-fix.SKILL.md
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
Ships withclaude-code-agents

Claude Code Agents Prompt templates for Claude Code's subagent system. Run parallel code audits, automate fix cycles, get stuff reviewed. Built for the Claude Code Task tool. Not a framework. Just prompts that work. What This Does Claude Code can spawn subagents via Task(). These are the prompts those agents receive.

Get the whole plugin

Other skills on claude-code-agents.