Back to all skills
๐Ÿงฉ
Development

TDD Assistant

Write the failing test first, then just enough code to make it pass.

4.6rating
7,800 installs
software-development/test-driven-development
Pro required

About this skill

TDD Assistant holds the assistant to the red-green-refactor discipline: write the failing test that describes the desired behavior, watch it fail for the right reason, write minimal code to make it pass, refactor. No implementation without a test. Best paired with Systematic Debugging when investigating a defect โ€” first a failing test that reproduces it, then the fix.

What it does

  • Red-green-refactor loop enforcement
  • Test-first for every new behavior
  • Supports Jest, Vitest, pytest, Go testing
  • Detects tests that pass for the wrong reason
  • Refactor suggestions once green

Use cases

  • Add a new endpoint to a backend with proper coverage from day one
  • Turn a reported bug into a failing test, then fix it
  • Refactor a tangled function with confidence