test-driven-development

test-driven-development is a skill for Claude Code, Codex from Plazmodium/odin-workflow. It costs 25 tokens per session (341 once invoked), scanned A, original, MIT.

A test-first workflow for changing program behavior: write a failing test, make it pass, then improve the code. TDD means test-driven development.

In plain words
What is it for?
Use it to write behavior-focused tests for new logic and bugs, starting with small unit tests and adding broader integration or end-to-end tests when needed.
Why use it?
It helps catch regressions and proves that a bug fix or logic change works, instead of relying only on manual checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to write behavior-focused tests for new logic and bugs, starting with small unit tests and adding broader integration or end-to-end tests when needed.

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

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/plazmodium/odin-workflow/test-driven-development.svg)](https://agentmods.dev/skills/plazmodium/odin-workflow/test-driven-development)
Your own site
<a href="https://agentmods.dev/skills/plazmodium/odin-workflow/test-driven-development"><img src="https://agentmods.dev/badge/skills/plazmodium/odin-workflow/test-driven-development.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 341 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.00025 $0.00341
Opus 5 $0.00013 $0.00170
Sonnet 5 $0.00005 $0.00068
Haiku 4.5 $0.00003 $0.00034

Measured 3d ago against content hash 3738f577ab65, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 3d 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/workflow/test-driven-development/SKILL.md · 45 lines

What it actually says

test-driven-development

When To Use

  • Implementing behavior, fixing bugs, or changing logic.
  • A regression needs to stay fixed.
  • Existing tests do not cover the acceptance criteria.

Workflow

  1. Identify the behavior that must be proven.
  2. Write the smallest failing test first when practical.
  3. Run it and confirm it fails for the expected reason.
  4. Write the minimum code needed to pass.
  5. Run the focused test and then the smallest relevant broader check.
  6. Refactor only with tests green.
  7. Prefer the test pyramid: mostly unit, some integration, few end-to-end.
  8. Keep tests DAMP: readable as specifications, even with some duplication.

Anti-Rationalization

Excuse Rebuttal
"I'll write tests later." Later is where tests disappear. Write the proving test now.
"This is just plumbing." Infrastructure changes can break behavior and need proof.
"Mocks are enough." Mock-heavy tests can prove implementation details, not behavior.
"The UI looked fine once." Manual observation is useful evidence, not a replacement for durable tests.

Verification

  • The test fails before the fix when feasible.
  • The test passes after the fix.
  • The test asserts user-visible or domain behavior, not incidental structure.

Exit Criteria

  • Correct behavior is protected by an appropriate test or a clearly justified verification alternative.
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. 3d ago First seen · 45 lines · 25 tokens per session scan A 3738f577ab65

Subscribe to this mod's changes

test-driven-development is a skill published in the GitHub repository Plazmodium/odin-workflow (0 stars, last pushed 3mo ago), licensed MIT. It adds 25 tokens to every session and 341 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-09-03.

Related

Other skills, from other repositories

orch-tdd

Use when implementing a feature via test-driven development - write a failing test first, get to green with the smallest correct change, then refactor. Enforces vertical slice shape and red-commit-hash evidence.

mattmre/EVOKORE-MCP-PUBLIC · 46 tokens

aep-framework

Agile Engineering Process (Align-Execute-Prove) methodology with phase planning, test matrices, and evaluation harnesses.

mattmre/EVOKORE-MCP-PUBLIC · 27 tokens

testing

TDD/BDD testing principles. Use when writing tests, reviewing test coverage, setting up testing, or discussing test strategy and test architecture.

TheBeardedBearSAS/claude-craft · 30 tokens

tdd-workflow

Drive implementation through a test-first loop: write a failing test, make it pass with the simplest change, then refactor under a green suite. Use when the user asks for TDD or test-driven development, wants tests written before the code, is adding behaviour to code that has tests, is fixing a bug and wants a…

personamanagmentlayer/pcl · 97 tokens

load-test-ops

Trigger, monitor, update, profile, and stop Camunda load tests using gh CLI and kubectl directly — no MCP server required.

camunda/camunda · 31 tokens

absolute-work

End-to-end, phase-gated SDLC for AI coding agents: relentless design interview → reviewed spec → dependency-graphed task board → safe-wave TDD execution → verification → converge. Handles features, bugs, refactors, greenfield projects, planning breakdowns, and migrations. Triggers on "absolute work", "build this…

maddhruv/absolute · 104 tokens