test-driven-development

test-driven-development is a skill for Claude Code, Codex from Bbeierle12/Skill-MCP-Claude. It costs 35 tokens per session (658 once invoked), scanned A, original, MIT.

A strict Test-Driven Development workflow. TDD means writing a failing automated test first, making it pass with the smallest change, and then improving the code.

In plain words
What is it for?
Use it while adding features or fixing bugs to follow the RED-GREEN-REFACTOR cycle and keep tests passing.
Why use it?
It makes expected behavior explicit before implementation and helps prevent unverified code changes.

Skill for Claude CodeCodex

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

Good fit Use it while adding features or fixing bugs to follow the RED-GREEN-REFACTOR cycle and keep tests passing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bbeierle12/skill-mcp-claude/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 Bbeierle12/Skill-MCP-Claude --skill test-driven-development
Clone the repo
git clone --depth 1 https://github.com/Bbeierle12/Skill-MCP-Claude

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/bbeierle12/skill-mcp-claude/test-driven-development/github.svg)](https://agentmods.dev/skills/bbeierle12/skill-mcp-claude/test-driven-development)
Your own site
<a href="https://agentmods.dev/skills/bbeierle12/skill-mcp-claude/test-driven-development"><img src="https://agentmods.dev/badge/skills/bbeierle12/skill-mcp-claude/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/bbeierle12/skill-mcp-claude/test-driven-development"><img src="https://agentmods.dev/badge/skills/bbeierle12/skill-mcp-claude/test-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 658 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00035 $0.00658
Opus 5 $0.00017 $0.00329
Sonnet 5 $0.00007 $0.00132
Haiku 4.5 $0.00003 $0.00066

Measured 9d ago against content hash 4883e08f12a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 9d 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/test-driven-development/SKILL.md · 96 lines

How it starts

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

Test-Driven Development

The Iron Law of TDD

Write code before test? Delete it. Start over.

This is not negotiable. This is not optional. You cannot rationalize your way out of this.

The RED-GREEN-REFACTOR Cycle

1. RED - Write a Failing Test First

  • Write the smallest test that fails for the right reason
  • The test should fail because the feature doesn't exist yet
  • Run the test and verify it fails

2. GREEN - Make It Pass (Minimum Code)

  • Write the minimum code to make the test pass
  • Don't write more than necessary
  • Don't optimize yet
  • Don't refactor yet

3. REFACTOR - Improve the Code

  • Now you can clean up
  • Remove duplication
  • Improve naming
  • Extract methods/functions
  • All tests must still pass after refactoring

Forbidden Rationalizations

If you catch yourself thinking ANY of these, STOP:

  • "This is just a simple function" → WRONG. Simple functions need tests.
  • "I'll write tests after" → WRONG. That's not TDD.
  • "Let me just get it working first" → WRONG. Tests first.
  • "This doesn't need a test" → WRONG. Everything needs tests.
  • "I'll test it manually" → WRONG. Write automated tests.
  • "The test is obvious" → WRONG. Write it anyway.
  • "I'm just exploring" → WRONG. Explore with tests.

Test Quality Guidelines

Good Tests Are:

  • Fast - Tests should run in milliseconds
  • Isolated - No dependencies between tests
  • Repeatable - Same result every time
  • Self-validating - Pass or fail, no interpretation
  • Timely - Written before the code

Test Structure (Arrange-Act-Assert):

// Arrange - Set up the test conditions
const input = createTestInput();

// Act - Execute the code under test
const result = functionUnderTest(input);

// Assert - Verify the expected outcome
expect(result).toBe(expectedValue);

When to Use This Skill

  • Starting any new feature
  • Fixing any bug (write a test that reproduces the bug first)
  • Refactoring existing code (ensure tests exist first)
  • Any code change that could break existing functionality

Read the full file on GitHub · 96 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 96 lines · 35 tokens per session scan A 4883e08f12a3

Subscribe to this mod's changes

test-driven-development is a skill published in the GitHub repository Bbeierle12/Skill-MCP-Claude (8 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 658 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-09-03.