Feagent: Command for Claude Code

.claude/commands/TDD-develop.md

TDD-develop is a command for Claude Code from DSGWJQ/Feagent. It costs 0 tokens per session (232 once invoked), scanned A, original, MIT.

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

Written for Claude Code: installed under .claude/. Also seen: mentions Codex.

This is DSGWJQ/Feagent's own configuration. It tells Claude Code how to work on Feagent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Feagent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to DSGWJQ/Feagent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/DSGWJQ/Feagent/main/.claude/commands/TDD-develop.md
Clone the repo
git clone --depth 1 https://github.com/DSGWJQ/Feagent

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-develop

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/dsgwjq/feagent/tdd-develop"><img src="https://agentmods.dev/badge/commands/dsgwjq/feagent/tdd-develop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00000 $0.00232
Opus 5.5 $0.00000 $0.00093
Sonnet 5.5 $0.00000 $0.00046
Haiku 4.5 $0.00000 $0.00023

Measured 2mo ago against content hash 4ed76bcf59de, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (138 stars, last pushed 8mo 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.