Skip to content

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
View on GitHub

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 -y

Installs 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

Similar to Tdd

More Testing & QA