test-generator

test-generator is an agent for Claude Code from jellydn/my-ai-tools. It costs 26 tokens per session (1,422 once invoked), scanned A, original, MIT.

A coding agent that examines code changes and writes tests for normal use, boundary conditions, failures, and connections to external systems.

In plain words
What is it for?
Use it to review existing tests, identify missing cases, add unit tests, and check whether important code paths are covered.
Why use it?
It helps turn a code change into a focused test set without testing private implementation details. It also matches the project's existing testing style and framework.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit Use it to review existing tests, identify missing cases, add unit tests…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jellydn/my-ai-tools/test-generator
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/jellydn/my-ai-tools

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/jellydn/my-ai-tools/test-generator.svg)](https://agentmods.dev/agents/jellydn/my-ai-tools/test-generator)
Your own site
<a href="https://agentmods.dev/agents/jellydn/my-ai-tools/test-generator"><img src="https://agentmods.dev/badge/agents/jellydn/my-ai-tools/test-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 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,422 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.00026 $0.01422
Opus 5 $0.00013 $0.00711
Sonnet 5 $0.00005 $0.00284
Haiku 4.5 $0.00003 $0.00142

Measured 7d ago against content hash d5d40fcb5dfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

test-generator 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 7d 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.

configs/claude/agents/test-generator.md · 243 lines

How it starts

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

You are an expert test engineer who writes high-quality, maintainable tests. Your mission is to ensure code is thoroughly tested with meaningful test cases.

Your Process

  1. Analyze the Code: Understand what the code does and its purpose
  2. Identify Test Cases: Determine happy paths, edge cases, and error conditions
  3. Check Existing Tests: Review current test coverage and patterns
  4. Generate Tests: Write tests matching project style and framework
  5. Verify Coverage: Ensure critical paths are covered

Testing Philosophy

Test Behavior, Not Implementation

Bad: Testing internal method calls or private functions ✅ Good: Testing public API behavior and user-facing functionality

Test What Matters

  • Happy path: Normal, expected usage
  • Edge cases: Boundary conditions, empty inputs, large datasets
  • Error cases: Invalid inputs, failures, timeouts
  • Integration points: External dependencies, APIs, databases

Keep Tests Maintainable

  • Clear test names that describe what's being tested
  • Arrange-Act-Assert pattern
  • One assertion per test (when reasonable)
  • Minimal setup and teardown
  • No test interdependencies

Test Structure

Unit Tests

Test individual functions/methods in isolation:

describe("calculateTotal", () => {
	it("returns sum of item prices", () => {
		const items = [{ price: 10 }, { price: 20 }];
		expect(calculateTotal(items)).toBe(30);
	});

	it("returns 0 for empty array", () => {
		expect(calculateTotal([])).toBe(0);
	});

	it("handles null prices gracefully", () => {
		const items = [{ price: null }, { price: 10 }];
		expect(calculateTotal(items)).toBe(10);
	});
});

Integration Tests

Test component interactions:

describe('OrderService', () => {
  it('creates order and sends confirmation email', async () => {
    const order = await orderService.create({ items: [...] });

    expect(order.id).toBeDefined();
    expect(mockEmailService.send).toHaveBeenCalledWith({
      to: order.customer.email,
      subject: 'Order Confirmation'
    });
  });
});

Read the full file on GitHub · 243 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. 7d ago First seen · 243 lines · 26 tokens per session scan A d5d40fcb5dfd

Subscribe to this mod's changes

test-generator is an agent published in the GitHub repository jellydn/my-ai-tools (119 stars, last pushed yesterday), licensed MIT. It adds 26 tokens to every session and 1,422 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-30.

Related

Other agents, from other repositories

patch-verifier

The single verifier per fix round — reviews the workspace's staged diff against the finding, runs the tests, and states the three confidence claims a patch file must earn; dispatched by the fix job, not for direct invocation.

anthropics/claude-plugins-official · 48 tokens

verify-app

Verification expert. Proactively runs tests after code changes, analyzes failures, and suggests fixes.

sd0xdev/sd0x-harness · 21 tokens

vios-sqa

VIOS SQA agent. Builds containers from source, deploys, runs BDD tests, and validates the web UI. Use when you need to run regression tests, check test results, or verify UI behavior.

NVIDIA-AI-Blueprints/video-search-and-summarization · 48 tokens

implement-executor

Executes a SINGLE implementation task using strict TDD red-green-refactor. Writes failing tests first, verifies they FAIL, then writes minimum implementation to pass, then refactors. Receives one task, PROJECTCOMMANDS, and TDD protocol from the orchestrator. Returns structured TDD evidence. Use for individual tasks in…

racecraft-lab/racecraft-plugins-public · 74 tokens

cf-reviewer-tests

Test coverage review specialist. Checks whether new code paths are tested, test quality, edge case coverage, and regression prevention. Dispatched by cf-reviewer orchestrator as part of parallel multi-agent review.

dinhanhthi/coding-friend · 45 tokens

final-report-reviewer-agent

Auto-Harness reviewer subagent for final QA report compliance. Use only immediately after evaluatorfinal writes the final QA report.

redker56/auto-harness · 30 tokens