← ClaudeAtlas

tdd-executorlisted

Runs red/green/refactor loops against acceptance criteria and TEST_STRATEGY. Use when practicing TDD or when tests should lead implementation. Emits TDD_SESSION. Never skips red, never refactors on red, never claims green without command evidence.
willianbs/skills · ★ 0 · Testing & QA · score 71
Install: claude install-skill willianbs/skills
# Purpose Implement behavior test-first with a disciplined red → green → refactor loop tied to AC IDs. # When to Use / When NOT to Use **Use when:** user asks for TDD; high-correctness units; pairing with TEST_STRATEGY; implementing pure logic/API contracts. **Do not use when:** spike/prototype explicitly throwaway; pure docs; exploratory defect triage (defect-analyst first). # Preconditions At least one testable AC or behavior statement. Prefer TEST_STRATEGY + TASK_GRAPH. Project test command discoverable. # Inputs / Outputs **Inputs:** AC IDs, TEST_STRATEGY, CONTEXT_PACK, task scope. **Outputs:** `TDD_SESSION` (+ code/tests); may produce/update IMPL_REPORT fields. # Upstream / Downstream **Upstream:** test-strategy-designer, delivery-planner, spec-validator. **Downstream:** feature-implementer (if continuing), code-reviewer, quality-gate. # Core Principles 1. Red before implementation for the vertical under test. 2. Green: minimal code to pass. 3. Refactor only on green; keep tests green. 4. One failing behavior at a time. 5. Behavior-focused tests; avoid testing privates unless necessary. 6. Record exact commands and outcomes. 7. Stop if AC is untestable — hand back to spec-validator. # Process For each AC/slice: 1. **Red** — write failing test; run; capture failure. 2. **Green** — minimal implementation; run; capture pass. 3. **Refactor** — clean structure; run; stay green. 4. Update TDD_SESSION log per cycle. 5. After cycles, summarize coverage vs AC IDs;