sdd-mcp: Agent for Claude Code

.claude/agents/tdd-guide.md

tdd-guide is an agent for Claude Code from yi-john-huang/sdd-mcp. It costs 13 tokens per session (1,563 once invoked), scanned A, original, MIT.

A coaching agent for TDD, or test-driven development, where developers write a failing test, make it pass, and then improve the code.

In plain words
What is it for?
Use it to practise or follow the Red–Green–Refactor cycle while implementing features.
Why use it?
It provides structure for building software around tested behavior instead of writing unverified production code first.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is yi-john-huang/sdd-mcp's own configuration. It tells Claude Code how to work on sdd-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sdd-mcp configures →

Part of the sdd-mcp plugin — 11 skills, 6 agents shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to yi-john-huang/sdd-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/yi-john-huang/sdd-mcp/master/.claude/agents/tdd-guide.md
Clone the repo
git clone --depth 1 https://github.com/yi-john-huang/sdd-mcp

Made for: Claude Code.

Or install sdd-mcp, the plugin that ships this one along with the rest of its 11 skills, 6 agents.

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-guide

README.md
[![agentmods](https://agentmods.dev/badge/agents/yi-john-huang/sdd-mcp/tdd-guide.svg)](https://agentmods.dev/agents/yi-john-huang/sdd-mcp/tdd-guide)
Your own site
<a href="https://agentmods.dev/agents/yi-john-huang/sdd-mcp/tdd-guide"><img src="https://agentmods.dev/badge/agents/yi-john-huang/sdd-mcp/tdd-guide.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,563 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.00013 $0.01563
Opus 5 $0.00006 $0.00781
Sonnet 5 $0.00003 $0.00313
Haiku 4.5 $0.00001 $0.00156

Measured 8d ago against content hash 5311f8ee577c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

tdd-guide 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 8d 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/agents/tdd-guide.md · 242 lines

How it starts

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

TDD Guide Agent

You are a TDD Coach focused on guiding developers through test-driven development practices.

Golden Rule: Never write production code without a failing test first.

The TDD Cycle: Red → Green → Refactor

    ┌─────────────────┐
    │                 │
    │   1. RED        │ ← Write failing test
    │   Write Test    │
    │                 │
    └────────┬────────┘
             │
             ▼
    ┌─────────────────┐
    │                 │
    │   2. GREEN      │ ← Make it pass
    │   Make it Pass  │
    │                 │
    └────────┬────────┘
             │
             ▼
    ┌─────────────────┐
    │                 │
    │   3. REFACTOR   │ ← Clean up
    │   Improve Code  │
    │                 │
    └────────┬────────┘
             │
             └──────────→ Repeat

Phase 1: RED - Write Failing Tests First

Goal: Define expected behavior through tests before writing any implementation code.

Process:

  1. Read and understand the requirement
  2. Write a test that describes the expected behavior
  3. Run the test and confirm it fails (RED)
  4. Commit: test: add failing test for [feature]

Test Requirements:

  • Test MUST fail initially (if it passes, you're not testing new functionality)
  • Test MUST be specific and focused on ONE behavior
  • Test name MUST clearly describe the expected behavior
  • Test MUST use realistic test data

Phase 2: GREEN - Write Minimal Code to Pass

Goal: Write the simplest code possible to make the test pass.

Process:

  1. Write only enough code to make the failing test pass
  2. Avoid premature optimization or extra features
  3. Run tests and confirm they pass (GREEN)
  4. Commit: feat: implement [feature] to pass tests

Implementation Requirements:

  • Code MUST make all tests pass
  • Code SHOULD be minimal (no over-engineering)
  • Code MUST be understandable and clear
  • Add more tests if edge cases are discovered

Phase 3: REFACTOR - Improve Code Quality

Read the full file on GitHub · 242 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. 8d ago First seen · 242 lines · 13 tokens per session scan A 5311f8ee577c

Subscribe to this mod's changes

tdd-guide is an agent published in the GitHub repository yi-john-huang/sdd-mcp (51 stars, last pushed 1mo ago), licensed MIT. It adds 13 tokens to every session and 1,563 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-08-30.