Skill

Test-driven development skill by Jesse Vincent (Superpowers)

The test-driven-development skill from Jesse Vincent's Superpowers repository is a SKILL.md that tells the agent to write a failing test first, then the smallest amount of code that makes the test succeed. The repository is MIT-licensed. Copy the skill folder into Claude Code, Codex or Cursor. This page describes the copy at a pinned commit, pulled on 11 November 2026.

Writes a failing test first, then the smallest amount of code that makes the test succeed.

Updated

Download zipSKILL.mdSource on GitHub

Test-driven development, a skill by Jesse Vincent under the MIT license.

The short answer

The test-driven-development skill from Jesse Vincent's Superpowers repository is a SKILL.md that tells the agent to write a failing test first, then the smallest amount of code that makes the test succeed. The repository is MIT-licensed. Copy the skill folder into Claude Code, Codex or Cursor. This page describes the copy at a pinned commit, pulled on 11 November 2026.

This is a credited third-party skill, not a Codema.ai skill. For how coding agents load skills, see the coding agents guide.

What the skill does

The SKILL.md is titled "Test-Driven Development (TDD)." The front matter says to use it when implementing any feature or bugfix, before writing implementation code.

The body opens with: write the test first, watch it fail, then write minimal code so the test succeeds. It states a core principle: if you did not watch the test fail, you do not know whether it tests the right thing. Its iron law is "no production code without a failing test first," and it tells the agent that if code was written first, it should be deleted and the work started over from the tests.

It then describes a red-green-refactor cycle: write one failing test, confirm it fails for the expected reason, write the smallest amount of code that makes it succeed, confirm the suite is green, tidy the code while staying green, and repeat. The folder also includes writing-good-tests.md.

The front matter sets name: test-driven-development.

Who it's for

People who want an agent to implement a feature or a fix by writing a failing test first. The skill lists always-on cases as new features, bug fixes, refactoring and behavior changes, and it lists exceptions to ask the human partner about: throwaway prototypes, generated code, and configuration files.

How to install it

Copy the skill folder so that SKILL.md sits directly inside a directory named test-driven-development. Official install paths are below. A public GitHub copy of the source repo already exists, so you can also clone or download that folder at the pinned commit.

Claude Code

Claude Code loads a skill from a folder that contains SKILL.md. Copy test-driven-development/ to:

  • Project: .claude/skills/test-driven-development/SKILL.md
  • Personal (every project on this machine): ~/.claude/skills/test-driven-development/SKILL.md

Claude Code discovers the skill automatically. Invoke it with /test-driven-development, or ask in plain words that match the skill's description. Personal skills in ~/.claude/skills/ are not loaded in Cowork or cloud sessions.

Codex

Codex scans .agents/skills from your working directory up to the repository root, and loads personal skills from $HOME/.agents/skills. Copy test-driven-development/ to:

  • Project: .agents/skills/test-driven-development/
  • Personal: $HOME/.agents/skills/test-driven-development/

In Codex CLI or the IDE extension, type $test-driven-development, or run /skills. Codex can also load the skill when your task matches its description. It detects new skills automatically; if one does not appear, restart Codex. Codex also ships a $skill-installer that can install a skill from a GitHub repository; see the Codex docs for that flow.

Cursor

Cursor discovers skills at startup from .agents/skills/ and .cursor/skills/ in a project, and from ~/.agents/skills/ and ~/.cursor/skills/ for the current user. For compatibility it also loads the Claude Code and Codex skill directories. Cursor's docs say the name in the front matter must match the folder name, which it does here (test-driven-development).

Copy test-driven-development/ into one of those locations, start a new Agent chat, and type / to search for the skill. Cursor's docs say skills are not imported from a GitHub repository on their own unless they are packaged as a plugin, so a folder copy is the path that matches those docs.

Source, license and dates

The skill is from obra/superpowers, by Jesse Vincent, under the MIT license. The license file is at the repository root (Copyright (c) 2025 Jesse Vincent). The skills/test-driven-development folder has no LICENSE file of its own. A re-hosted zip should include the root LICENSE and retain the notices in the upstream files.

This description is pinned to commit 22f0b463e7a5e579904dd6211a520321035526f7 on the default branch, pulled on 11 November 2026 (America/Toronto).

Last checked: 11 November 2026 (America/Toronto).

Codema scan: no issues found · 11 November 2026. The scanner did not report High or Medium pattern matches in the skill folder. The scanner matches patterns. Read the files yourself before you install them.

Similar skills

The same Superpowers repository also contains a brainstorming skill, described on its own page in this set.

FAQ

What does the test-driven-development skill do?

The SKILL.md tells the agent to write the test first, confirm it fails for the right reason, then write the smallest amount of code that makes the test succeed, and then tidy the code while keeping the tests green. Its iron law is: no production code without a failing test first.

What license is it under?

MIT. The license file is at the repository root (Copyright (c) 2025 Jesse Vincent). The skills/test-driven-development folder contains SKILL.md and writing-good-tests.md, but no LICENSE file of its own. A re-hosted copy should include the root LICENSE and retain the notices in the upstream files.

Which commit is this page based on?

The default branch of obra/superpowers at 22f0b463e7a5e579904dd6211a520321035526f7, pulled and last checked on 11 November 2026.

What did the Codema scan find?

The scan line on 11 November 2026 is no issues found. That means the scanner did not report High or Medium pattern matches in the skill folder. The scanner matches patterns; this line is not a verdict about whether you should install the skill.

When does the skill say not to follow this process?

The SKILL.md lists always-on cases as new features, bug fixes, refactoring and behavior changes. It lists exceptions to ask the human partner about: throwaway prototypes, generated code, and configuration files.

Sources

  1. obra/superpowers, skills/test-driven-development, commit 22f0b463e7a5e579904dd6211a520321035526f7
  2. Claude Code docs, Extend Claude with skills
  3. OpenAI Codex docs, Build skills
  4. Cursor docs, Agent Skills