test-driven-development

test-driven-development is a skill for Claude Code from Vimalk0703/shipworthy. It costs 55 tokens per session (2,135 once invoked), scanned A, original, MIT.

A testing approach that writes a failing test before the production code for important changes, then checks and improves the code. It adjusts how strictly it tests based on the task and user needs.

In plain words
What is it for?
It is for building and checking meaningful code changes with tests, including success and failure cases, while reporting verification in plain outcome-focused language.
Why use it?
It catches broken business logic, authentication, payments, data changes, APIs, and calculations before they reach users, without adding unnecessary ceremony to trivial work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the shipworthy plugin — 66 skills, 7 commands, 3 hooks shipped together

Good fit It is for building and checking meaningful code changes with tests, including success and failure cases, while reporting verification in plain outcome-focused language.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vimalk0703/shipworthy/test-driven-development
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 Vimalk0703/shipworthy --skill test-driven-development
Clone the repo
git clone --depth 1 https://github.com/Vimalk0703/shipworthy

Made for: Claude Code.

Or install shipworthy, the plugin that ships this one along with the rest of its 66 skills, 7 commands, 3 hooks.

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 test-driven-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/vimalk0703/shipworthy/test-driven-development/github.svg)](https://agentmods.dev/skills/vimalk0703/shipworthy/test-driven-development)
Your own site
<a href="https://agentmods.dev/skills/vimalk0703/shipworthy/test-driven-development"><img src="https://agentmods.dev/badge/skills/vimalk0703/shipworthy/test-driven-development/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 test-driven-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/vimalk0703/shipworthy/test-driven-development"><img src="https://agentmods.dev/badge/skills/vimalk0703/shipworthy/test-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,135 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.00055 $0.02135
Opus 5.5 $0.00022 $0.00854
Sonnet 5.5 $0.00011 $0.00427
Haiku 4.5 $0.00006 $0.00214

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

Security

Grade A, and why

test-driven-development 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 1mo 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/quality/test-driven-development/SKILL.md · 218 lines

How it starts

The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Test-Driven Development

The Iron Rule

NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST — for code that matters.

This rule applies absolutely to: business logic, authentication, payments, data mutations, API endpoints, and calculations. No exceptions, no matter who's asking or how small the change seems.

For everything else, the approach adapts to the situation.


Tier-Adapted Testing Modes

Invisible TDD (Builder-Tier Users)

Builder-tier users care that things work, not how you verified they work. When working with Builder-tier users:

Do this:

  • Write tests. Always write tests for anything meaningful.
  • Run them. Make sure they pass.
  • Report results in outcome language: "I built the payment flow and verified it works correctly — handles successful charges, declined cards, and network errors."
  • If something breaks, say: "I found an issue with how refunds were handled and fixed it."

Don't do this:

  • "I wrote 3 failing tests to establish the RED state..."
  • "Achieved GREEN state on all test cases..."
  • "Now entering the REFACTOR phase..."
  • "Test coverage is at 87.3% across 12 test suites..."

The tests still exist. The discipline still happens. The user just doesn't need a play-by-play of your testing methodology. They need to know their product works.

How to report:

Instead of Say
"Wrote 5 unit tests for the auth module" "Built the login system and verified it handles email/password, Google sign-in, and invalid credentials correctly"
"RED: 3 failing tests for payment processing" "Working on the payment flow now"
"All 12 tests passing, 94% coverage" "Payment processing is working — tested with successful charges, declines, and edge cases"
"Added regression test for bug #234" "Fixed the bug and made sure it won't come back"

Pragmatic TDD (Quick Fixes, Any Tier)

Some changes don't need formal TDD. Applying RED-GREEN-REFACTOR to a CSS color change is like wearing a hard hat to check the mailbox.

Read the full file on GitHub · 218 lines

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. 1mo ago First seen · 218 lines · 55 tokens per session scan A 764272f2d090

Subscribe to this mod's changes

test-driven-development is a skill published in the GitHub repository Vimalk0703/shipworthy (6 stars, last pushed 6mo ago), licensed MIT. It adds 55 tokens to every session and 2,135 once invoked, about $0.0002 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-09-03.