tdd

tdd is a skill for Claude Code, Codex from viknesh20-20/claude-code-tool-kit. It costs 43 tokens per session (556 once invoked), scanned A, original, MIT.

A feature-building method called test-driven development, or TDD. It writes a test that fails, adds the smallest code that makes it pass, and then cleans up the code while keeping the tests passing.

In plain words
What is it for?
It is for implementing features step by step, detecting the project's test setup, and checking related tests after each change.
Why use it?
It turns the intended behavior into an executable check before implementation and helps catch regressions during refactoring.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/viknesh20-20/claude-code-tool-kit/tdd
Any agent
npx skills add viknesh20-20/claude-code-tool-kit --skill tdd
Clone the repo
git clone --depth 1 https://github.com/viknesh20-20/claude-code-tool-kit

Made for: Claude Code, Codex.

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/viknesh20-20/claude-code-tool-kit/tdd.svg)](https://agentmods.dev/skills/viknesh20-20/claude-code-tool-kit/tdd)
Your own site
<a href="https://agentmods.dev/skills/viknesh20-20/claude-code-tool-kit/tdd"><img src="https://agentmods.dev/badge/skills/viknesh20-20/claude-code-tool-kit/tdd.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 556 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00043 $0.00556
Opus 5 $0.00022 $0.00278
Sonnet 5 $0.00009 $0.00111
Haiku 4.5 $0.00004 $0.00056

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

.claude/skills/tdd/SKILL.md · 58 lines

What it actually says

Test-Driven Development

Detect Test Environment

!ls package.json pytest.ini pyproject.toml go.mod Cargo.toml *.csproj Gemfile mix.exs 2>/dev/null !find . -type f \( -name "*.test.*" -o -name "*.spec.*" -o -name "test_*" -o -name "*_test.*" \) -not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null | head -5


The TDD Cycle

For the requested feature, repeat this cycle until complete:

RED — Write a Failing Test

  1. Write the smallest possible test that describes the next piece of behavior
  2. The test must import/reference the function or module (even if it doesn't exist yet)
  3. Run the test — it MUST fail
  4. Verify the failure message is meaningful (not just a compilation error)

GREEN — Make It Pass

  1. Write the absolute minimum code to make the test pass
  2. Hardcoding is acceptable at this stage — it will be cleaned up in refactor
  3. Don't add functionality the test doesn't require
  4. Run the test — it MUST pass
  5. Run all related tests — nothing else should break

REFACTOR — Clean Up

  1. Remove duplication in both production and test code
  2. Improve naming, extract methods, simplify logic
  3. Run tests after every refactoring step — they must stay green
  4. Stop when the code is clean

Test Progression

Start simple, add complexity gradually:

  1. Null/empty/zero case
  2. Single item / simplest valid input
  3. Multiple items / typical case
  4. Edge cases / boundary values
  5. Error cases / invalid input
  6. Async / concurrent behavior (if applicable)

Output

  • Show each cycle clearly: RED (test code + failure), GREEN (impl + pass), REFACTOR
  • Display test runner output at each step
  • Final summary: all tests, coverage of the feature

Rules

  • NEVER write implementation before a failing test
  • NEVER skip the refactor step
  • One behavior per cycle — don't batch multiple features
  • If the test framework isn't set up, set it up first
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. 4d ago First seen · 58 lines · 43 tokens per session scan A b8ce4de9326c

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository viknesh20-20/claude-code-tool-kit (7 stars, last pushed 4mo ago), licensed MIT. It adds 43 tokens to every session and 556 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

interview

Ask one useful structured question at a time only when material product/implementation choices are genuinely missing; remember answers and produce a brief/spec. Discoverable facts should be investigated instead of asked.

Hmbown/CodeWhale · 40 tokens

beevibe-team-mesh-negotiation

Multi-round negotiation protocol — covers both initiator and peer roles. Use when about to call negotiate(), when receiving a intent block as a peer, or when receiving an 'escalated' sentinel from a blocked respondnegotiate. Covers proposal crafting, counter-strategy, deadlock detection, when to accept early…

beevibe-ai/beevibe · 112 tokens

suede-aso

Suede-owned app-store optimization discipline for keyword fields, titles, subtitles, descriptions, screenshots, ratings context, and competitor listing audits. Use when improving App Store or Google Play visibility or listing conversion from a live app URL and current console evidence. NOT FOR: building or releasing…

JasonColapietro/suede-creator-skills · 146 tokens

suede-copy

Suede Labs conversion-copy writer: landing sections, email, microcopy, buttons, headlines, CTAs, variants, and anti-slop edits. Use when asked to write or rewrite conversion copy for one surface in one pass — a hero, a button set, an email subject, a README section, a product blurb — or when copy on a single surface…

JasonColapietro/suede-creator-skills · 140 tokens

copywriting

When the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Also use when the user says "write copy for," "improve this copy," "rewrite this page," "marketing copy," "headline help," "CTA copy," "value…

stagewise-io/stagewise · 174 tokens

crest

Building engineer self-branding by turning technical contributions into a professional brand. Use for GitHub/LinkedIn/blog/conference positioning or content strategy.

simota/agent-skills · 31 tokens