About w-tdd
w-tdd is a repository-focused skill for coding agents that guides test-driven changes through red, green, and refactor cycles, with project-specific testing guidance.
Key features
- 01Test-first red-green-refactor cycle
- 02Use repository testing instructions
- 03Run focused tests each cycle
- 04Document behavior changes
Use cases
- 01Implement behavior changes with TDD
- 02Keep each code increment covered by tests
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ blockmatic-icebox/ basilic-skills --skill w-tddAfter installing, type/w-tddin Claude Code to confirm it loaded.
Details
From the project READMEUse TDD only when the user asked for it or the repository requires it. Follow the repo testing MDX and vitest-v5 (or the stack's test skill). Do not commit unless asked.
- Red: write a failing test for the desired behavior. Use real APIs where the repo tests do; mock only at documented boundaries.
- Green: write the smallest implementation that passes that test.
- Refactor: improve structure while tests stay green.
- Repeat for the next increment. Run the focused test file each cycle, then the affected suite.
- Docs:
/w-docsif behavior or commands changed.
Comments
Markdown supported