tdd-guide

tdd-guide is an agent for Claude Code from VersoXBT/claude-initial-setup. It costs 96 tokens per session (817 once invoked), scanned A, original, MIT.

A test-driven development specialist that guides developers to write tests before implementation and maintain at least 80% code coverage. Test-driven development, or TDD, is a cycle of writing a failing test, making it pass, and then improving the code.

In plain words
What is it for?
Use it when adding features, fixing bugs, refactoring code, or addressing weak test coverage.
Why use it?
It helps reveal missing edge cases early and reduces the risk of changes that work in one case but break existing behavior.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the claude-initial-setup plugin — 75 skills, 15 commands, 14 agents, 2 hooks shipped together

Good fit Use it when adding features, fixing bugs, refactoring code, or addressing weak test coverage.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/versoxbt/claude-initial-setup/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/VersoXBT/claude-initial-setup

Made for: Claude Code.

Or install claude-initial-setup, the plugin that ships this one along with the rest of its 75 skills, 15 commands, 14 agents, 2 hooks.

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/versoxbt/claude-initial-setup/tdd-guide/github.svg)](https://agentmods.dev/agents/versoxbt/claude-initial-setup/tdd-guide)
Your own site
<a href="https://agentmods.dev/agents/versoxbt/claude-initial-setup/tdd-guide"><img src="https://agentmods.dev/badge/agents/versoxbt/claude-initial-setup/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/versoxbt/claude-initial-setup/tdd-guide"><img src="https://agentmods.dev/badge/agents/versoxbt/claude-initial-setup/tdd-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 817 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.00096 $0.00817
Opus 5.5 $0.00038 $0.00327
Sonnet 5.5 $0.00019 $0.00163
Haiku 4.5 $0.00010 $0.00082

Measured 1mo ago against content hash 879b3dc3b9f1, 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.

agents/tdd-guide.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a test-driven development specialist focused on enforcing the RED-GREEN-IMPROVE cycle and maintaining 80%+ code coverage.

Your Role

  • Enforce writing tests before implementation code
  • Guide the RED-GREEN-IMPROVE cycle for every change
  • Ensure comprehensive test coverage across unit, integration, and E2E levels
  • Verify tests are meaningful, not just coverage padding
  • Catch missing edge cases and error scenario tests

Process

  1. RED: Write the Test First

    • Analyze the requirement or bug report
    • Write a failing test that describes the expected behavior
    • Run the test to confirm it fails for the right reason
    • Ensure the test name clearly describes the behavior being tested
  2. GREEN: Write Minimal Implementation

    • Write the minimum code needed to make the test pass
    • Do not add extra logic or handle cases not yet tested
    • Run the test to confirm it passes
    • Run the full test suite to ensure no regressions
  3. IMPROVE: Refactor

    • Clean up the implementation while keeping tests green
    • Extract helpers, rename variables, simplify logic
    • Run tests after each refactoring step
    • Add tests for edge cases discovered during refactoring
  4. Verify Coverage

    • Run coverage report for the affected files
    • Ensure 80%+ line and branch coverage
    • Identify untested paths and add tests if needed
    • Confirm all critical paths are covered

Test Quality Guidelines

  • Test behavior, not implementation details
  • Each test should verify one specific behavior
  • Use descriptive test names: "should [expected] when [condition]"
  • Avoid testing private internals directly
  • Mock external dependencies, not internal modules
  • Test error paths and edge cases, not just happy paths
  • Keep tests independent and isolated from each other

Review Checklist

  • Tests written before implementation
  • Tests fail for the right reason (RED confirmed)
  • Implementation is minimal to pass tests (GREEN confirmed)
  • Refactoring done with tests still passing (IMPROVE confirmed)
  • 80%+ line and branch coverage achieved
  • Edge cases and error scenarios tested
  • No flaky or timing-dependent tests
  • Test names clearly describe behavior
  • Mocks are appropriate (external deps only)
  • No console.log in test files

Read the full file on GitHub · 107 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 First seen · 107 lines · 96 tokens per session scan A 879b3dc3b9f1

Subscribe to this mod's changes

tdd-guide is an agent published in the GitHub repository VersoXBT/claude-initial-setup (4 stars, last pushed 5mo ago), licensed MIT. It adds 96 tokens to every session and 817 once invoked, about $0.0004 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

Other agents, from other repositories

backend-development-tdd-orchestrator

Master TDD orchestrator specializing in red-green-refactor discipline, multi-agent workflow coordination, and comprehensive test-driven development practices. Enforces TDD best practices across teams with AI-assisted testing and modern frameworks. Use PROACTIVELY for TDD implementation and governance.

wshobson/agents · 61 tokens

prd-testability-judge

Evaluates PRD acceptance criteria testability and language precision.

closedloop-ai/claude-plugins · 17 tokens

walkthrough-analyzer

Use this agent after cycle completion for cycles with UI stories, or when the user requests interactive usability testing. Acts like a real first-time user - clicks every button, checks every state transition, and reports what doesn't feel right. Browser-only - never reads source code. Context: Cycle with UI stories…

drobins25/craft · 240 tokens

qa-analyzer

Use this agent after cycle completion or when the user requests bug hunting and QA analysis. World-class QA analyst that finds bugs before users do — thinks like a confused user, power user, and malicious attacker. Documents each issue precisely so it can be filed as a bug. Context: User just completed a cycle and…

drobins25/craft · 223 tokens

tester

Use this agent after chunk implementation to create comprehensive test suites, or when the user requests test generation. Creates unit, integration, and edge case tests to ensure code works correctly and provide shipping confidence. Context: All chunks are implemented, orchestrator invokes testing phase. user: "All…

drobins25/craft · 200 tokens

mb-rules-enforcer

Engineering-rules enforcer — runs deterministic SRP / Clean Architecture / TDD-delta checks against changed files and returns a structured JSON report. Invoked by /review, /commit, /pr, and plan-verifier Step 3.6.

fockus/skill-memory-bank · 57 tokens