本文へスキップ
Kitbay
スキル

tdd

MIT2026年11月9日 更新321,493GitHubスター

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

スキルの内容

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.

できること

  • 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