TDD Workflow
/install tdd-workflow
Test-Driven Development Workflow
Ensure all code development follows TDD principles with 80%+ code coverage.
When to Activate
- Writing new features or functionality
- Fixing bugs or issues
- Refactoring existing code
- User says "write tests", "add specs", "how should I test this"
Quick Start
- Write user journey in acceptance-test format ("As a [role], I want...")
- Generate test cases (happy path + edge cases + errors)
- Run tests → verify RED state (must fail before implementation)
- Implement minimal code to make tests pass → GREEN state
- Refactor while keeping tests green
- Verify 80%+ coverage achieved
Key Concepts
- Tests before code — Write tests first, then implementation
- RED-GREEN-REFACTOR — Fail → Pass → Improve (no exceptions)
- 80% coverage minimum — Unit, integration, and E2E combined
- Unit-level isolation — Mock dependencies, test behavior not implementation
- Independent tests — No test ordering dependencies; each can run solo
Common Usage
Most frequent patterns:
- Unit tests for functions and components
- Integration tests for API endpoints and database operations
- E2E tests for critical user flows
- Edge case and error path testing
- Fast execution (unit tests \x3C 50ms each)
References
references/workflow-steps.md— Detailed 7-step TDD cycle with git checkpointsreferences/patterns-and-best-practices.md— Test patterns, common mistakes, success metrics
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install tdd-workflow - After installation, invoke the skill by name or use
/tdd-workflow - Provide required inputs per the skill's parameter spec and get structured output
What is TDD Workflow?
Test-driven development workflow enforcing 80%+ code coverage with unit, integration, and E2E tests. Write tests first, validate RED state, implement minimal... It is an AI Agent Skill for Claude Code / OpenClaw, with 168 downloads so far.
How do I install TDD Workflow?
Run "/install tdd-workflow" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is TDD Workflow free?
Yes, TDD Workflow is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does TDD Workflow support?
TDD Workflow is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux, win32).
Who created TDD Workflow?
It is built and maintained by Deonte Cooper (@djc00p); the current version is v1.0.0.