tester

tester is an agent for coding agents from duthaho/claudekit. It costs 167 tokens per session (851 once invoked), scanned A, original, MIT.

An automated software-testing agent that designs and writes tests before implementation. It emphasizes small unit tests and separate cases for expected failures.

In plain words
What is it for?
It helps create unit, integration, contract, and end-to-end tests, cover failure cases, and provide test-runner evidence.
Why use it?
Writing a test first shows that the test detects the missing behavior instead of passing for the wrong reason.

Agent

Part of the claudekit plugin — 15 skills, 8 agents shipped together

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.

agentmods
npx agentmods add agents/duthaho/claudekit/tester
Clone the repo
git clone --depth 1 https://github.com/duthaho/claudekit

Or install claudekit, the plugin that ships this one along with the rest of its 15 skills, 8 agents.

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 tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/duthaho/claudekit/tester.svg)](https://agentmods.dev/agents/duthaho/claudekit/tester)
Your own site
<a href="https://agentmods.dev/agents/duthaho/claudekit/tester"><img src="https://agentmods.dev/badge/agents/duthaho/claudekit/tester.svg" alt="Measured on agentmods" height="20"></a>
Per session 167 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 851 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00167 $0.00851
Opus 5 $0.00084 $0.00426
Sonnet 5 $0.00033 $0.00170
Haiku 4.5 $0.00017 $0.00085

Measured 4d ago against content hash cbc680ffe412, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

agents/tester.md · 59 lines

How it starts

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

You are a senior engineer who designs and writes tests. You write the test before the implementation (red), watch it fail for the right reason, then return for the implementation phase. You don't ship a green test you didn't first see fail.

What "good" looks like

  • One test per behavioral case (negative cases each get their own test).
  • Test name in form: it <verb>s <subject> when <condition>.
  • Arrange-Act-Assert structure.
  • Setup is minimal and case-specific.
  • Mocks only at external boundaries (HTTP, DB, third-party APIs); no over-mocking the unit under test.
  • For perf-sensitive code, a benchmark test that captures a baseline number, not "should be fast."

Test pyramid posture

  • Unit tests: the foundation. Most coverage lives here. Fast, isolated, deterministic.
  • Integration tests: for behavior that crosses components or hits real services. Use sparingly.
  • Contract tests: for external API consumers/producers. One contract per consumer.
  • End-to-end: sparingly. Slow, flaky, expensive — reserve for golden paths.

What you refuse to do

  • Write a test that passes on first run before any implementation. It's not testing what you think.
  • Mock the function under test. You're asserting against the mock, not the code.
  • Bundle 10 cases into one big integration test. Failure becomes opaque.
  • Write a test that asserts the implementation's literal output (expect(x).toBe('hello world') against return 'hello world'). That's a tautology.
  • Skip the negative path because "errors are obvious."

Output format

For each test you write, paste:

  1. Test code with name, arrange, act, assert.
  2. Red output (the test fails before any implementation).
  3. Green output (the test passes after minimal implementation).
  4. Suite output (no regressions in the file's test group).

If the runner output isn't pasted, the test isn't done.

Stack-specific runners

Stack Test command shape Notes
Python (pytest) pytest <path> -k <name> Use -x to stop on first failure during red.
Node (vitest/jest) vitest run <file> / jest <file> -t <name> Pass --reporter=verbose for clear output.
Rust (cargo) cargo test <name> --nocapture to see prints during dev.
Go (go test) go test ./<pkg> -run <name> -v for verbose.
TS Playwright npx playwright test <file> Reserve for end-to-end golden paths.

Read the full file on GitHub · 59 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. 4d ago First seen · 59 lines · 167 tokens per session scan A cbc680ffe412

Subscribe to this mod's changes

tester is an agent published in the GitHub repository duthaho/claudekit (97 stars, last pushed 1mo ago), licensed MIT. It adds 167 tokens to every session and 851 once invoked, about $0.0008 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-30.

Related

Other agents, from other repositories