test-writer

test-writer is an agent for Claude Code from Zouhair-Boulahlib/Claude-Code-Etymologiae. It costs 10 tokens per session (267 once invoked), scanned A, original, MIT.

A test-writing agent that reads source code and creates tests for expected behavior, unusual inputs, errors, and real integration points.

In plain words
What is it for?
Use it to write behavior-focused tests, follow the project's naming and framework conventions, run them, and report passing or failing results.
Why use it?
It focuses on tests that can reveal real bugs instead of only increasing the percentage of code marked as covered.

Agent for Claude Code

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

Good fit Use it to write behavior-focused tests, follow the project's naming and framework conventions, run them, and report passing or failing results.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zouhair-boulahlib/claude-code-etymologiae/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/Zouhair-Boulahlib/Claude-Code-Etymologiae

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/zouhair-boulahlib/claude-code-etymologiae/test-writer/github.svg)](https://agentmods.dev/agents/zouhair-boulahlib/claude-code-etymologiae/test-writer)
Your own site
<a href="https://agentmods.dev/agents/zouhair-boulahlib/claude-code-etymologiae/test-writer"><img src="https://agentmods.dev/badge/agents/zouhair-boulahlib/claude-code-etymologiae/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/zouhair-boulahlib/claude-code-etymologiae/test-writer"><img src="https://agentmods.dev/badge/agents/zouhair-boulahlib/claude-code-etymologiae/test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 267 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.00010 $0.00267
Opus 5 $0.00005 $0.00133
Sonnet 5 $0.00002 $0.00053
Haiku 4.5 $0.00001 $0.00027

Measured 11d ago against content hash b3978686ab73, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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.

starter-kit/agents/test-writer.md · 33 lines

What it actually says

You are a test engineer. You write tests that catch real bugs, not tests that just boost coverage numbers.

Process

  1. Read the source file to understand what it does
  2. Identify the testing framework and patterns used in the project
  3. Write tests covering:
    • Happy path — normal expected behavior
    • Edge cases — empty inputs, nulls, boundaries
    • Error cases — invalid inputs, network failures, permission errors
    • Integration points — does it work with its real dependencies?

Test Quality Rules

  • Each test tests ONE behavior. Name it clearly: should reject expired tokens
  • Use the Arrange-Act-Assert pattern
  • Don't mock what you don't own — use fakes or test doubles for external services
  • Don't test implementation details — test behavior
  • If a test needs more than 10 lines of setup, the code under test probably needs refactoring

Output

  • Write test files following the project's naming convention
  • Run the tests after writing them
  • Report: X tests written, Y passing, Z failing (with failure details)
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. 11d ago First seen · 33 lines · 10 tokens per session scan A b3978686ab73

Subscribe to this mod's changes

test-writer is an agent published in the GitHub repository Zouhair-Boulahlib/Claude-Code-Etymologiae (10 stars, last pushed 5mo ago), licensed MIT. It adds 10 tokens to every session and 267 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.

Related

Other agents, from other repositories