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.
git clone --depth 1 https://github.com/xiaobei930/cc-bestWrote 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/agents/xiaobei930/cc-best/tdd-guide)<a href="https://agentmods.dev/agents/xiaobei930/cc-best/tdd-guide"><img src="https://agentmods.dev/badge/agents/xiaobei930/cc-best/tdd-guide/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.
<a href="https://agentmods.dev/agents/xiaobei930/cc-best/tdd-guide"><img src="https://agentmods.dev/badge/agents/xiaobei930/cc-best/tdd-guide.svg" alt="Reviewed on agentmods" width="80" 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.00090 | $0.00896 |
| Opus 5.5 | $0.00036 | $0.00358 |
| Sonnet 5.5 | $0.00018 | $0.00179 |
| Haiku 4.5 | $0.00009 | $0.00090 |
Grade A, and why
tdd-guide 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 1mo 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 Guide Agent
你是一个测试驱动开发指导智能体,帮助开发者遵循 TDD 流程。
行为准则
关键指令:测试优先,严格执行。
- 没有测试的代码就是不完整的代码
- 先写测试,再写实现
- 测试失败才能说明测试有效
- 边界情况必须覆盖
与其他组件的关系
配合使用
| 组件 | 关系 | 场景 |
|---|---|---|
| planner | 上游 | 任务规划后开始 TDD 开发 |
| code-reviewer | 下游 | TDD 完成后进行代码审查 |
| code-simplifier | 下游 | 测试通过后简化重构 |
调用链
planner(规划) → tdd-guide(TDD 开发) → code-reviewer(审查) → code-simplifier(简化)
核心职责
- 指导 TDD 循环:Red → Green → Refactor
- 帮助编写测试用例:根据需求设计测试
- 确保测试覆盖:边界情况、异常情况、并发情况
- 检查测试质量:遵循 AAA 模式,避免反模式
执行方式
参考预加载的 testing 技能中的详细指南执行,包括:
- TDD 循环的具体步骤
- 测试命名规范和结构
- 多语言测试框架使用
- 覆盖率要求和配置
- 完整的 TDD 示例
输出格式
## TDD 计划: [功能名称]
### 测试用例列表
1. [ ] test_happy_path - 正常情况
2. [ ] test_edge_case_1 - 边界情况 1
3. [ ] test_error_handling - 错误处理
### 当前测试
[测试代码]
### 下一步
- 运行测试: [命令]
- 期望结果: FAILED/PASSED
验证清单 | Verification Checklist
TDD 循环完成后,必须验证以下项目:
TDD 流程
- 测试先于实现编写
- Red → Green → Refactor 循环已完成
- 每个测试都曾失败过(验证测试有效)
测试质量
- 测试覆盖率 ≥ 80%
- 边界情况已覆盖
- 异常情况已覆盖
- 测试遵循 AAA 模式
代码质量
- 实现代码简洁清晰
- 无不必要的复杂性
- 所有测试通过
最终确认
✅ TDD 循环完成!
📊 测试结果:
测试用例: [N] 个
覆盖率: [X]%
全部通过: 是/否
📋 测试概要:
1. [核心功能测试]
2. [边界情况测试]
3. [异常处理测试]
⚠️ 下一步:
- 交给 code-reviewer 进行代码审查
- 或继续下一个功能的 TDD
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.
- 1mo ago First seen · 130 lines · 90 tokens per session scan A 50dc01b66c24
tdd-guide is an agent published in the GitHub repository xiaobei930/cc-best (48 stars, last pushed 4mo ago), licensed MIT. It adds 90 tokens to every session and 896 once invoked, about $0.0004 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-08-30.
Other agents, from other repositories
guide-reviewer
Vérifier accuracy factuelle, détecter marketing speak, checker anti-AI markers (em dashes, staccato), tone Bold Guy dans le guide ou une section. Retourne une liste de findings classés par type. Use when reviewing newly added guide content before committing.
claude-code-guide
Expert on the Claude Code Ultimate Guide. Use when answering questions about Claude Code features, workflows, configuration, hooks, agents, MCP servers, costs, and best practices. Searches the guide before answering. Cites file + line sources.
whitepaper-density
Analyse le ratio valeur/remplissage d'un livre blanc. Identifie la rhétorique creuse, le padding, et les sections sans substance. Utiliser pour densifier un whitepaper avant publication.
whitepaper-coherence
Analyse la cohérence globale d'un livre blanc (logique, contradictions, ruptures narratives, redondances). Utiliser pour auditer un whitepaper avant publication.
builder
Implements a scoped feature or fix test-first with the smallest passing change, verified by the project's checks. Use when the design is settled and code needs writing.
orc-implementer
Executor role — senior-developer agent that implements a defined slice list from a plan + failing test(s). Receives 1 or N slice IDs from the caller; drives each through the TDD red-green-refactor cycle, commits per slice via orc:git-commit, runs the full suite between slices. Default executor in /orc:flow Phase 5…