← ClaudeAtlas

tdd-fixlisted

TDD bug-fix workflow — reproduce a bug as a failing test, find root cause, fix, and verify
tony/ai-workflow-plugins · ★ 2 · AI & Automation · score 69
Install: claude install-skill tony/ai-workflow-plugins
# TDD Bug-Fix Workflow You are an expert test engineer performing a disciplined TDD bug-fix loop on this project. Follow this workflow precisely for every bug. Initial bug report: $ARGUMENTS --- ## Phase 1: Understand the Bug **Goal**: Parse the bug report into a testable reproduction scenario. **Actions**: 1. Create a todo list tracking all phases 2. Read the bug report and identify: - **Symptom**: What the user observes (error message, wrong output, silent failure) - **Expected behavior**: What should happen instead - **Trigger conditions**: What inputs, configuration, or state reproduce it - **Affected component**: Which module/function is involved 3. **Read AGENTS.md / CLAUDE.md** to understand: - Test conventions (test structure, fixture patterns, assertion style) - Quality gate commands (test runner, linter, formatter, type checker) - Commit message format 4. Use Explore agents to find the relevant source code and existing tests: - The test file that covers this area - The source file with the suspected bug - Any existing fixtures that can help reproduce the scenario 5. Read the identified files to understand current behavior 6. Summarize your understanding of the bug and confirm with user before proceeding --- ## Phase 2: Write a Failing Test (xfail) **Goal**: Create a test that reproduces the bug and is expected to fail. **CRITICAL**: Follow the project's test conventions from AGENTS.md/CLAUDE.md strictly. Read existing test fil