tdd

tdd is a command for Claude Code from severity1/claude-agent-sdk-go. It costs 13 tokens per session (5,455 once invoked), scanned A, original, MIT.

An automated test-driven development (TDD) workflow for GitHub issues. TDD means writing checks for expected behavior as part of developing a change.

In plain words
What is it for?
Use it to work through a GitHub issue, verify the Go development environment, check for dependencies and duplicate pull requests, and maintain compatibility with a related Python software development kit.
Why use it?
It checks the repository, issue, dependencies, and related pull requests before development, then uses quality checks to reduce avoidable mistakes.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; names the ExitPlanMode tool.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is ./examples/... ./internal/....

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/severity1/claude-agent-sdk-go/tdd.svg)](https://agentmods.dev/commands/severity1/claude-agent-sdk-go/tdd)
Your own site
<a href="https://agentmods.dev/commands/severity1/claude-agent-sdk-go/tdd"><img src="https://agentmods.dev/badge/commands/severity1/claude-agent-sdk-go/tdd.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 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,455 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.1 $0.00013 $0.05455
Opus 5 $0.00006 $0.02728
Sonnet 5 $0.00003 $0.01091
Haiku 4.5 $0.00001 $0.00545

Measured 6d ago against content hash 3b028f3b32f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tdd scanned grade A with 1 finding 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Fetch official documentation** using `curl -s https://platform.claude.com/docs/en/agent-sdk/python.md` for public API signatures if helpful
.claude/commands/tdd.md · 454 lines

How it starts

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

TDD Development Cycle

Execute complete TDD workflow for GitHub issue #$ARGUMENTS with built-in quality gates and Python SDK parity checks.

Phase 1: Pre-flight Checks

Verify the development environment is ready:

  1. Check working directory status - Ensure no uncommitted changes exist
  2. Verify current branch - Should be on main branch
  3. Pull latest changes - Run git pull to sync with remote
  4. Check for existing PRs - Search for open PRs linked to issue #$ARGUMENTS to avoid duplicate work
  5. Verify Go environment - Run go version and ensure toolchain is available
  6. Sync Python SDK - Run git -C ../claude-agent-sdk-python pull origin main to ensure local Python SDK reference is current
  7. Check for blocking dependencies - Read issue body and look for "Depends on" or "Blocked by" sections

STOP and report to user if any check fails - Don't proceed until issues are resolved.


Phase 2: Issue Validation

Retrieve and analyze issue #$ARGUMENTS:

  1. Fetch issue details - Get title, body, labels, milestone, state via gh issue view
  2. Read all comments - Check for additional context or decisions made
  3. Validate issue completeness - Check if issue contains:
    • Summary or description of the feature/fix
    • Proposed Implementation section (most issues have this)
    • Files to Modify section
    • Example Usage (if applicable)

If incomplete: Report gaps to user and ask if should proceed anyway. If complete: Display issue summary and continue.


Phase 3: Discovery & Planning

Enter plan mode for this entire phase. Call EnterPlanMode at the start of Phase 3 so all discovery, design decisions, and parity tradeoffs are captured as a plan the user approves before any code is written. The phase ends with ExitPlanMode at the Critical Checkpoint below. If already in plan mode, EnterPlanMode is a no-op — proceed.

Design Principle: Two Co-Equal Parity Gates

This work passes through two co-equal mandatory gates. Both must pass. Neither compensates for the other:

Read the full file on GitHub · 454 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. 6d ago First seen · 454 lines · 13 tokens per session scan A 3b028f3b32f2

Subscribe to this mod's changes

tdd is a command published in the GitHub repository severity1/claude-agent-sdk-go (170 stars, last pushed 2mo ago), licensed MIT. It adds 13 tokens to every session and 5,455 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.