tdd

TDD with planning via the architect agent + strict RED-GREEN-REFACTOR cycle + 80%+ coverage

TDD Command

Activates the TDD workflow with feature planning, a strict RED-GREEN-REFACTOR cycle, and coverage verification.

When to use

To develop features with upfront planning via the architect agent. For the pure TDD cycle without planning (entering directly into RED), use /dog:test-driven-development.

Arguments

$ARGUMENTS

Delegation

  1. Dispatch the architect agent to plan the feature (structure, test targets, acceptance criteria) — BEFORE writing any test.
  2. Dispatch the tdd-guide agent to enforce the write-tests-first methodology and RED → GREEN → REFACTOR discipline.
  3. Apply the dog:test-driven-development skill for the full TDD workflow.
  4. Enforce the coverage threshold (≥80% lines/functions/statements on changed files).
  5. Include git checkpoint commits as defined in the TDD skill (test commit for RED, fix commit for GREEN).