w-tdd
Implement a requested increment with red-green-refactor.
Install
npx skills add https://github.com/blockmatic/basilic-skills --skill w-tddSKILL.md
Use 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.
Related skills
tddmattpocock979KTest-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.diagnosing-bugsmattpocock678KDiagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.migrate-to-shoehornmattpocock388KMigrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.systematic-debuggingobra275KUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes