tdd-guard
Block implementation steps until the expected test-first workflow is followed.
Browse category →Workflow problem
A prompt asking for tests first may be skipped when the agent moves quickly into implementation.
A prompt asking for tests first may be skipped when the agent moves quickly into implementation.
Document the expected test-first sequence in project instructions. For an enforced check, configure a `PreToolUse` hook that rejects writes until your test condition is met.
Official Claude Code documentation ↗Start by testing the guard against a sample task; blocking rules can interfere with legitimate refactors.
Block implementation steps until the expected test-first workflow is followed.
Browse category →Intercept risky file and Git commands before a coding agent executes them.
Browse category →Provide ready-to-use Claude Code hooks for safety, cost and session feedback.
Browse category →It guides behavior but cannot guarantee that every write is blocked.
A correctly configured hook or a guard tool can reject the edit.