Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL
All skills

tdd

Write a failing test first, then minimal code to pass it, one seam at a time.

When to use it

You have a feature or bug fix to build and want tests written before the code, starting by agreeing which public seams to test.

For example

You say

Use the tdd skill to build a cart checkout feature. Start by proposing the seams we should test, then work through the red-green loop one slice at a time.

You get
  • Confirmed seam list
  • Failing test per slice
  • Minimal passing implementation

How it works

  • Tests target public interfaces, not internals, so refactors don't break them.
  • Expected values must come from an independent source, not recomputed the way the code does.
  • Work in vertical slices: one test, one implementation, repeat, rather than writing all tests up front.