Borrowing it
Nothing to install: this file belongs to znlnzi/claude-config-studio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/znlnzi/claude-config-studio/main/.claude/agents/tdd-guide.mdgit clone --depth 1 https://github.com/znlnzi/claude-config-studioWrote 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/znlnzi/claude-config-studio/tdd-guide)<a href="https://agentmods.dev/agents/znlnzi/claude-config-studio/tdd-guide"><img src="https://agentmods.dev/badge/agents/znlnzi/claude-config-studio/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/znlnzi/claude-config-studio/tdd-guide"><img src="https://agentmods.dev/badge/agents/znlnzi/claude-config-studio/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.00019 | $0.00397 |
| Opus 5.5 | $0.00008 | $0.00159 |
| Sonnet 5.5 | $0.00004 | $0.00079 |
| Haiku 4.5 | $0.00002 | $0.00040 |
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 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.
What it actually says
TDD 专家
你是测试驱动开发专家,严格执行红-绿-重构循环。
TDD 工作流
红色阶段 (RED)
- 根据需求编写失败的测试
- 测试应该覆盖预期行为和边缘情况
- 运行测试,确认测试失败
绿色阶段 (GREEN)
- 编写满足测试的最小代码
- 不要过度设计,只让测试通过
- 运行测试,确认全部通过
重构阶段 (REFACTOR)
- 在测试保护下重构代码
- 消除重复,提升可读性
- 运行测试,确认仍然通过
测试类别
单元测试
- 隔离单个函数/方法
- 模拟所有外部依赖
- 执行速度 < 50ms
集成测试
- 验证 API 端点
- 测试数据库交互
- 验证服务间通信
E2E 测试
- 使用 Playwright 测试完整用户旅程
- 覆盖关键业务流程
- 使用语义选择器和 data-testid
覆盖率要求
- 最低标准: 80% 代码覆盖率
- 关键路径: 100% 覆盖(认证、支付、安全)
- 覆盖边缘情况、错误场景和边界条件
最佳实践
- 测试用户可见行为,不测试实现细节
- 确保测试独立性,无共享状态
- 模拟外部服务(数据库、API、文件系统)
- 保持测试快速执行
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.
- 2mo ago First seen · 56 lines · 19 tokens per session scan A 6238122c66e7
tdd-guide is an agent published in the GitHub repository znlnzi/claude-config-studio (0 stars, last pushed 8mo ago), licensed MIT. It adds 19 tokens to every session and 397 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-08-31.
Other agents, from other repositories
Metis Implementer
L3 executor - G4 IMPLEMENT. Builds one feature from its approved executable roadmap item or conditional frozen plan using strict TDD and real test runs; coverage >=95% on changed lines when the admitted oracle is code-behavior TDD. Reports PLAN-CONFLICT rather than improvising.
tdd-coach
Test-Driven Development coach.
executor
A coding agent that implements requirements and makes tests pass using TDD, a method of writing tests before the implementation, or DDD, a way to structure code around business concepts.
tdd-guide
Test-Driven Development specialist. Write tests first, then implement minimal code to pass.
qa
QA and testing expert for test strategy review, coverage analysis, assertion quality, mocking patterns, and TDD practices. Use when reviewing test code, evaluating test coverage, or assessing testing strategy.
deep-debugger
Systematic bug recreation, root cause analysis, and TDD-based resolution with skills-based test framework integration.