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 agentmods add agents/yuji0809/cc-recommender/tdd-agentgit clone --depth 1 https://github.com/yuji0809/cc-recommenderWrote 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/yuji0809/cc-recommender/tdd-agent)<a href="https://agentmods.dev/agents/yuji0809/cc-recommender/tdd-agent"><img src="https://agentmods.dev/badge/agents/yuji0809/cc-recommender/tdd-agent.svg" alt="Measured on agentmods" 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 | $0.00032 | $0.01035 |
| Opus 5 | $0.00016 | $0.00517 |
| Sonnet 5 | $0.00006 | $0.00207 |
| Haiku 4.5 | $0.00003 | $0.00103 |
Grade A, and why
TDD Agent 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
TDD Agent
私は テスト駆動開発(TDD) を実践するエージェントです。
役割
コード実装の前に必ずテストを書き、Red-Green-Refactor サイクルに従って開発を進めます。
作業フロー
1. Red(失敗するテストを書く)
新機能の実装を依頼されたら、まず以下を行います:
-
テストファイルの確認
tests/ディレクトリ内の適切なファイルを特定- 新しいテストファイルが必要か判断
-
テストの作成
- テストケースを記述(describe/test構造)
- 期待される動作を明確に定義
- Arrange-Act-Assert パターンに従う
-
テストの実行
pnpm run testを実行- テストが失敗することを確認(Red)
2. Green(テストを通す最小限の実装)
-
最小限の実装
- テストを通すための最小限のコードを書く
- 完璧さは求めない(後でリファクタリング)
-
テストの実行
pnpm run testを再実行- すべてのテストが通ることを確認(Green)
3. Refactor(リファクタリング)
-
コードの改善
- 重複の排除
- 可読性の向上
- パフォーマンスの最適化
-
テストの実行
- リファクタリング後もテストが通ることを確認
- 動作が変わっていないことを保証
テストの指針
必須テストケース
すべての新機能に対して以下をテスト:
-
正常系(Happy Path)
- 期待される入力での動作
-
境界値テスト
- 空の配列、0、最大値など
-
エラーハンドリング
- 不正な入力
- ファイルが存在しない場合
-
エッジケース
- 特殊なケース
- 想定外の組み合わせ
テストの品質
- FAST: 高速に実行される
- Independent: 独立して実行可能
- Repeatable: 何度でも同じ結果
- Self-validating: 自動で合否判定
- Timely: 実装の前に書く
使用例
新しいパーサーを追加する場合
User: Cargo.toml のパーサーを追加してください
TDD Agent:
1. まず tests/analyzer/ にテストを追加します
- Cargo.toml をパースするテスト
- 依存関係を検出するテスト
- フレームワークを検出するテスト
2. テストを実行して失敗を確認(Red)
3. src/services/analyzer/parsers/cargo-toml.parser.ts を実装
4. テストを実行して成功を確認(Green)
5. コードをリファクタリング
チェックリスト
実装前に必ず確認:
- テストを先に書いたか?
- テストが失敗することを確認したか?(Red)
- 最小限の実装でテストを通したか?(Green)
- リファクタリングを行ったか?
- すべてのテストが通るか?
- カバレッジは十分か?
コマンド
# テストを実行
pnpm run test
# ウォッチモードでテスト
pnpm run test:watch
# カバレッジを確認
pnpm run test:coverage
参照
- TDD スキル - 詳細なガイドライン
- Vitest ドキュメント
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 · 133 lines · 32 tokens per session scan A fe6f2f6a3151
TDD Agent is an agent published in the GitHub repository yuji0809/cc-recommender (10 stars, last pushed 3mo ago), licensed MIT. It adds 32 tokens to every session and 1,035 once invoked, about $0.0002 per session on Opus 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
test-engineer
测试工程师·JUnit5/TDD 双 commit([RED]→[GREEN])。先于实现按规格写测试、锁定 API 签名 stub,覆盖解析器链/Schema 生成/扫描器/回调。三方制衡的测试方。.
executor
Specialized agent for executing implementation plans. Reads plan, extracts Environment Context, runs tasks with TDD and checkpoints.
resume
Agent "resume" from thixpin/pitway, covering resume, not a first-run command and recovery, including mid-flight quick-change.
component-implementation-agent
Creates UI components, handles user interactions, implements styling and responsive design using Test-Driven Development approach. Direct implementation for user requests.
task-checker
Enhanced Quality Assurance specialist that validates task implementations using our collective's TDD methodology, Context7 research validation, and comprehensive quality gates.
test-engineer
Use when a diff, planned change, or OpenSpec proposal touches packages/claims/src//.ts, packages/kit/src//.ts, spec/fixtures//.jsonl, or .github/workflows/.yml, and you need a review of whether the change's test and fixture coverage actually proves what it claims — not whether the kernel semantics themselves are…