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, and check whether important code paths are covered.

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/github.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/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-generator

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00010 $0.00569
Sonnet 5.5 $0.00005 $0.00284
Haiku 4.5 $0.00003 $0.00142

Measured 3mo ago against content hash d5d40fcb5dfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 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.

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. 3mo 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 (130 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 1,422 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-30.

Related

test-generator compared with agents from other repositories

test-generator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-generatorjellydn/my-ai-toolsAgent130todayMITA26Claude Code
shamanpjt222/agent-almanacAgent46todayMITA29Claude Code
designRune-kit/runeAgent96todayMITA35Claude Code
loom-advisorcosmix/loomAgent66yesterdayMITA51Claude Code
governance-specialistsmith-horn/skillsmithAgent78todaynoneA33Claude Code
seo-mapsInfrasity-Labs/dev-gtm-claude-skillsAgent1977d agoMITA38Claude Code
final-report-reviewer-agentredker56/auto-harnessAgent157mo agoMITA30Claude Code