SU

superpowers-tdd

Applies TDD principles and regression testing to improve code reliability and feature development.

Install

mkdir -p .claude/skills/superpowers-tdd && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2479" && unzip -o skill.zip -d .claude/skills/superpowers-tdd && rm skill.zip

Installs to .claude/skills/superpowers-tdd

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Applies tests-first discipline (red/green/refactor) and adds regression tests for bugs. Use when implementing features, fixing bugs, or refactoring.
148 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Define behavior changes
  • Write failing tests
  • Implement minimal code changes
  • Refactor existing code
  • Create regression tests for bugs

How it works

It enforces a red-green-refactor cycle where behavior is defined through tests before implementation.

Inputs & outputs

You give it
Feature specification or bug report
You get back
Passing test suite and implemented code

When to use superpowers-tdd

  • Write unit tests for new features
  • Create regression tests for bugs
  • Refactor existing code
  • Define behavior changes

About this skill

TDD Skill

When to use this skill

  • new features that can be unit tested
  • bug fixes (always add a regression test if practical)
  • refactors (protect behavior with tests first)

Rules

  • Prefer red -> green -> refactor.
  • If tests are hard, still add verification: minimal repro script, integration test, or clear manual steps.
  • Keep tests focused: one behavior per test where possible.
  • Name tests by behavior, not implementation details.

Process

  1. Define the behavior change (what should be true after).
  2. Write/adjust a test to capture it (make it fail first if possible).
  3. Implement the minimal change to pass.
  4. Refactor if needed (keep passing).
  5. Run the relevant test suite + any linters.

Output requirements

When you change code, include:

  • what tests you added/changed
  • how to run them
  • what they prove

When not to use it

  • Code that cannot be unit tested

Limitations

  • Requires practical testability

How it compares

It prioritizes test-first discipline and regression testing over direct implementation.

Compared to similar skills

superpowers-tdd side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
superpowers-tdd (this skill)56moNo flagsIntermediate
tdd-workflow64moReviewIntermediate
qlty-check57moReviewBeginner
solid56moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry