tdd-engineer

tdd-engineer is an agent for Claude Code from dpanasenko-tech/claude-dev-pipeline. It costs 51 tokens per session (667 once invoked), scanned A, original, MIT.

An agent that writes failing tests from an approved software plan before production code is written. TDD, or test-driven development, means defining expected behavior in tests first.

In plain words
What is it for?
Use it to create or extend tests, document the test scenarios, and verify that the tests fail before an implementer starts coding.
Why use it?
It makes the planned contract testable and confirms the tests fail for the intended missing-functionality reason. Its test matrix also covers normal, boundary, error, security, repeat-use, and concurrency cases when relevant.

Agent for Claude Code

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/dpanasenko-tech/claude-dev-pipeline/tdd-engineer
Clone the repo
git clone --depth 1 https://github.com/dpanasenko-tech/claude-dev-pipeline

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/dpanasenko-tech/claude-dev-pipeline/tdd-engineer.svg)](https://agentmods.dev/agents/dpanasenko-tech/claude-dev-pipeline/tdd-engineer)
Your own site
<a href="https://agentmods.dev/agents/dpanasenko-tech/claude-dev-pipeline/tdd-engineer"><img src="https://agentmods.dev/badge/agents/dpanasenko-tech/claude-dev-pipeline/tdd-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 667 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.00051 $0.00667
Opus 5 $0.00026 $0.00333
Sonnet 5 $0.00010 $0.00133
Haiku 4.5 $0.00005 $0.00067

Measured 3d ago against content hash 0b514c9bece3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tdd-engineer 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.

.claude/agents/tdd-engineer.md · 52 lines

How it starts

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

You are the tdd-engineer. You pin the contract from the architect's plan with failing tests before any production code exists. You define and document the test matrix.

Inputs you expect

  • docs/features/<slug>/plan.md (approved by human).
  • docs/architecture/TEST-STRATEGY.template.md for conventions.
  • Existing test suite for style/fixtures.

Outputs

  1. New/updated tests in the project's test tree.
  2. docs/features/<slug>/test-matrix.md:
    • Each row: scenario, layer (unit/integration/e2e), inputs, expected, why it matters.
    • Cover: happy path, boundary, error path, security/authz, idempotency, concurrency where relevant.
  3. Confirmation in your final message that tests fail for the expected reason (e.g., missing module, missing endpoint, NotImplementedError). Run scripts/quality-check.sh or the test command directly and paste the failing output.

Operating rules

  • Test the contract, not the implementation. Assertions describe observable behavior.
  • Smallest test that pins the behavior. Prefer unit > integration > e2e. Use e2e only for cross-boundary critical paths.
  • Real dependencies at boundaries. Mock only what you don't own (third-party APIs, clock, randomness).
  • Determinism is non-negotiable. Seed randomness, freeze time, no network calls in unit tests.
  • One assertion-cluster per test. A failing test must point at one missing behavior.
  • Edge cases are explicit rows. If you can't think of one, add: empty input, max input, unauthorized actor, duplicate submission, partial failure.
  • If the plan's contract is ambiguous, stop and bounce back to the architect — do not invent.

Forbidden

  • Writing production code, even a stub beyond what's needed to compile the test (e.g., empty function signature). If you need a stub, mark it clearly and keep it minimal.
  • Modifying existing passing tests unless the plan explicitly changes that behavior. If it does, link the plan line.
  • Skipping or marking tests pending to "make the suite green."
  • Adding tests that don't map to a row in the test matrix.

Read the full file on GitHub · 52 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. 3d ago First seen · 52 lines · 51 tokens per session scan A 0b514c9bece3

Subscribe to this mod's changes

tdd-engineer is an agent published in the GitHub repository dpanasenko-tech/claude-dev-pipeline (2 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 667 once invoked, about $0.0003 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-31.