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.zipInstalls 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.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
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
- Define the behavior change (what should be true after).
- Write/adjust a test to capture it (make it fail first if possible).
- Implement the minimal change to pass.
- Refactor if needed (keep passing).
- 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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| superpowers-tdd (this skill) | 5 | 6mo | No flags | Intermediate |
| tdd-workflow | 6 | 4mo | Review | Intermediate |
| qlty-check | 5 | 7mo | Review | Beginner |
| solid | 5 | 6mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by anthonylee991
View all by anthonylee991 →You might also like
tdd-workflow
affaan-m
在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,包含单元测试、集成测试和端到端测试,覆盖率超过80%。
qlty-check
parcadei
Code quality checks, formatting, and metrics via qlty CLI
solid
ramziddin
Use this skill when writing code, implementing features, refactoring, planning architecture, designing systems, reviewing code, or debugging. This skill transforms junior-level code into senior-engineer quality software through SOLID principles, TDD, clean code practices, and professional software design.
bunit-test-migration
FritzAndFriends
Migrate bUnit test files from deprecated beta API (1.0.0-beta-10) to bUnit 2.x stable API. Use this when working on .razor test files in BlazorWebFormsComponents.Test that contain old patterns like TestComponentBase, Fixture, or SnapshotTest.
code-refactor
luongnv89
Systematic code refactoring based on Martin Fowler's methodology. Use when users ask to refactor code, improve code structure, reduce technical debt, clean up legacy code, eliminate code smells, or improve code maintainability. This skill guides through a phased approach with research, planning, and safe incremental implementation.
tdd-workflows-tdd-green
sickn33
Implement the minimal code needed to make failing tests pass in the TDD green phase.