RED-GREEN-REFACTOR with iron laws: write the test first, watch it fail, then write the minimal code to pass. Turns your agent into a disciplined TDD practitioner that never ships untested code.
/test-driven-development Add cursor-based pagination to the orders API
What you get
- The RED-GREEN-REFACTOR loop with iron laws your agent must not skip
- A guide to writing tests that actually catch regressions
- A rationalization-rejection table ("I'll test it later" is not a plan)
Good fit
- New features and bugfixes in any codebase
- Projects where untested code keeps regressing
Not for
- Throwaway spikes and prototypes
- Debugging existing failures (use systematic-debugging)
- Repository
- obra/superpowers
- Stars
- 0
- Category
- Coding
- Skills inside
- 1
Exclusive content
Hosted on SkillStack — full markdown, yours after purchase.
--- name: test-driven-development description: Use when implementing any feature or bugfix, before writing implementation code ---
Test-Driven Development (TDD)
Overview
Write the test first. Watch it fail. Write minimal code to pass.
Core principle: If you didn't watch the t…
Unlock the full content
Buy it once and keep it forever, or subscribe for access to everything.
Premium subscribers get this included.
Download & install
What's new: Initial SkillStack curated release: original MIT-licensed content repackaged as an install-ready ZIP with attribution.
Free for signed-in users.
1. Download the ZIP
Use the button above to download the packaged skill. It contains the SKILL.md plus all supporting files.
2. Unzip into your agent's skills folder
Extract the archive so that SKILL.md sits directly inside a folder named after the skill:
unzip test-driven-development-v1.0.0.zip -d ~/.claude/skills/test-driven-development/Skills folder per agent
- Claude Code
- ~/.claude/skills
- Cursor
- ~/.cursor/skills
- Codex
- ~/.codex/skills
- GitHub Copilot
- ~/.copilot/skills
3. Restart your agent
Your agent picks up the new skill automatically on next launch. Ask it what it can do.
Reviews
Related skills
Systematic Debugging
obra/superpowers
Stop guessing at fixes. A 4-phase root-cause discipline (reproduce → isolate → hypothesize → verify) that forces your coding agent to find the real cause before touching code. The most-copied debugging skill in the Agent Skills ecosystem.
Claude Code · Codex · Cursor · Copilot +1
Code Review & Quality
addyosmani/agent-skills
Multi-axis code review with severity gates (Critical/High/Medium/Low) across correctness, readability, architecture, security, and performance. By Addy Osmani (Google Chrome). Nothing merges without a verdict.
Claude Code · Codex · Cursor · Copilot
Tidy — AI Code Review
mblode/agent-skills
A diff/PR reviewer built specifically for agent-written code. Catches AI-slop patterns that line-by-line reviews miss, tiers findings as confirmed vs plausible, and can apply the fixes itself. The differentiator in your review stack.
Claude Code · Codex · Cursor
Git Workflow & Versioning
addyosmani/agent-skills
Branch strategy, commit discipline, PR hygiene, and release versioning for agent-driven development. Keeps AI-generated changes manageable, reviewable, and reversible at high speed.
Claude Code · Codex · Cursor · Copilot +1