Sign in
Explore
Skills · SkillTesting & SecurityUnit tests & TDDReviewed

tdd

Writes a failing test first when a bug has a cheap local test target, and skips it when the test path is unclear.

Kind
Skill
Works with
Cursor, Any agent
Source
cursor/plugins @ 9580c23696ac
Path
pstack/skills/tdd/SKILL.md
Jobs
Testing
Topics
Unit tests & TDD

Credit

Made by
cursor
Original
github.com/cursor/plugins/blob/9580c23696ac8d7abed0c166f2f991…
License
MIT

Listed by Skill Manifest; not made by us.

InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/tdd/ (the skill folder)
Runs scripts
None found
Uses the network
None found
Needs secrets
None found
Source revision
9580c23696ac
Licence
MIT
Last activity
26 Nov 2026
Source changed after the scan
Yes
  • Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

# 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

1. **Understand the bug.** Identify the intended behavior, current behavior, affected path, and smallest observable reproduction.
2. **Choose the narrowest executable check.** Prefer the closest unit, component, integration, or regression test already used for that codepath. If no practical test path is obvious, do not create one from scratch just to satisfy the workflow.
3. **Write the failing test first.** Add the smallest focused test that would have caught the bug. The test should encode intended behavior, not mirror the current implementation.
…