← Library

Agent skill

test-driven-development

Jesse Vincent

The Superpowers take on TDD, written to trigger before implementation code exists rather than after. Pairs with verification-before-completion, which is what stops the agent declaring the tests green without running them.

TestingUpdated 2 months ago287,591 stars

In the author’s words

Use when implementing any feature or bugfix, before writing implementation code

The description field from SKILL.md, quoted as written.

Read it before you install it

SKILL.md · 315 lines

Install on its own

Or add it to your stack above and install everything at once.

npx skills add https://github.com/obra/superpowers --skill test-driven-development
Source ↗GitHub ↗skills.sh ↗Jesse Vincent

Trust audit

View the source ↗
100%verified
Resolved (HTTP 200), passed
Resolves · 287,591 stars, passed
Transcribed from the author's own page, passed
Last updated 2 months ago, passed
Credited to Jesse Vincent, passed

All 5 checks passed when this was last run. Links were last checked on .

Goes well with

  • tdd

    Red, green, refactor, run by the agent.

    Matt PocockTesting

    Test-first for features and bug fixes, with integration tests rather than mocks where the integration is the risk. The discipline it adds is writing the failing test before the agent is allowed near the implementation.

    npx skills add https://github.com/mattpocock/skills --skill tdd

  • verification-before-completion

    No success claim without the command output behind it.

    Jesse VincentTestingReview

    Fires the moment the agent is about to say something is done, fixed or passing. It has to run the verification and read the output first. If you have ever been told the build is green when it is not, this is the skill for that.

    npx skills add https://github.com/obra/superpowers --skill verification-before-completion

  • webapp-testing

    Drives a local web app with Playwright.

    AnthropicTestingDebugging

    Lets the agent open your dev server, click through it, screenshot what it sees and read the browser console. The gap it closes is an agent that writes frontend code it has never actually run.

    npx skills add https://github.com/anthropics/skills --skill webapp-testing

Work with us