For bugs, parsers, domain logic, APIs, and shared utilities: require a failing test first, then make it pass.
Scanned 9/2/2026
Install to Claude Code
npx -y skills add HaipingShi/coderail --skill tdd-gate --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Tdd Gate?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/haipingshi-tdd-gate)More formats (shields.io, HTML) on the badges page.
---
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`.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!