W Tdd

blockmatic/basilic-skills/skills/workflow/w-tdd

by blockmatic7e05e2abd052dc6b526e8a28e36d102d42bfd635No license1 starsListed Oct 9, 2026Updated Oct 9, 2026Repository updated 6 days ago

Implement a requested increment with red-green-refactor.

Instructions onlySoftware Development
AI-generated overview

Guides a red-green-refactor TDD loop for implementing a requested code increment, with focused and suite test runs.

What it does
This skill provides a step-by-step test-driven development workflow for implementing a requested increment. It directs the agent through red (write a failing test), green (smallest passing implementation), and refactor phases, repeating per increment. It also specifies running the focused test file each cycle followed by the affected suite, and updating docs when behavior or commands change.
When to use it
Use it when the user explicitly asks for TDD or the repository requires it. It fits incremental feature or behavior work where tests should drive the implementation.
Requirements
No scripts are shipped; it is instructions only. It expects the repository's testing documentation and a test stack such as vitest-v5, and it defers to the stack's test skill. It also references a companion docs skill for documentation updates.

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.

Source and attribution

Source:blockmatic/basilic-skillsinskills/workflow/w-tddat commit7e05e2a

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal