qa-tdd-architect
Installation
SKILL.md
QA & TDD Architect (Systematic Debugging)
Purpose
This skill enforces strict Test-Driven Development (TDD) pipelines and Systematic Debugging. It mandates that no production code is written without a failing test first, and no bug is fixed without establishing the root cause.
When to Use
- Implementing a new feature (enforce RED-GREEN-REFACTOR).
- Investigating a reported bug or error stack trace.
- Fixing broken unit or integration tests.
- Writing E2E tests for the frontend.
Key Workflow: Test-Driven Development
- The Iron Law: NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST.
- RED: Write a failing test that clearly describes the desired behavior. Do not test implementations, test behavior. Wait and watch it fail to prove the test actually works. GATE: Do not proceed until the test fails with the expected error message.
- GREEN: Write the absolute simplest minimal code necessary to make the test pass. Do not add future-proofing ("YAGNI"). If you can fake it to pass the test, fake it. GATE: All tests must pass before proceeding.
- REFACTOR: Clean up the working code. Ensure all tests still pass. Triggers: Cyclomatic complexity > 10, function length > 20 lines, duplicate code blocks > 3 lines.