← ClaudeAtlas

bugfixlisted

Fix bugs using Test-Driven Development. Use for bug fixes from Linear tickets or user reports. Emphasizes writing tests FIRST before any implementation.
ConfabulousDev/confab-web · ★ 11 · Data & Documents · score 74
Install: claude install-skill ConfabulousDev/confab-web
# Bug Fix (TDD Workflow) Fix bugs using strict Test-Driven Development. **Always write tests first.** ## Critical: TDD is Mandatory This skill enforces TDD. The workflow is: 1. **RED** - Write a failing test that reproduces the bug 2. **GREEN** - Write the minimal code to make the test pass 3. **REFACTOR** - Clean up while keeping tests green 4. **REVIEW** - Perform extremely thorough code review before commit **Do NOT write implementation code before the test exists and fails.** **Do NOT commit or push until code review is complete.** ## Instructions for Claude 1. Use **TodoWrite** to track TDD phases explicitly 2. Understand the bug thoroughly before writing any code 3. Write the test FIRST - it must fail initially 4. Implement the fix - minimal changes only 5. Run all tests to ensure no regressions 6. **Perform an extremely thorough code review before committing** 7. Only after code review passes: update Linear ticket and commit (if requested) ## Phase 1: Understand the Bug Track with TodoWrite: - [ ] Read the bug report/ticket thoroughly - [ ] Identify the affected code path - [ ] Understand the expected vs actual behavior - [ ] Identify the test file location ### Locate Existing Tests **Backend (Go):** ```bash # Find test file for a source file # e.g., db.go -> db_test.go ls backend/internal/*/**_test.go ``` **Frontend (TypeScript):** ```bash # Tests are usually co-located # e.g., Component.tsx -> Component.test.tsx ls frontend/src/**/*.test.tsx ls frontend