TDD-develop

A Chinese-language command describing a structured software-development workflow: exploration, planning, test-driven development, implementation, review, and submission. TDD means writing a small test first, then coding until it passes.

In plain words
What is it for?
Use it to investigate a request, create a temporary plan, write and run tests, implement the change, review it with a Codex sub-agent, and prepare a pull request.
Why use it?
It provides a fixed sequence for development work and records progress between stages.

Command for Claude Code

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.

agentmods
npx agentmods add commands/dsgwjq/feagent/tdd-develop
Clone the repo
git clone --depth 1 https://github.com/DSGWJQ/Feagent

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 232 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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 $0.00000 $0.00232
Opus 5 $0.00000 $0.00116
Sonnet 5 $0.00000 $0.00046
Haiku 4.5 $0.00000 $0.00023

Measured 2d ago against content hash 4ed76bcf59de, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

TDD-develop 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 2d 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/commands/TDD-develop.md · 18 lines

What it actually says

执行结构化开发:探索→规划→TDD→实现→提交

流程:

  1. 探索 - 调用子代理使用codex MCP分析需求,返回:需求摘要、相关文件、修改范围、如何修改、改什么
  2. 规划 - 创建临时文档 /tmp/dev_plan.md 记录:测试策略、实现方案、进度跟踪
  3. TDD - 编写最小测试文件,运行并提交测试(不修改测试)
  4. 实现 - 循环直到测试通过:
    • 编写最小可通过代码
    • 调用子代理(Codex)审查代码是否过拟合
    • 根据反馈修改
  5. 提交 - 更新文档,创建PR,清理临时文件

规则:

  • 每步结束后更新进度跟踪
  • 子代理返回结构化摘要(非完整内容)
  • 关键信息保存到规划文档,对话中只引用摘要
  • 一次性完成整个流程,不中途重置
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. 2d ago First seen · 18 lines · 0 tokens per session scan A 4ed76bcf59de

Subscribe to this mod's changes

TDD-develop is a command published in the GitHub repository DSGWJQ/Feagent (139 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 232 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.