Installs into .claude/skills of the current project.
Are you the author of Tdd Gate?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/haipingshi-tdd-gate)
---
name: tdd-gate
description: For bugs, parsers, domain logic, APIs, and shared utilities: require a failing test first, then make it pass.
---
# tdd-gate
Use before implementation for correctness-sensitive tasks and before done for any task where TDD mode is `required`.
## Action
Run:
```bash
python .coderail/coderail.py tdd
```
## Required evidence
- TDD mode: required, optional, or waived.
- Red check: the failing check captured before implementation.
- Green check: the passing check after the minimal implementation.
- Refactor check: checks still pass after cleanup.
- Regression check: stable check for the bug or failure mode when relevant.
- CI check: CI Gate or equivalent repository checks.
## Rules
- Required by default for bug fixes, regressions, parsers, validators, domain logic, public APIs, shared utilities, and risky behavior-preserving refactors.
- Optional or waived for docs-only, scaffolding, release metadata, visual polish, and exploratory spikes.
- Do not treat tests written after implementation as Red evidence unless the failure was reproduced before the fix.
- If TDD is waived, record the reason in `V -- Verify`.