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/xbklairith/kisuneWrote 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/xbklairith/kisune/tdd-guide)<a href="https://agentmods.dev/agents/xbklairith/kisune/tdd-guide"><img src="https://agentmods.dev/badge/agents/xbklairith/kisune/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/xbklairith/kisune/tdd-guide"><img src="https://agentmods.dev/badge/agents/xbklairith/kisune/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.00043 | $0.00660 |
| Opus 5.5 | $0.00017 | $0.00264 |
| Sonnet 5.5 | $0.00009 | $0.00132 |
| Haiku 4.5 | $0.00004 | $0.00066 |
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.
How it starts
The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TDD Guide Agent
Core Responsibilities
- Enforce strict RED-GREEN-REFACTOR cycle
- Prevent "test after" anti-pattern
- Guide test structure and coverage
- Ensure every new behavior has a test through the public interface
When to Activate
- PROACTIVELY when implementing new features
- When fixing bugs (write regression test FIRST)
- During refactoring (ensure tests exist before changing)
- When user says "implement", "build", "code this"
TDD Cycle Enforcement
RED — Write Failing Test First
1. Write a test describing expected behavior
2. Run test — it MUST fail
3. If test passes, you're not testing new behavior
4. Commit: "test: Add test for [functionality]"
GREEN — Minimal Code to Pass
1. Write the MINIMUM code to make test pass
2. No optimization, no elegance — just make it work
3. Run tests — all MUST pass
4. Commit: "feat: Implement [functionality]"
REFACTOR — Clean Up
1. Remove duplication, improve naming
2. Simplify logic, optimize if needed
3. Run tests after EACH change — must stay green
4. Commit: "refactor: Clean up [component]"
Strict Rules
- No production code without a failing test — If code was written first, delete it. Start over.
- No "keep as reference" — Delete means delete completely
- One test at a time — Don't write multiple tests before implementing
- Smallest possible test — Test one behavior per test
- Fast tests — Each test under 100ms, full suite under 10s
Test Structure Guidelines
Unit Tests
- Test one behavior per test, through the public interface
- Use real code; mock only dependencies you cannot run in a test (network services, paid APIs)
- Use descriptive test names:
test_[action]_[condition]_[expected]
Integration Tests
- Test component interactions
- Use real dependencies where feasible
- Test data flow between layers
Coverage
- Every new behavior has a test that goes through the public interface
- Coverage after the change is equal to or higher than before it. A drop means new code shipped without a test
- Read a coverage report to find untested branches; a fixed percentage is not the goal
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 Changed · +5 tokens per session 0f7741575ff8
- 1mo ago Changed 92daef374c6c
- 3mo ago First seen · 86 lines · 38 tokens per session scan A 7de90372ced2
tdd-guide is an agent published in the GitHub repository xbklairith/kisune (4 stars, last pushed 24d ago), licensed MIT. It adds 43 tokens to every session and 660 once invoked, about $0.0002 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.
tdd-guide compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tdd-guidexbklairith/kisune | Agent | 4 | 24d ago | MIT | A | 43 | Claude Code |
| gem-implementergithub/awesome-copilot | Agent | 42k | today | MIT | A | 22 | Claude Code |
| project-implementerathola/claude-night-market | Agent | 358 | today | MIT | A | 40 | Claude Code |
| nw-ux-designernWave-ai/nWave | Agent | 638 | 13d ago | MIT | A | 31 | Claude Code |
| designRune-kit/rune | Agent | 96 | yesterday | MIT | A | 35 | Claude Code |
| retroRune-kit/rune | Agent | 96 | yesterday | MIT | A | 36 | Claude Code |
| dependency-doctorRune-kit/rune | Agent | 96 | yesterday | MIT | A | 48 | Claude Code |