This is a guardrail for test-driven development that stops Claude from writing tests when they'd be wasteful. It enforces the red-green-refactor loop only when the user explicitly asks for TDD or when the bug has an obvious, cheap test target. The workflow is strict: write a failing test, confirm it fails for the right reason, fix the bug, then verify it passes. If a proper regression test would need brittle mocks, slow infrastructure, or expensive setup, it tells Claude to skip it and use the closest practical verification instead. The core insight is that a bad test is worse than no test, and forcing TDD on integration-heavy or unclear paths creates more problems than it solves.

skills.sh installs
3.9K
GitHub stars
15.9K
last updated
Aug 21, 2026

Install

$ npx -y skills add cursor/plugins --skill tdd --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/cursor/plugins
Categories
Testing & QA, Debugging
First seen
Jun 23, 2026

More from cursor/plugins

All 47
1grafana avatark6-perf-test-websitegrafana/skillsUse when the user wants to performance-test, load-test, or stress-test a public website end-to-end with k6. Produces a hybrid (protocol + browser) test suite, S3.7Kskills.sh installs
2majidmanzarpour avatarthreejs-qa-releasemajidmanzarpour/threejs-game-skillsVerify and release Three.js browser games. Combines playtest QA, automated bot playtests, mobile/responsive checks, production builds, preview verification, sta3.5Kskills.sh installs
3hashicorp avatarprovider-test-patternshashicorp/agent-skillsTerraform provider acceptance test patterns using terraform-plugin-testing with the Plugin Framework. Covers test structure, TestCase/TestStep fields, ConfigSta3.4Kskills.sh installs
4phuryn avatartest-scenariosphuryn/pm-skillsCreate comprehensive test scenarios from user stories with test objectives, starting conditions, user roles, step-by-step actions, and expected outcomes. Use wh3Kskills.sh installs
5android avatartesting-setupandroid/skillsAnalyze and create a testing strategy for native Android apps - install testing libraries, set up test infrastructure, create harnesses for unit tests, UI tests3Kskills.sh installs
6openai avatartest-tuiopenai/codexGuide for testing Codex TUI interactively2.8Kskills.sh installs