AcademySkillsDevelopment

Test-Driven Development

Development teams that want agent-written code backed by tests written before the implementation.

  • Recommendedour rating
  • 297,139repository stars
  • MITlicence
  • todaylast update
npx degit obra/superpowers/skills/test-driven-development ~/.claude/skills/test-driven-development
SKILL.md

Loading the file...

What it does

A skill that makes the agent write a test first, watch it fail, and only then write the minimum code to make it pass. It applies to new features, bug fixes, refactoring and behavior changes, and treats code written before its test as something to redo.

Use cases

  1. 01Add a feature with a failing test written first
  2. 02Fix a bug with a test that reproduces it
  3. 03Refactor code while the tests stay green

Questions about
Test-Driven Development.

What is Test-Driven Development used for?

Development teams that want agent-written code backed by tests written before the implementation. A skill that makes the agent write a test first, watch it fail, and only then write the minimum code to make it pass. It applies to new features, bug fixes, refactoring and behavior changes, and treats code written before its test as something to redo.

How do I install Test-Driven Development?

Run this in your terminal: npx degit obra/superpowers/skills/test-driven-development ~/.claude/skills/test-driven-development

Is Test-Driven Development open source?

Yes. The code is on GitHub (obra/superpowers) under the MIT licence.

Is Test-Driven Development safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.