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 hculapv0.2.2MITIn 1 marketplace
Transform Claude Code into a strict TDD practitioner that enforces Red→Green→Refactor cycles
You run one by typing its /name in Claude Code.
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.
Transform Claude Code from a general code generator into a strict Test-Driven Development practitioner that enforces the Red→Green→Refactor cycle.
In Claude Code, run:
/plugin install tdd-dev --marketplace hculap/better-code
On Claude Code older than 2.1.275, add the marketplace first: /plugin marketplace add hculap/better-code, then /plugin install tdd-dev@better-code.
Clone and load directly:
git clone https://github.com/hculap/tdd-dev.git
claude --plugin-dir /path/to/tdd-dev
For development/testing:
claude --plugin-dir .
| Command | Description |
|---|---|
/tdd-dev:start | Enable TDD mode for the session (creates flag file) |
/tdd-dev:stop | Disable TDD mode for the session |
/tdd-dev:feature "<desc>" | Implement a new feature using full TDD loop |
/tdd-dev:bug "<desc>" | Create regression test, then fix the bug |
/tdd-dev:refactor "<target>" | Safe refactoring verified by existing tests |
--strict / --standard / --relaxed - Override strictness for this command--no-refactor - Skip refactor phase, stop after green--file <path> - Target specific test or source file--plan - Force planning mode (require approval before test and implementation)--skip-plan - Skip planning entirely, execute directlyBy default, commands will ask if you want to review and approve plans before execution. You can control this behavior:
| Flag | Behavior |
|---|---|
--plan | Always show plan and require approval before each phase |
--skip-plan | Skip planning, execute directly without approval |
| (default) | Ask user whether to use planning mode |
When planning is enabled, the agent will enter Claude Code's native plan mode before:
| Mode | Behavior |
|---|---|
| Strict (default) | Block any implementation without a failing test |
| Standard | Warn and prompt for confirmation |
| Relaxed | Coach and suggest, but don't enforce |
When you run /tdd-dev:start:
.claude/.tdd-mode-active flag file with configuration/tdd-dev:start/tdd-dev:feature "Add pagination to the user list"Note: For guaranteed TDD enforcement, use the explicit commands (/tdd-dev:feature, /tdd-dev:bug, /tdd-dev:refactor). The TDD agent may also be triggered for plain requests when TDD mode is active, but this depends on Claude's judgment. Hooks provide additional enforcement by blocking source file writes without failing tests in strict mode.
Run /tdd-dev:stop to disable hook enforcement. You can still use individual commands like /tdd-dev:feature without TDD mode active.
Create .claude/tdd-dev.local.md in your project:
---
testCommand: npm test
strictness: strict
maxIterations: 5
sourcePatterns:
- src/**/*.ts
- src/**/*.tsx
- app/**/*.py
testPatterns:
- "**/*.test.*"
- "**/*.spec.*"
- "**/*.stories.*"
- "**/*.e2e.*"
- "**/__tests__/**"
- "**/__mocks__/**"
- cypress/**
- playwright/**
- tests/**
---
# Project-Specific TDD Notes
Add any project-specific testing conventions here.
npx claudepluginhub hculap/better-code --plugin tdd-devPlugins from other owners that cover similar ground
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.