test-driven-development

test-driven-development is a skill for Claude Code, Codex from oleg494/coding-kit. It costs 50 tokens per session (1,201 once invoked), scanned A, original, MIT.

A test-driven development guide, where you write a failing test before the code, make it pass, and then clean up the implementation. TDD is a way to use tests as evidence that code changes work.

In plain words
What is it for?
Implementing logic, fixing bugs, changing existing behavior, and verifying refactoring with automated tests.
Why use it?
It reduces guesswork when adding behavior or fixing bugs by requiring the problem to be reproduced and the result to be checked.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Implementing logic, fixing bugs, changing existing behavior, and verifying refactoring with automated tests.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/oleg494/coding-kit/test-driven-development/github.svg)](https://agentmods.dev/skills/oleg494/coding-kit/test-driven-development)
Your own site
<a href="https://agentmods.dev/skills/oleg494/coding-kit/test-driven-development"><img src="https://agentmods.dev/badge/skills/oleg494/coding-kit/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/oleg494/coding-kit/test-driven-development"><img src="https://agentmods.dev/badge/skills/oleg494/coding-kit/test-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,201 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.00050 $0.01201
Opus 5.5 $0.00020 $0.00480
Sonnet 5.5 $0.00010 $0.00240
Haiku 4.5 $0.00005 $0.00120

Measured 2d ago against content hash bda79d043f1b, 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 2d 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.

.agents/skills/test-driven-development/SKILL.md · 98 lines

How it starts

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

Test-Driven Development

Overview

Define acceptance and a behavior check before implementation. For bug fixes, reproduce the failure where reproduction is needed for diagnosis or regression defense; a user-supplied failure report is ground truth for the symptom, and prior failure evidence remains valid for an unchanged state. Show the reproduction (or the valid prior evidence) passes after the fix. Existing contract tests, isolated smoke probes and actual rendered UI checks can provide appropriate evidence; a permanent test must defend a plausible failure. State explicitly when reproduction is unavailable rather than claiming an unrun one.

The TDD Cycle

    RED                GREEN              REFACTOR
 Write a test    Write minimal code    Clean up the
 that fails  ──→  to make it pass  ──→  implementation  ──→  (repeat)
      │                  │                    │
      ▼                  ▼                    ▼
   Test FAILS        Test PASSES        Tests still PASS

Step 1: RED — Write a Failing Test

For a bug or new missing behavior, observe the check fail for the intended reason before the fix — freshly, or by reusing prior failure evidence valid for the unchanged state. A passing check can establish existing behavior, but cannot establish that it reproduced the reported bug; a user-supplied failure report is ground truth for the symptom. Do not manufacture failures in unrelated behavior.

Step 2: GREEN — Make It Pass

Write the smallest correct implementation of the full request, not just the subset exercised by the current test. Don't over-engineer or drop acceptance criteria.

GREEN is Two Claims: Targeted and Suite

A green run of the check you wrote (targeted green) is not the same claim as the project's checks passing on your final state (suite green). Both are evidence, at different scopes:

  • Targeted green (always): the behavior check for this task passes after the change.
  • Suite green (scaled to risk, per OPS §3): applicable existing checks pass on the final state. Run the affected suite(s) — not only your file — when the change touches shared code, public contracts or an exposed failure, or when a named concern requests it; a self-contained change with a scoped probe may not need the full project suite. Reuse valid prior evidence instead of rerunning when state, command and environment are unchanged.
  • Reporting failures: name every failure you observed, including preexisting ones you did not cause. A red check watched scrolling past and left unmentioned is a report falsified by omission. Distinguish "caused by this change" from "present before" when you know, and say when you don't.

Read the full file on GitHub · 98 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. 2d ago Changed · +9 lines bda79d043f1b
  2. 8d ago Changed f4d81c6f21f9
  3. 11d ago Changed 8fb7215f04e6
  4. 25d ago Changed 14771f311546
  5. 26d ago Changed 7e5f2847a967
  6. 1mo ago Changed abae8506a446
  7. 1mo ago Changed · +1 lines f39423377a59
  8. 1mo ago Changed 355515b9d429
  9. 1mo ago Changed a0ee4ef2291e
  10. 1mo ago First seen · 88 lines · 50 tokens per session scan A be5dab2badb2

Subscribe to this mod's changes

test-driven-development is a skill published in the GitHub repository oleg494/coding-kit (3 stars, last pushed 2d ago), licensed MIT. It adds 50 tokens to every session and 1,201 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-08-31.