tdd

tdd is a cursor rule for Cursor from collectioneur/readme-aura. It costs 217 tokens per session, scanned A, original, MIT.

A set of rules for developing medium and large changes by using test-driven development, or TDD. It specifies the order of writing failing tests, implementing the smallest passing change, and refactoring.

In plain words
What is it for?
Use it for new features, commands, modules, components, multi-file refactors, or public API changes in a project using Vitest.
Why use it?
It helps catch incorrect behaviour early and keeps changes backed by tests. It also states when testing is optional and where tests and commands are located.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it for new features, commands, modules, components, multi-file refactors, or public API changes in a project using Vitest.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/collectioneur/readme-aura/tdd
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/collectioneur/readme-aura

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tdd

README.md
[![agentmods](https://agentmods.dev/badge/rules/collectioneur/readme-aura/tdd/github.svg)](https://agentmods.dev/rules/collectioneur/readme-aura/tdd)
Your own site
<a href="https://agentmods.dev/rules/collectioneur/readme-aura/tdd"><img src="https://agentmods.dev/badge/rules/collectioneur/readme-aura/tdd/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tdd

Your own site · 80×15
<a href="https://agentmods.dev/rules/collectioneur/readme-aura/tdd"><img src="https://agentmods.dev/badge/rules/collectioneur/readme-aura/tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 217 This file is loaded in full into every session.
When invoked 217 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00217 $0.00217
Opus 5.5 $0.00087 $0.00087
Sonnet 5.5 $0.00043 $0.00043
Haiku 4.5 $0.00022 $0.00022

Measured 10d ago against content hash fb31e6b9a681, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tdd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/tdd.mdc · 29 lines

What it actually says

TDD Workflow

Medium and large changes MUST follow strict Test-Driven Development:

  1. Red: Write tests that describe expected behavior. Run npm test — they must FAIL.
  2. Green: Write the minimum code to make tests pass. Run npm test — they must PASS.
  3. Refactor: Clean up implementation while keeping tests green.

What counts as medium/large?

  • New features or commands
  • New modules or components
  • Refactors touching more than one file
  • Changes to public API signatures

What is exempt?

  • Config changes, dependency bumps
  • Documentation-only edits
  • Cosmetic fixes under 10 lines

Test structure

  • Tests live in src/tests/, mirroring src/ file names
  • Use Vitest: describe, it, expect
  • Run: npm test (once) or npm run test:watch (continuous)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 29 lines · 217 tokens per session scan A fb31e6b9a681

Subscribe to this mod's changes

tdd is a cursor rule published in the GitHub repository collectioneur/readme-aura (161 stars, last pushed 6d ago), licensed MIT. It adds 217 tokens to every session, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-19.

Related

tdd compared with cursor rules from other repositories

tdd next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tddcollectioneur/readme-auraCursor rule1616d agoMITA217Cursor
irisils15/pantheon-legacyCursor rule1215d agoMITA43Cursor
tddJkudjo/oh-my-cursorCursor rule117d agoMITA9Cursor
common-testingEarthChen/ai-assetsCursor rule24d agononeA432Cursor
testing_rulesgaebalai/Cursor-DEF-A-RuleCursor rule121y agoMITA1,891Cursor
testing-standardsjim-schilling/splurge-ai-rulesCursor rule31y agoMITA4Cursor
122-swift-developmentn0rvyn/cursor-rulesCursor rule21y agononeA0Cursor