tdd-guide

tdd-guide is an agent for Claude Code from xbklairith/kisune. It costs 43 tokens per session (660 once invoked), scanned A, original, MIT.

A coding agent that guides development with test-driven development (TDD), a method where tests are written before the code they check.

In plain words
What is it for?
Use it when building features, fixing bugs, or refactoring code. It aims for at least 80% test coverage.
Why use it?
It helps catch bugs and keep tests in place while adding features, fixing bugs, or changing existing code.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dev-workflow plugin — 28 skills, 1 command, 8 agents, 1 hook, 1 plugin shipped together

Good fit Use it when building features, fixing bugs, or refactoring code. It aims for at least 80% test coverage.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xbklairith/kisune/tdd-guide
Install

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.

Clone the repo
git clone --depth 1 https://github.com/xbklairith/kisune

Made for: Claude Code.

Or install dev-workflow, the plugin that ships this one along with the rest of its 28 skills, 1 command, 8 agents, 1 hook, 1 plugin.

Wrote 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.

agentmods badge for tdd-guide

README.md
[![agentmods](https://agentmods.dev/badge/agents/xbklairith/kisune/tdd-guide/github.svg)](https://agentmods.dev/agents/xbklairith/kisune/tdd-guide)
Your own site
<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.

agentmods 80×15 button for tdd-guide

Your own site · 80×15
<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>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 660 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 0f7741575ff8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

dev-workflow/agents/tdd-guide.md · 86 lines

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

  1. Enforce strict RED-GREEN-REFACTOR cycle
  2. Prevent "test after" anti-pattern
  3. Guide test structure and coverage
  4. 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

  1. No production code without a failing test — If code was written first, delete it. Start over.
  2. No "keep as reference" — Delete means delete completely
  3. One test at a time — Don't write multiple tests before implementing
  4. Smallest possible test — Test one behavior per test
  5. 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

Read the full file on GitHub · 86 lines

Changes

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.

  1. 1mo ago Changed · +5 tokens per session 0f7741575ff8
  2. 1mo ago Changed 92daef374c6c
  3. 3mo ago First seen · 86 lines · 38 tokens per session scan A 7de90372ced2

Subscribe to this mod's changes

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.

Related

tdd-guide compared with agents from other repositories

tdd-guide next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-guidexbklairith/kisuneAgent424d agoMITA43Claude Code
gem-implementergithub/awesome-copilotAgent42ktodayMITA22Claude Code
project-implementerathola/claude-night-marketAgent358todayMITA40Claude Code
nw-ux-designernWave-ai/nWaveAgent63813d agoMITA31Claude Code
designRune-kit/runeAgent96yesterdayMITA35Claude Code
retroRune-kit/runeAgent96yesterdayMITA36Claude Code
dependency-doctorRune-kit/runeAgent96yesterdayMITA48Claude Code