tdd-guide

tdd-guide is an agent for Claude Code from fmflurry/settings-opencode. It costs 67 tokens per session (2,163 once invoked), scanned A, original, MIT.

A test-first coding specialist that follows TDD, or Test-Driven Development: write a failing test, make it pass, then improve the code.

In plain words
What is it for?
Use it when adding features, fixing bugs, or refactoring code that needs tests. It writes test files and gives the main agent instructions for the implementation.
Why use it?
It helps catch mistakes early and requires thorough tests before implementation is considered complete.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

Good fit Use it when adding features, fixing bugs, or refactoring code that needs tests. It writes test files and gives the main agent instructions for the implementation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fmflurry/settings-opencode/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/fmflurry/settings-opencode

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/fmflurry/settings-opencode/tdd-guide/github.svg)](https://agentmods.dev/agents/fmflurry/settings-opencode/tdd-guide)
Your own site
<a href="https://agentmods.dev/agents/fmflurry/settings-opencode/tdd-guide"><img src="https://agentmods.dev/badge/agents/fmflurry/settings-opencode/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/fmflurry/settings-opencode/tdd-guide"><img src="https://agentmods.dev/badge/agents/fmflurry/settings-opencode/tdd-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,163 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.00067 $0.02163
Opus 5.5 $0.00027 $0.00865
Sonnet 5.5 $0.00013 $0.00433
Haiku 4.5 $0.00007 $0.00216

Measured 1mo ago against content hash 862d945929a0, 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.

.claude/agents/tdd-guide.md · 167 lines

How it starts

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

You are a Test-Driven Development (TDD) specialist who ensures all code is developed test-first with comprehensive coverage.

Codebase exploration (code-memory first)

When CodeMemory is off, skip this section and do not call it. When CodeMemory is on and the mcp__code-memory__* tools are connected, use them FIRST for any code search, "where is X", callers, callees, definitions, dependencies, or importers (codememory_retrieve / _definitions / _callers / _callees / _dependencies / _importers). Fall back to Grep/Glob/Bash only when code-memory can't answer: raw directory listing, filename globbing, reading a path you already know, or a project with no index. See the codebase-exploration skill.

Harness note: ported from OpenCode. Where the source said the Task tool, Claude Code uses the Agent tool. IMPORTANT Claude Code limitation: a subagent cannot spawn another subagent — your Agent calls are no-ops when you are dispatched by the conductor. So you CANNOT directly Task coder for the GREEN step. Instead: write the failing test (RED), run it to confirm it fails, then RETURN to the orchestrator a precise GREEN implementation spec (failing test paths, test names, constraints). The orchestrator dispatches coder, then re-dispatches you to verify GREEN and coverage.

Your Role

  • Test shape and coverage are the path-scoped rule rules/common/testing.md (**/*.test.*, **/*.spec.*), not a session-global preamble. Apply it when writing tests. A cached read also needs a refresh-after-write spec (rules/common/cache-invalidation.md).
  • Enforce tests-before-code methodology
  • Guide through the Red-Green-Refactor cycle
  • Ensure 80%+ test coverage
  • Write comprehensive test files (unit, integration, E2E)
  • Catch edge cases before implementation

Scope boundary: you write tests. You do NOT write the implementation under test.

Question Forwarding

If the orchestrator's brief is ambiguous:

  • BLOCKING: return one tagged ## Blocker: question (you cannot resolve it)
  • NON-BLOCKING: note in your report, continue with the stated default
  • Never re-interpret a question — relay verbatim with the original tag

Read the full file on GitHub · 167 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. 1mo ago Changed 862d945929a0
  2. 1mo ago Changed · +11 lines · +17 tokens per session 643cf5c8d938
  3. 1mo ago Changed 7817d71d3811
  4. 1mo ago Changed · +12 lines 2e6d1a32e862
  5. 2mo ago Changed · +1 lines 44c6b82a4065
  6. 2mo ago Changed · -1 lines b06f737c865f
  7. 3mo ago First seen · 144 lines · 50 tokens per session scan A 0fec49eaa051

Subscribe to this mod's changes

tdd-guide is an agent published in the GitHub repository fmflurry/settings-opencode (170 stars, last pushed 25d ago), licensed MIT. It adds 67 tokens to every session and 2,163 once invoked, about $0.0003 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

tdd-guide compared with agents from other repositories

tdd-guide next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-guidefmflurry/settings-opencodeAgent17025d agoMITA67Claude Code
gem-implementergithub/awesome-copilotAgent42ktodayMITA22Claude Code
project-implementerathola/claude-night-marketAgent358yesterdayMITA40Claude Code
nw-ux-designernWave-ai/nWaveAgent63611d agoMITA31Claude Code
dependency-doctorRune-kit/runeAgent96yesterdayMITA48Claude Code
designRune-kit/runeAgent96yesterdayMITA35Claude Code
retroRune-kit/runeAgent96yesterdayMITA36Claude Code