Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By windyroadv0.7.1In 1 marketplace
Forces your AI agent to write a failing test before any implementation, in a Red-Green-Refactor cycle. Hooks block implementation edits in IDLE or BLOCKED states; test and config files stay writable.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
TDD state machine enforcement for Claude Code. Forces the Red-Green-Refactor cycle so your AI agent writes tests before implementation -- every time. Maturity: Experimental.
Part of Windy Road Agent Plugins.
AI agents love to jump straight to implementation. This plugin stops that. It enforces a strict TDD state machine:
IDLE ──> RED ──> GREEN ──> RED (next test)
│
└──> Refactor (staying GREEN)
The agent must write a failing test first. There are no shortcuts.
npx @windyroad/tdd
Restart Claude Code after installing.
The plugin activates automatically. On first use in a project without a test framework, it directs you to set one up:
/wr-tdd:setup-tests
This examines your codebase, recommends a test runner, configures package.json, and creates an example test.
Once active, the workflow is enforced on every edit:
*.test.ts, *.spec.ts, etc.) that describes the desired behaviourTest files and config/doc files are always writable regardless of state.
The hook associates an implementation file with its tracked test by matching one of the following path shapes (per P201):
| Shape | Impl path | Test path |
|---|---|---|
| Same-directory | src/foo.js | src/foo.test.js or src/foo.spec.js |
__tests__/-adjacent | src/foo.js | src/__tests__/foo.test.js |
Parent __tests__/ | src/components/Hero.tsx | src/__tests__/Hero.test.tsx |
test/-mirror (Vitest default; many Jest setups) | src/foo.js, src/a/b/foo.js, packages/<pkg>/src/foo.js | test/foo.test.js, test/a/b/foo.test.js, packages/<pkg>/test/foo.test.js |
| Cucumber step-definitions | features/step_definitions/checkout.steps.js | features/checkout.feature |
The test/-mirror rule replaces the last src path segment with test, so it works at any nesting depth and for monorepo workspace layouts.
| Hook | Trigger | What it does |
|---|---|---|
tdd-inject.sh | Every prompt | Injects the current TDD state into the prompt |
tdd-enforce-edit.sh | Edit or Write | Blocks implementation edits in IDLE or BLOCKED state |
tdd-post-write.sh | After edit | Runs tests and transitions the state machine |
tdd-review-test.sh | After edit | Classifies new test files as STRUCTURAL (asserts source content) or BEHAVIOURAL (exercises the target) and surfaces structural-test regressions per ADR-052 |
tdd-setup-marker.sh | Skill completes | Marks test setup as done |
tdd-reset.sh | Session end | Resets the TDD state |
npx @windyroad/tdd --update
npx @windyroad/tdd --uninstall
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub windyroad/agent-plugins --plugin wr-tddPlugins from other owners that cover similar ground