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 skills add laonayan/tdd-mcp-server --skill test-generationgit clone --depth 1 https://github.com/laonayan/tdd-mcp-serverWrote 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/skills/laonayan/tdd-mcp-server/test-generation)<a href="https://agentmods.dev/skills/laonayan/tdd-mcp-server/test-generation"><img src="https://agentmods.dev/badge/skills/laonayan/tdd-mcp-server/test-generation/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/skills/laonayan/tdd-mcp-server/test-generation"><img src="https://agentmods.dev/badge/skills/laonayan/tdd-mcp-server/test-generation.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.00032 | $0.00499 |
| Opus 5.5 | $0.00013 | $0.00200 |
| Sonnet 5.5 | $0.00006 | $0.00100 |
| Haiku 4.5 | $0.00003 | $0.00050 |
Grade A, and why
test-generation 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 4d 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
测试生成指南
适用场景
- 需求: {{REQUIREMENTS}} {% if EXISTING_CODE %}
- 既有代码上下文: 需针对现有行为生成回归测试 {% endif %}
生成流程
1. 行为拆解
把需求拆成可独立验证的行为单元,每个行为产出三类测试:
- Happy path — 正常输入的预期输出
- 边界条件 — 空值、零、极大值、单元素、并发
- 错误路径 — 非法输入、依赖失败、超时
2. AAA 结构(Arrange-Act-Assert)
it('should 返回两数之和', () => {
// Arrange
const calc = new Calculator();
// Act
const result = calc.add(5, 3);
// Assert
expect(result).toBe(8);
});
3. 命名规范
should <预期行为> when <条件>——读测试名即可理解规格,例如:
should reject expired token when JWT validation runsshould return empty array when no matches found
4. 覆盖目标
| 维度 | 最低要求 |
|---|---|
| 语句覆盖 | ≥ 80% |
| 分支覆盖 | ≥ 75% |
| 错误路径 | 每个抛错点至少 1 个测试 |
反模式清单
- ❌ 测试依赖执行顺序或共享可变状态
- ❌ 断言模糊(
expect(x).toBeDefined()滥用) - ❌ 一个测试验证多个行为
- ❌ mock 掉被测对象本身
生成后自检
- 每个测试独立可运行
- 失败信息可读(能定位到行为)
- 无对实现细节(私有方法)的断言
- 运行一次全部通过(在实现存在的回归场景)
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.
- 4d ago First seen · 65 lines · 32 tokens per session scan A 3a8966bd88b3
test-generation is a skill published in the GitHub repository laonayan/tdd-mcp-server (2 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 499 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-11-12.
test-generation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| test-generationlaonayan/tdd-mcp-server | Skill | 2 | yesterday | MIT | A | 32 | Claude Code, Codex |
| test-masterJeffallan/claude-skills | Skill | 12k | yesterday | MIT | A | 104 | Claude Code |
| migrate-xunit-to-xunit-v3dotnet/skills | Skill | 6.2k | yesterday | MIT | A | 149 | Claude Code |
| go-testingGentleman-Programming/gentle-ai | Skill | 9.2k | today | MIT | A | 26 | Claude Code, Codex |
| principle-test-behavior-not-implementationmichael-denyer/pstack-claude | Skill | 4.4k | 3d ago | MIT | A | 50 | Claude Code |
| dart-testdartsim/dart | Skill | 1.2k | yesterday | BSD-2-Clause | A | 18 | Claude Code, Codex |
| test-generatorrshankras/claude-code-apple-skills | Skill | 895 | 7d ago | MIT | A | 33 | Claude Code |