Pular para o conteúdo
Kitbay
Skill

test-driven-development

MITAtualizado em 3 de nov. de 2026315.883Estrelas no GitHub

A skill from the Superpowers collection that makes a coding agent follow strict test-driven development for features, bug fixes and refactors.

O que a skill ensina

A skill from the Superpowers collection that makes a coding agent follow strict test-driven development for features, bug fixes and refactors. For each behaviour the agent writes one small test, runs it and checks that it fails for the expected reason, writes the least code to make it pass, confirms the whole suite is green, and only then tidies up. Code written before its test is to be deleted, not kept as a reference, and bugs get a failing test that reproduces them first. It warns against mocks where real code can be used, lists common excuses for skipping steps, and asks for the full test suite to run before work is called done.

O que faz

  • Write a failing test before any implementation code
  • Implement the smallest change that passes the test
  • Reproduce bugs with a failing test before fixing
  • Run the full test suite before finishing