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.
npx agentmods add commands/hgahlot/claude-flow/tddgit clone --depth 1 https://github.com/hgahlot/claude-flowWrote 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.
[](https://agentmods.dev/commands/hgahlot/claude-flow/tdd)<a href="https://agentmods.dev/commands/hgahlot/claude-flow/tdd"><img src="https://agentmods.dev/badge/commands/hgahlot/claude-flow/tdd.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00371 |
| Opus 5 | $0.00000 | $0.00186 |
| Sonnet 5 | $0.00000 | $0.00074 |
| Haiku 4.5 | $0.00000 | $0.00037 |
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 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.
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.
What it actually says
/tdd — Red-Green-Refactor Cycle Enforcement
Enforce strict TDD discipline for the current implementation task.
Instructions
Execute the full RED-GREEN-REFACTOR cycle:
Phase 1: RED (Write Failing Test)
- Identify the behavior to implement (from plan or description)
- Write the test FIRST — do not write any implementation code yet
- Run the test — confirm it FAILS with a meaningful error (not a syntax error)
- Show the failing test output as evidence
Phase 2: GREEN (Minimum Implementation)
- Write the MINIMUM code required to make the test pass
- Do not over-engineer — just make it green
- Run the test — confirm it PASSES
- Show the passing test output as evidence
Phase 3: REFACTOR (Clean Up)
- Improve code quality without changing behavior
- Remove duplication, improve naming, simplify logic
- Run the test again — confirm it STILL PASSES after refactoring
- Show the passing test output as evidence
Output Format
## RED Phase
[test code]
Running: <test command>
Result: FAIL — <error message>
✓ Test fails as expected
## GREEN Phase
[implementation code]
Running: <test command>
Result: PASS
✓ Test passes
## REFACTOR Phase
[refactored code — describe changes made]
Running: <test command>
Result: PASS
✓ Tests still pass after refactor
Rules
- NEVER write implementation code before a failing test exists
- NEVER skip the REFACTOR phase
- NEVER claim GREEN without running the test and showing output
- If a test passes immediately without any implementation, the test is wrong — fix it
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.
- 6d ago First seen · 54 lines · 0 tokens per session scan A 61e7e678a2b7
tdd is a command published in the GitHub repository hgahlot/claude-flow (53 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 371 tokens. 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.
Other commands, from other repositories
bugfix
Bug fix workflow: root cause analysis → user review → regression test + fix via TDD.
dashboard
Generar dashboard HTML local con métricas de eficiencia del proyecto SDD.
usage-add
PitWay: Accumulate measured planning or qa token usage onto a milestone.
hub-tdd
TDD workflow for MCP Hub implementation. Types → Tests (red) → Implementation (green) with git gates.
eval
Evaluate and improve one healthcare agent's system prompt. Run up to 5 iterations of: prepare fixed questions -> answer -> judge -> improve -> re-score -> commit if better.
tdd
强制执行测试驱动开发工作流。首先搭建接口,生成测试,然后从实现能通过测试的最小代码。确保 80%+ 的覆盖率。.