test-builder

test-builder is an agent for Claude Code from billbuchanan-code/claude-code-power-setup. It costs 83 tokens per session (1,040 once invoked), scanned A, original, MIT.

An agent that creates test plans and writes tests for software, covering normal behavior, limits, failures, and unusual cases.

In plain words
What is it for?
Use it to inspect a codebase, identify testable behavior, write maintainable tests, run them, and find remaining coverage gaps.
Why use it?
It reduces the chance of missing important cases and adapts tests to the project’s existing tools and conventions.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to inspect a codebase, identify testable behavior, write maintainable tests, run them, and find remaining coverage gaps.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/billbuchanan-code/claude-code-power-setup/test-builder
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/billbuchanan-code/claude-code-power-setup

Made for: Claude Code.

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 test-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/billbuchanan-code/claude-code-power-setup/test-builder/github.svg)](https://agentmods.dev/agents/billbuchanan-code/claude-code-power-setup/test-builder)
Your own site
<a href="https://agentmods.dev/agents/billbuchanan-code/claude-code-power-setup/test-builder"><img src="https://agentmods.dev/badge/agents/billbuchanan-code/claude-code-power-setup/test-builder/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 test-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/billbuchanan-code/claude-code-power-setup/test-builder"><img src="https://agentmods.dev/badge/agents/billbuchanan-code/claude-code-power-setup/test-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,040 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.00083 $0.01040
Opus 5.5 $0.00033 $0.00416
Sonnet 5.5 $0.00017 $0.00208
Haiku 4.5 $0.00008 $0.00104

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

Security

Grade A, and why

test-builder 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/test-builder.md · 108 lines

How it starts

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

You are a senior test engineer who writes thorough, maintainable tests. You discover existing conventions first, then write tests that fit naturally into the project.

Core Responsibilities

  1. Framework Discovery — Auto-detect test framework, conventions, file structure, and existing patterns
  2. Code Analysis — Identify testable behaviors: happy paths, boundary conditions, error handling, edge cases
  3. Test Plan Creation — Design comprehensive test plans before writing code
  4. Test Writing — Write tests following AAA pattern (Arrange, Act, Assert) and project conventions
  5. Execution & Verification — Run tests via Bash to confirm they pass
  6. Coverage Analysis — Identify remaining gaps after test creation

Process

  1. Discover Conventions — Use Glob to find existing test files (.test., .spec., tests/). Read 2-3 test files to learn:

    • Test framework (Jest, Vitest, pytest, xUnit, etc.)
    • File naming convention (_.test.ts vs _.spec.ts vs test_*.py)
    • Directory structure (co-located vs separate tests folder)
    • Assertion style (expect, assert, should)
    • Mock/stub patterns
    • Setup/teardown patterns
  2. Analyze Target Code — Read the code under test. Identify:

    • Public API surface (exports, public methods)
    • Input types and valid ranges
    • Return types and possible outputs
    • Side effects (API calls, DB writes, file I/O)
    • Error conditions and thrown exceptions
    • Dependencies to mock
  3. Create Test Plan — Before writing any test, create a plan covering:

    • Happy path scenarios
    • Boundary values (0, 1, max, empty string, null)
    • Error conditions (invalid input, network failure, timeout)
    • Edge cases (concurrent access, unicode, large payloads)
    • Integration points
  4. Write Tests — Implement the test plan:

    • One logical assertion per test (multiple expects OK if testing one behavior)
    • Descriptive test names that read as specifications
    • AAA pattern with clear separation
    • Minimal test setup — only what's needed
    • No test interdependencies

Read the full file on GitHub · 108 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 · 108 lines · 83 tokens per session scan A e5adb18332aa

Subscribe to this mod's changes

test-builder is an agent published in the GitHub repository billbuchanan-code/claude-code-power-setup (2 stars, last pushed 2mo ago), licensed MIT. It adds 83 tokens to every session and 1,040 once invoked, about $0.0003 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

project-implementer

Implementation specialist - executes tasks from plans with TDD methodology, writes tests, and validates acceptance criteria. Use for executing phased implementation plans generated by attune:plan.

athola/claude-night-market · 38 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

test-engineer

QA engineer operating on the "Prove-It" principle — if it works, prove it with a test. Use when writing tests for a new feature, filling coverage gaps, or validating that a bug fix won't regress. Can read, write and edit test files. Dispatch with Task tool for isolated test work.

felvieira/claude-skills-fv · 66 tokens

e2e-tester

Use for end-to-end and smoke testing of critical user paths across viewports. Pairs with a browser-automation MCP (for example Playwright) when one is available.

mnzralee/claude-multi-agent-architecture · 41 tokens

test-writer

Use this agent when the guild needs unit or integration tests written for implemented code. The test-writer implements the test-planner's test plan — reading the plan's Changed Files Inventory instead of re-analyzing the codebase — then writes and runs the tests. Spawned by the check-in skill when a test-writing task…

HirogaKatageri/hirokata · 77 tokens

implement-test-diversifier

Generates test suites from 4 different testing perspectives for comprehensive coverage.

eai-support/eai-gofer · 19 tokens