← Library

Agent skill

tdd

Matt Pocock

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.

TestingUpdated 28 days ago263,533 stars

In the author’s words

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

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

Read it before you install it

SKILL.md · 33 lines

Install on its own

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

npx skills add https://github.com/mattpocock/skills --skill tdd
Source ↗GitHub ↗skills.sh ↗Matt Pocock

Trust audit

View the source ↗
100%verified
Resolved (HTTP 200), passed
Resolves · 263,533 stars, passed
Transcribed from the author's own page, passed
Last updated 28 days ago, passed
Credited to Matt Pocock, passed

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

Goes well with

  • test-driven-development

    Test first, on every feature and every bugfix.

    Jesse VincentTesting

    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.

    npx skills add https://github.com/obra/superpowers --skill test-driven-development

  • 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