mcpField
W
w-tdd

w-tdd

github.com/blockmaticTesting & quality1647 installsUpdated 4w ago
Repository

About w-tdd

w-tdd is a repository skill for applying test-driven development when requested or required. It guides incremental test-first implementation and specifies when to run tests and update docs.

Key features

  1. 01Red-green-refactor cycles
  2. 02Focused tests after each cycle
  3. 03Use repository testing guidance
  4. 04Document behavior or command changes

Use cases

  1. 01Implementing a requested behavior with TDD
  2. 02Working in a repository that requires TDD

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/blockmatic/basilic-skills --skill w-tdd

After installing, type/w-tddin Claude Code to confirm it loaded.

Details

From the project README

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.

  1. Red: write a failing test for the desired behavior. Use real APIs where the repo tests do; mock only at documented boundaries.
  2. Green: write the smallest implementation that passes that test.
  3. Refactor: improve structure while tests stay green.
  4. Repeat for the next increment. Run the focused test file each cycle, then the affected suite.
  5. Docs: /w-docs if behavior or commands changed.

Comments

Markdown supported