gofer:tdd

gofer:tdd is a command for Claude Code from eai-support/eai-gofer. It costs 18 tokens per session (5,659 once invoked), scanned A, a copy of 10_gofer_cloud, Apache-2.0.

A command that guides test-driven development, or TDD: writing a failing test, making it pass, and then improving the code.

In plain words
What is it for?
Use it to build features through a red-green-refactor testing loop linked to stated requirements.
Why use it?
It ties implementation work to the feature’s acceptance criteria and provides a concrete way to check progress.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the eai-gofer plugin — 4 skills, 28 commands, 42 agents, 3 hooks, 1 MCP server shipped together

Good fit Use it to build features through a red-green-refactor testing loop linked to stated requirements.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/eai-support/eai-gofer/gofer_tdd
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/eai-support/eai-gofer

Made for: Claude Code.

Or install eai-gofer, the plugin that ships this one along with the rest of its 4 skills, 28 commands, 42 agents, 3 hooks, 1 MCP server.

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 gofer:tdd

README.md
[![agentmods](https://agentmods.dev/badge/commands/eai-support/eai-gofer/gofer_tdd/github.svg)](https://agentmods.dev/commands/eai-support/eai-gofer/gofer_tdd)
Your own site
<a href="https://agentmods.dev/commands/eai-support/eai-gofer/gofer_tdd"><img src="https://agentmods.dev/badge/commands/eai-support/eai-gofer/gofer_tdd/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 gofer:tdd

Your own site · 80×15
<a href="https://agentmods.dev/commands/eai-support/eai-gofer/gofer_tdd"><img src="https://agentmods.dev/badge/commands/eai-support/eai-gofer/gofer_tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,659 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 77% copy Near-identical to another mod 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.00018 $0.05659
Opus 5.5 $0.00007 $0.02264
Sonnet 5.5 $0.00004 $0.01132
Haiku 4.5 $0.00002 $0.00566

Measured 27d ago against content hash 03a000af39d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gofer:tdd 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 27d 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.

Origin

This is a copy

77% identical to 10_gofer_cloud — 602 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.specify/commands/gofer_tdd.md · 248 lines

How it starts

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

Gofer TDD

Continuation And Stop Contract

  1. Preserve the requested scope and mode, including read-only, plan-only, research-only and MVP work. Keep the full applicable pipeline, stage functions, artifacts, reviews and validation; do not expand an MVP into an unapproved release.
  2. After a stage's required evidence is complete, read and follow the next internal file in .specify/commands/ in the same conversation. Do not require a numbered command or a host-specific skill dispatcher. Optional helpers remain optional; maintenance and control commands do not start delivery work.
  3. Treat the stated business goal as authority for ordinary planning, task ordering, design, diagnosis, repair, testing, and reversible repository changes within scope. Record material Gofer decisions with their reason and effect. Do not ask the user to choose implementation details that Gofer can safely decide.
  4. Ask only when the goal is unclear or changes, the action is irreversible or destructive, it changes security or access, it creates external cost or commitment, it changes production or public exposure, it requires missing authority or credentials, or it conflicts with an explicit user constraint. Record the exact reason before asking. missing or ambiguous approval is not approval when an approval boundary applies. Rejected, revoked, changed or unclear authority requires a pause.
  5. Pause for material scope, security, cost, deployment, destructive or protected files/boundary changes and any outstanding user gate. A business goal does not authorize publishing, spending, external changes, or bypassing host permissions. Complete safe authorized work without bypassing the blocked gate.
  6. A tool proposal is not execution. If host consent is required, wait for it. After the tool result or approved proposal returns, inspect the result and resume the next authorized action within approved scope; do not end with only a plan or a proposed tool call. A denied tool or unavailable capability must not be bypassed through another host or CLI.
  7. Use the current agent's available native tools. Optional Gofer/MCP tools are conveniences, not prerequisites. If the current agent lacks a required capability, report that limitation and the safe next action; do not pretend a handoff button transfers control automatically.
  8. Stop after research only when research-only work was requested, the user paused, or a real gate blocks progress. Otherwise continue to specification. At validation, report completion only when the requested scope's required evidence passes; failures remain unfinished work.
  9. Respect budget, context and retry limits from the existing loop contract. Repair safe within-scope failures only within those limits. Preserve a checkpoint before an orderly context stop; resume by reading its recorded stage and rechecking scope, approvals and evidence. Never claim an abrupt host termination was handled.
  10. Report concise Progress during work. At every controlled stop, report Progress, Stop reason and Next action, including the exact missing input or approval and unfinished work. Reasons are requested scope complete, user pause, approval required, material change, missing capability/access, validation blocked, or budget/context/retry limit. Stage completion alone is not pipeline completion.

Read the full file on GitHub · 248 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. 27d ago Changed · +8 lines 03a000af39d3
  2. 1mo ago Changed · +4 lines 820766faa0a9
  3. 1mo ago Changed · -4 lines 59a84b769527
  4. 1mo ago Changed · +10 lines a035cd0a6a1f
  5. 1mo ago Changed 460d58bdd610
  6. 1mo ago Changed · +7 lines d7201dc29634
  7. 1mo ago Changed · +23 lines 88a02fdc0c19
  8. 1mo ago Changed · +16 lines ab76db295d2e
  9. 1mo ago First seen · 184 lines · 18 tokens per session scan A 3cb7af371d33

Subscribe to this mod's changes

gofer:tdd is a command published in the GitHub repository eai-support/eai-gofer (1 stars, last pushed today), licensed Apache-2.0. It adds 18 tokens to every session and 5,659 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 77% identical to 10_gofer_cloud, differing in 602 lines, and is treated as a copy.