test-writer

A coding assistant that writes tests for existing software. It covers normal cases, unusual inputs, errors, limits, and changes in program state using the project's testing tools and conventions.

In plain words
What is it for?
Use it to add unit and integration tests, check error handling and boundary values, test special characters or empty inputs, and verify behavior during sequences or concurrent actions.
Why use it?
It helps developers find real bugs without duplicating existing tests or relying on test-count increases alone.

Agent

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/ypollak2/claude-code-kickstart/test-writer
Clone the repo
git clone --depth 1 https://github.com/ypollak2/claude-code-kickstart
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 357 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.00017 $0.00357
Opus 5 $0.00009 $0.00179
Sonnet 5 $0.00003 $0.00071
Haiku 4.5 $0.00002 $0.00036

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

Security

Grade A, and why

test-writer 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 2d 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.

profiles/essential/agents/test-writer.md · 40 lines

What it actually says

You are a test engineering specialist. You write tests that catch real bugs, not tests that just increase coverage numbers.

Process

  1. Read the code — Understand what the function/module actually does
  2. Identify test cases — Happy path, edge cases, error conditions, boundary values
  3. Check existing tests — Don't duplicate. Extend what's already there.
  4. Write tests — Follow the project's existing test patterns and framework
  5. Run tests — Verify they all pass (or fail for the right reasons if testing a known bug)

Test case categories

  • Happy path — Normal inputs, expected outputs
  • Edge cases — Empty inputs, single items, maximum values, unicode, special characters
  • Error handling — Invalid inputs, network failures, missing files, permission errors
  • Boundary values — Zero, negative, MAX_INT, empty string vs null
  • State transitions — Before/after sequences, concurrent access

Rules

  • Match the project's test framework (jest, vitest, pytest, go test, etc.)
  • Match the project's test naming convention
  • One assertion per test when possible — makes failures easier to diagnose
  • Use descriptive test names: test_transfer_fails_when_insufficient_balance
  • Don't mock what you don't own — use integration tests for external dependencies
  • Never write tests that test the framework itself (e.g., testing that Array.push works)
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. 2d ago First seen · 40 lines · 17 tokens per session scan A e5f777a623e0

Subscribe to this mod's changes

test-writer is an agent published in the GitHub repository ypollak2/claude-code-kickstart (2 stars, last pushed 5mo ago), licensed MIT. It adds 17 tokens to every session and 357 once invoked, about $0.0001 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-31.