Test-first bug fixing that writes a focused regression test to fail before the fix and pass after.
- CCM score
- 59 of 100
- skills.sh installs
- 4.5K
- GitHub stars
- 20.2K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the bug-fix workflow: reproduce the defect, write a failing test, confirm the failure, fix, and rerun
- Includes a fallback path for impractical tests, such as a targeted script, manual reproduction, or focused integration check
- Enforces guardrails against weakening assertions, editing tests to match wrong behavior, and broad fixture churn
- Designed for bugs with an obvious cheap local test target, not for unclear, integration-heavy, or unrequested testing
Install
$ npx -y skills add cursor/plugins --skill tdd -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
TDD Bug Fix
When fixing a bug with a clear, cheap test path, make the broken behavior executable before changing production code. The goal is a focused regression test that fails before the fix and passes after it.
Do not force a test when it would be impractical. If the available test would require broad harness setup, brittle mocks, slow end-to-end infrastructure, production-only state, vague reproduction steps, or large unrelated fixture churn, skip adding a new test and use the closest useful verification instead.
Workflow
Details
- Repository
- github.com/cursor/plugins
- Categories
- Testing & QA, Debugging
- First seen
- Jun 23, 2026
Questions
What does the tdd skill do?
The tdd skill guides an agent to fix a bug by first writing a focused failing regression test that reproduces it, then making the smallest production change so the test passes. It runs the test before and after the fix to confirm the intended behavior.
When should I use the tdd skill?
Use it only when you explicitly ask for TDD, a failing test, or a regression test, or when the bug has an obvious cheap local test target. It skips adding a test when the test path is unclear, expensive, or integration-heavy.
How do I install the tdd skill?
Run npx -y skills add cursor/plugins --skill tdd -y in your project. Once installed, the agent can write a failing test before fixing a bug when the conditions above apply.
Where does the tdd skill sit in the Testing & QA category?
The tdd skill is listed in the Testing & QA category on Claude Marketplaces, alongside migrate-to-shoehorn, test-driven-development, webapp-testing and break-ui. It differs by focusing on bug fixes that start from a focused failing regression test.
More from cursor/plugins
All 93- Principle Attack The Premise3.6K
- Principle Test Behavior Not Implementation3.5K
- Make Pr Easy To Review3.5K
- Thermo Nuclear Review3K
- Fix Merge Conflicts3K
- Control Cli2.8K
- What Did I Get Done2.8K
- Review And Ship2.8K
- Principle Explain The Number2.8K
- Verify This2.7K
- Correct2.7K
- Weekly Review2.7K
- Benchmark Checklist2.7K
- Fix Ci2.7K
- Control Ui2.6K
- Pr Review Canvas2.5K
- Poteto Help2.5K
- Check Compiler Errors2.5K
- Thermos2.4K
- Get Pr Comments2.4K
- Loop On Ci2.3K
- New Branch And Pr2.3K
- Run Smoke Tests2.3K
- Create Formal Verification Skill2.3K
Similar to Tdd
More Testing & QAtest-driven-developmentsickn33/agentic-awesome-skills1.5K installsTest-first workflow that guides feature and bug-fix work through failing tests, minimal code, and refactoring.
bug-fixbobmatnyc/claude-mpm-skills490 installsSystematic bug-fix workflow covering reproduction, root cause analysis, fix verification, and regression tests.
test-fixingmhattingpete/claude-skills-marketplace389 installsSystematic test-fixing workflow that groups failures by error type, module, and root cause before repairing them.
systematic-debuggingobra/superpowers346.5K installsStructured four-phase process that forbids proposing fixes until root cause is established.