test-writer

test-writer is an agent for Claude Code from ypollak2/claude-code-kickstart. It costs 17 tokens per session (357 once invoked), scanned A, original, MIT.

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 for Claude Code

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

Good fit 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.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ypollak2/claude-code-kickstart/test-writer
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/ypollak2/claude-code-kickstart

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-writer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/ypollak2/claude-code-kickstart/test-writer"><img src="https://agentmods.dev/badge/agents/ypollak2/claude-code-kickstart/test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00017 $0.00357
Opus 5.5 $0.00007 $0.00143
Sonnet 5.5 $0.00003 $0.00071
Haiku 4.5 $0.00002 $0.00036

Measured 3mo ago against content hash e5f777a623e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 8mo ago), licensed MIT. It adds 17 tokens to every session and 357 once invoked, about $0.0001 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

test-writer compared with agents from other repositories

test-writer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-writerypollak2/claude-code-kickstartAgent28mo agoMITA17Claude Code
pr-test-analyzerfuxicodex/FuxiAgent3.2k11d agononeA101Claude Code
testeropencue/cuecardsAgent9yesterdayMITA349Claude Code
test-runnerrandomittin/heimdallAgent5yesterdayMITA30Claude Code
test-engineerfuxicodex/FuxiAgent3.2k11d agononeB30Claude Code
test-engineerQwenLM/qwen-codeAgent31ktodayApache-2.0A119Claude Code
atomic-auditordamusix/atomic-claudeAgent118yesterdayMITA169Claude Code