Test-Driven Development
FreeSuperpowers skill: write the failing test first, watch it fail, then write the smallest code that passes.
Purpose
Install the original Test-Driven Development skill from obra/superpowers and use it in Claude Code.
Procedure
--- name: claude-test-driven-development description: Superpowers skill: write the failing test first, watch it fail, then write the smallest code that passes. ---
Test-Driven Development
Purpose
Install the original Test-Driven Development skill from obra/superpowers and use it in Claude Code.
Procedure
Source: https://github.com/obra/superpowers/tree/main/skills/test-driven-development Maintainer: Jesse Vincent (obra/superpowers). Skilling lists this skill; the original lives in that repository.
Install
/plugin install superpowers@claude-plugins-official
Run the /plugin line inside Claude Code. It installs the full Superpowers plugin, which includes this skill. The manual copy installs only this one folder.
Manual install (this skill only)
git clone https://github.com/obra/superpowers.git mkdir -p ~/.claude/skills cp -r superpowers/skills/test-driven-development ~/.claude/skills/
What it does
- Red, green, refactor loop
- No production code before a failing test
- Keeps tests focused on behavior
How to use it
Ask Claude to implement a feature or bugfix; the skill starts before code.
Example requests
1. Use Test-Driven Development
Request: Ask Claude to implement a feature or bugfix; the skill starts before code. Expected: Red, green, refactor loop.
Dependencies
Claude Code with /plugin support, or git for the manual copy.
Compatibility
This document follows the Agent Skills layout (a folder named claude-test-driven-development containing SKILL.md). Claude Code, Cursor, Codex, and Gemini CLI can load that file from the paths in the Skilling installation guide. GitHub Copilot does not load SKILL.md. Use the Copilot instructions copy, and narrow applyTo before you commit it.
Example prompts
Use Test-Driven Development
Ask Claude to implement a feature or bugfix; the skill starts before code.
Expected: Red, green, refactor loop.
Choose the agent
This skill is installed for one agent at a time. Pick the section you are using.
Related
- Webapp Testing
Test local web apps with Playwright: check behavior, capture screenshots and read browser logs.
- MCP Builder
Guide for building good MCP servers in Python (FastMCP) or Node/TypeScript that connect LLMs to APIs.
- Skill Creator
Create, edit and test your own skills, run evals and tune the description so the skill triggers.
Reviews
No reviews yet.
Sign in to review.
Report a problem
Inaccurate steps, an unsafe instruction, or a licensing concern.
Sign in to report.