tdd

tdd is a skill for Claude Code from Jkudjo/oh-my-cursor. It costs 18 tokens per session (306 once invoked), scanned A, original, MIT.

A test-first development workflow: write tests that describe expected behavior, then write code to pass them, and finally clean up the code.

In plain words
What is it for?
Use it when building a function, module, or feature, or when fixing a bug by first writing a test that reproduces it.
Why use it?
It catches misunderstandings and bugs early by making the expected behavior explicit before implementation. It also discourages adding code that the feature does not need.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it when building a function, module, or feature, or when fixing a bug by first writing a test that reproduces it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jkudjo/oh-my-cursor/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.

Any agent
npx skills add Jkudjo/oh-my-cursor --skill tdd
Clone the repo
git clone --depth 1 https://github.com/Jkudjo/oh-my-cursor

Made for: Claude Code.

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/skills/jkudjo/oh-my-cursor/tdd.svg)](https://agentmods.dev/skills/jkudjo/oh-my-cursor/tdd)
Your own site
<a href="https://agentmods.dev/skills/jkudjo/oh-my-cursor/tdd"><img src="https://agentmods.dev/badge/skills/jkudjo/oh-my-cursor/tdd.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 306 The whole file, excluding the scripts and references it only reads on demand.
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.00018 $0.00306
Opus 5 $0.00009 $0.00153
Sonnet 5 $0.00004 $0.00061
Haiku 4.5 $0.00002 $0.00031

Measured 8d ago against content hash df6695d8467b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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.

skills/tdd/SKILL.md · 44 lines

What it actually says

tdd

Invoke this skill to follow a strict red-green-refactor TDD cycle.

When to use

  • Building a new function, module, or feature from scratch
  • When you want tests to define the contract before implementation
  • Fixing a bug (write a failing test that reproduces it first)

What it does

Red phase

  1. Read the clarified scope (from memory key clarified-scope if available)
  2. Write failing tests that define the expected behavior:
    • Happy path
    • Edge cases
    • Error conditions
  3. Run the tests — verify they ALL fail (red)
  4. Do NOT write any implementation yet

Green phase

  1. Write the minimum implementation to make tests pass
  2. Run tests — iterate until all pass (green)
  3. No over-engineering — minimum code only

Refactor phase

  1. Clean up the implementation without changing behavior
  2. Run tests again — must still be green
  3. Commit: "test: add tests for X" then "feat: implement X"

Rules

  • Tests are written before implementation — always
  • Green phase: minimum code, no extras
  • Refactor phase: never change observable behavior
  • Never delete or weaken tests to make them pass
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. 8d ago First seen · 44 lines · 18 tokens per session scan A df6695d8467b

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository Jkudjo/oh-my-cursor (1 stars, last pushed 5mo ago), licensed MIT. It adds 18 tokens to every session and 306 once invoked, about $0.0001 per session on Opus 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-08-31.