Skip to content
Kitbay
Submit
Skill

tdd

MITUpdated on Nov 9, 2026321,493GitHub stars

Matt Pocock's test-driven development skill, used when building a feature or fixing a bug test-first.

What the skill teaches

Matt Pocock's test-driven development skill, used when building a feature or fixing a bug test-first. Before writing any test the agent proposes the public interfaces, or seams, to test at, says in a line what each would catch and miss, and has the user confirm them. It then works in vertical slices: one failing test, the least code to pass it, then the next. The skill warns against tests coupled to internals, assertions that recompute the expected value the way the code does, and writing every test before any code. Refactoring is left to the review stage. Bundled notes give test examples and mocking guidance.

Capabilities

  • Agree test seams with the user before writing tests
  • Work in one-test, one-implementation vertical slices
  • Avoid implementation-coupled and tautological tests
  • Apply bundled mocking guidance