tdd-guide

tdd-guide is an agent for Claude Code from mshadmanrahman/pm-pilot. It costs 29 tokens per session (360 once invoked), scanned A, original, MIT.

A test-first coding workflow based on TDD, or test-driven development. It writes a failing test, adds the smallest implementation that passes, then improves the code while keeping the tests passing.

In plain words
What is it for?
Use it when developing features or fixing bugs, especially when you need to add tests before implementation and check coverage of changed code.
Why use it?
It catches regressions while a feature or bug fix is being built. Writing a reproducing test first also confirms that a bug is fixed for the intended reason.

Agent for Claude Code

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

Part of the pm-dev plugin — 4 skills, 4 commands, 3 agents shipped together

Good fit Use it when developing features or fixing bugs, especially when you need to add tests before implementation and check coverage of changed code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mshadmanrahman/pm-pilot/tdd-guide
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.

Clone the repo
git clone --depth 1 https://github.com/mshadmanrahman/pm-pilot

Made for: Claude Code.

Or install pm-dev, the plugin that ships this one along with the rest of its 4 skills, 4 commands, 3 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/mshadmanrahman/pm-pilot/tdd-guide/github.svg)](https://agentmods.dev/agents/mshadmanrahman/pm-pilot/tdd-guide)
Your own site
<a href="https://agentmods.dev/agents/mshadmanrahman/pm-pilot/tdd-guide"><img src="https://agentmods.dev/badge/agents/mshadmanrahman/pm-pilot/tdd-guide/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 tdd-guide

Your own site · 80×15
<a href="https://agentmods.dev/agents/mshadmanrahman/pm-pilot/tdd-guide"><img src="https://agentmods.dev/badge/agents/mshadmanrahman/pm-pilot/tdd-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 360 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.00029 $0.00360
Opus 5.5 $0.00012 $0.00144
Sonnet 5.5 $0.00006 $0.00072
Haiku 4.5 $0.00003 $0.00036

Measured 1mo ago against content hash 321a5f42e273, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

plugins/pm-dev/agents/tdd-guide.md · 40 lines

What it actually says

TDD Guide Agent

Enforce test-driven development by running the RED-GREEN-IMPROVE loop. Dispatched by /tdd command.

Relationship to tdd-workflow skill: This agent enforces the loop. The tdd-workflow skill has the detailed procedure with framework-specific test commands. The agent calls on the skill's procedure when needed.

When to Use

  • Dispatched by /tdd command
  • Proactively when user starts implementing a feature without tests
  • Bug fixes (write reproducing test first)

Process

  1. RED: Write one failing test for the target behavior. Run it. Confirm FAIL.
  2. GREEN: Write minimal code to pass. Run it. Confirm PASS.
  3. IMPROVE: Refactor while keeping tests green. Run full suite.
  4. COVERAGE: Verify 80%+ on changed code. Add edge case tests if below.

See tdd-workflow skill for framework-specific test/coverage commands.

Rules

  • Never write implementation before the test.
  • One test at a time. Do not batch.
  • If stuck, write a simpler test first.
  • Fix implementation, not tests (unless test logic is wrong).
  • Do not mark task complete if coverage is below 80%.

Output

TDD Cycle: {feature}
RED:   {test file}:{test name} - FAILS
GREEN: {impl file} - PASSES
Coverage: {n}% ({above/below} 80%)
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 · 40 lines · 29 tokens per session scan A 321a5f42e273

Subscribe to this mod's changes

tdd-guide is an agent published in the GitHub repository mshadmanrahman/pm-pilot (22 stars, last pushed 17d ago), licensed MIT. It adds 29 tokens to every session and 360 once invoked, about $0.0001 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-30.

Related

Other agents, from other repositories

dev-tdd

TDD development with Red-Green-Refactor cycle, plus generating tests for existing code and setting up test infrastructure. Use to implement a feature by writing tests BEFORE the code, to back-fill a test suite on existing code, or to configure the test framework/coverage/CI. Trigger automatically when the user asks…

christopherlouet/claude-base · 118 tokens

backend-development-tdd-orchestrator

Master TDD orchestrator specializing in red-green-refactor discipline, multi-agent workflow coordination, and comprehensive test-driven development practices. Enforces TDD best practices across teams with AI-assisted testing and modern frameworks. Use PROACTIVELY for TDD implementation and governance.

wshobson/agents · 61 tokens

tdd-guide

An agent that guides test-driven development, or TDD: write a failing test, implement the smallest change that passes it, then clean up the code. It covers unit, integration, and end-to-end tests and examines edge cases.

sangrokjung/claude-forge · 110 tokens

prd-testability-judge

Evaluates PRD acceptance criteria testability and language precision.

closedloop-ai/claude-plugins · 17 tokens

symfony-tdd-coach

Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.

dev-toolings/superpowers-symfony · 58 tokens

tdd-guide

Test-Driven Development specialist enforcing write-tests-first methodology. Use PROACTIVELY when writing new features, fixing bugs, or refactoring code. Ensures 80%+ test coverage.

vibeeval/vibecosystem · 42 tokens