bug-fix
Fix bugs with regression prevention using test-first approach
git clone --depth 1 https://github.com/undeadlist/claude-code-agents /tmp/bug-fix && cp -r /tmp/bug-fix/skills/bug-fix ~/.claude/skills/bug-fixSKILL.md
# 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
API endpoint testing. Discovery, validation, auth flows, error handling.
Supervisor agent. Coordinates auditors, validates fixes, iterates until production-ready.
Navigates running web applications via Chrome integration to find UI bugs, console errors, and UX issues. Uses /chrome tools to interact with localhost or deployed apps.
Runtime bug scanner. Finds error handling gaps, race conditions, memory leaks, null refs.
Code quality auditor. Reviews patterns, maintainability, complexity, consistency.
Implements fixes from FIXES.md. Production-quality code following project patterns.
Real-time console monitoring during browser sessions. Watches for errors, warnings, and logs as you test.
Database auditor. Schema design, N+1 queries, indexes, connection pooling.