Pular para o conteúdo
Kitbay
Skill

tdd

MITAtualizado em 9 de nov. de 2026321.493Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

  • 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