tdd-patternlisted
Install: claude install-skill JLugagne/claude-skills
# TDD pattern — red and green discipline
The strict TDD workflow paired teammates run for `standard` and `architectural` complexity features in agile-team-v2. This skill captures the rules that *only* apply to red and green, so they can be removed from the global `agile-project` skill (which every agent loads).
If you are reading this and you are not red or green: stop. You don't need this skill. The high-level "Red/Green pattern — ABSOLUTE RULE" stub in the `agile-project` skill is enough for context.
---
# Spec isolation — by discipline, not by file
In v2 there are no `TASK.md`, `TASK-red.md`, or `TASK-green.md` files. Both red and green find their work via the inline marker `TODO(impl-<slug>, ac-<NNN>)` in the production code, looked up via `grep`. There is no private spec for either side; isolation is preserved by **discipline**, audited by `check.sh` and by the reviewer's pass DoD post-mortem.
## What red reads
- The `// AC: <description>` comment immediately above the scaffolded body that the architect inlined.
- The scaffolded function or method signature itself (parameters, return types, receiver).
- For business tests (when the matching test skeleton in `pm_test_territories` carries a `// SCENARIO:` marker placed by the PM): that scenario line.
- Applicable DECISIONS and ADRs listed in FEATURE.md `## Relevant decisions`.
- FEATURE.md `# User journey` for context (when `// AC:` or `// SCENARIO:` on its own is too short).
- Existing test files in the same packag