Hook
tdd-gate
Test-Driven Development enforcement hook. Blocks editing production code files (.cs, .py, .ts, .go, .rs, .rb, .php, .java, .kt, .swift, .dart) unless a corresponding…
tdd-gate is a Claude Code hook you can drop into a project. It plugs into the Claude Code workflow directly, so it is useful when a task keeps recurring and you want it handled the same way each time.
We keep this entry in sync on a schedule, so the counts and the description track the upstream project.
| Type | Hook |
|---|
/hook add tdd-gateHow to use it
- Add the file to `.claude/agents/` (subagent) or `.claude/commands/` in your project.
- Restart Claude Code so it registers the new entry.
- Invoke it by name, or let the main session delegate to it.
Compiled and written by HowToPrompts from public sources.
← Back to Agents & Commands