tdd

tdd is a command for Claude Code from juanmhidalgo/claude-plugins. It costs 35 tokens per session (6,042 once invoked), scanned A, original, MIT.

A command for implementing a feature or bug fix with a test-first workflow. It can use an existing feature plan or ask for a clear specification before proceeding.

In plain words
What is it for?
Use it to select or resolve a feature plan, explore the relevant code, and run bounded TDD work for the change.
Why use it?
It makes the requirements and test plan explicit before coding and stops when the repository or specification is not ready.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the feature-dev plugin — 2 skills, 8 commands, 13 agents shipped together

Good fit Use it to select or resolve a feature plan, explore the relevant code, and run bounded TDD work for the change.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add juanmhidalgo/claude-plugins
Claude Code
/plugin install feature-dev

Made for: Claude Code.

Or install feature-dev, the plugin that ships this one along with the rest of its 2 skills, 8 commands, 13 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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/tdd"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,042 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.00035 $0.06042
Opus 5.5 $0.00014 $0.02417
Sonnet 5.5 $0.00007 $0.01208
Haiku 4.5 $0.00003 $0.00604

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

Security

Grade A, and why

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 17d 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.

feature-dev/commands/tdd.md · 231 lines

How it starts

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

Context

  • Repository: !git remote get-url origin
  • Current branch: !git branch --show-current
  • Working tree clean: !git status --short
  • Feature spec: $ARGUMENTS
  • Arguments: !bash "${CLAUDE_PLUGIN_ROOT}/scripts/args.sh" '$ARGUMENTS'
  • Feature store: each feature lives in .feature-dev/features/<slug>/, managed by ${CLAUDE_PLUGIN_ROOT}/scripts/features.py (every call below passes --root <repo root>). Run progress is recorded there with step, never by editing a file. Layout: artifact-locations.md.

Phase 0: Resolve Spec and Validate

First, read the flags from the Arguments JSON in Context. --coordinator <session-name> is a flag the parser does not know: when positional holds --coordinator, the token after it is the session name; remove both. What remains of positional, joined with spaces, is the feature spec, and it may be empty, which is the normal auto-discovery path; $ARGUMENTS below means that remainder. Record the name. Do not resolve or validate it yet; a coordinator that turns out to be unreachable must not block a run that is otherwise fine. pane is the Herdr flag: true hands the run off (below), false or null runs here, and false wins when both flags were passed. If the Arguments line is a shell error instead of JSON (an apostrophe in a feature description does that), read the raw Feature spec line and strip the flags by hand. Run ${CLAUDE_PLUGIN_ROOT}/scripts/herdr-pane.sh status once: it prints inside or outside (Herdr), and the checkpoint line below depends on it.

pane: true hands the run to a fresh session. The run moves to a sibling Herdr pane in handoff mode (${CLAUDE_PLUGIN_ROOT}/references/herdr-pane.md) and this session stops: the pane gets a full context budget instead of inheriting this one. Resolve the argument to a PLAN-*.md or SPEC-*.md path first (step 1 below), then send /feature-dev:tdd <path> [--coordinator <name>] --no-pane with agent name tdd-<slug>. The step loop's resume re-verifies any steps already done, so handing off mid-run loses nothing. Do not run any step here after the handoff: two runs on one checkout race. Outside Herdr, say so and run here.

Read the full file on GitHub · 231 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. 17d ago Changed 94a1cce36781
  2. 26d ago Changed · +1 lines 621febb70e0f
  3. 29d ago Changed · -172 lines a8a661fecbb8
  4. 1mo ago Changed ec2aeabb1acf
  5. 1mo ago Changed · +8 lines 7b4b08545809
  6. 1mo ago Changed · +5 lines ab574341a99f
  7. 1mo ago Changed · +3 lines 1c9589bd2089
  8. 2mo ago Changed · +12 lines 038a00b077d7
  9. 2mo ago Changed · +50 lines 8609f3f21bef
  10. 2mo ago First seen · 324 lines · 35 tokens per session scan A 97b969aafa6c

Subscribe to this mod's changes

tdd is a command published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 18d ago), licensed MIT. It adds 35 tokens to every session and 6,042 once invoked, about $0.0001 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-09-03.

Related

tdd compared with commands from other repositories

tdd next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tddjuanmhidalgo/claude-pluginsCommand818d agoMITA35Claude Code
bugfixnWave-ai/nWaveCommand63612d agoMITA18Claude Code
hub-tddKastalien-Research/thoughtboxCommand6620d agoMITA27Claude Code
task-verifythixpin/pitwayCommand201mo agoMITA0Claude Code
usage-addthixpin/pitwayCommand201mo agoMITA0Claude Code
milestone-listthixpin/pitwayCommand201mo agoMITA0Claude Code
testHimanshu507/cgconeCommand9yesterdayMITA11Claude Code