tdd-guide

tdd-guide is an agent for coding agents 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

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

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.

agentmods
npx agentmods add agents/mshadmanrahman/pm-pilot/tdd-guide
Clone the repo
git clone --depth 1 https://github.com/mshadmanrahman/pm-pilot

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00029 $0.00360
Opus 5 $0.00015 $0.00180
Sonnet 5 $0.00006 $0.00072
Haiku 4.5 $0.00003 $0.00036

Measured 4d ago against content hash 321a5f42e273, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (19 stars, last pushed 14d ago), licensed MIT. It adds 29 tokens to every session and 360 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.

Related

Other agents, from other repositories

hyperledger-fabric-developer

Develop enterprise blockchain solutions with Hyperledger Fabric v2.5 LTS and v3.x. Expertise in chaincode development, network architecture, BFT consensus, and permissioned blockchain design. Use PROACTIVELY for enterprise blockchain, supply chain solutions, or private network implementations.

davepoon/buildwithclaude · 63 tokens

agent-reviewer

Senior Technical Lead and Security Auditor specializing in code quality, correctness, and security audits.

guanyang/open-agent-hub · 21 tokens

executor

Specialized agent for executing implementation plans. Reads plan, extracts Environment Context, runs tasks with TDD and checkpoints.

datit309/supergraph · 25 tokens

resume

Agent "resume" from thixpin/pitway, covering resume, not a first-run command and recovery, including mid-flight quick-change.

thixpin/pitway · 28 tokens

due-diligence-lead

Due diligence specialist who validates assumptions, identifies risks, and stress-tests business claims. Use this skill when someone needs due diligence, risk assessment, assumption validation, says things like 'stress test my business', 'validate my assumptions', 'due diligence', 'red flags', 'risk assessment', 'is…

NOMARJ/sigil · 121 tokens

growth-strategist

Executes growth tactics for a specific product based on its GTM spec. Reads the GTM spec first, then takes one growth action (content, outreach, launch, metrics review). Does not re-derive strategy — that's gtm-architect's job. Use for weekly growth execution work.

NOMARJ/sigil · 64 tokens