Skip to content
Back to skills

Tdd Gate

ASecurity

For bugs, parsers, domain logic, APIs, and shared utilities: require a failing test first, then make it pass.

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentspythonbashapi

Works with

  • api

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add HaipingShi/coderail --skill tdd-gate --agent claude-code

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.

Security grade badge for Tdd Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/haipingshi-tdd-gate/badge)](https://www.skillsdirectory.com/skills/haipingshi-tdd-gate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.