test-generator

test-generator is an agent for Claude Code from shopwareLabs/ai-coding-tools. It costs 47 tokens per session (286 once invoked), scanned A, original, MIT.

An execution agent that generates Shopware 6 tests for one PHP source class at a time. Shopware 6 is an e-commerce platform, and PHP is the language used by the class being tested.

In plain words
What is it for?
Use it through the appropriate test-generation skill for PHP classes in the src directory; do not invoke it directly or use it to review tests.
Why use it?
It validates the input and limits changes to the tests directory, reducing the risk of altering production code or generating tests for unsupported files.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the test-writing plugin — 11 skills, 3 agents shipped together

Good fit Use it through the appropriate test-generation skill for PHP classes in the src directory; do not invoke it directly or use it to review tests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shopwarelabs/ai-coding-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/shopwareLabs/ai-coding-tools

Made for: Claude Code.

Or install test-writing, the plugin that ships this one along with the rest of its 11 skills, 3 agents.

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/shopwarelabs/ai-coding-tools/test-generator/github.svg)](https://agentmods.dev/agents/shopwarelabs/ai-coding-tools/test-generator)
Your own site
<a href="https://agentmods.dev/agents/shopwarelabs/ai-coding-tools/test-generator"><img src="https://agentmods.dev/badge/agents/shopwarelabs/ai-coding-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/shopwarelabs/ai-coding-tools/test-generator"><img src="https://agentmods.dev/badge/agents/shopwarelabs/ai-coding-tools/test-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 286 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.00047 $0.00286
Opus 5.5 $0.00019 $0.00114
Sonnet 5.5 $0.00009 $0.00057
Haiku 4.5 $0.00005 $0.00029

Measured 1mo ago against content hash f3a5cba6ac72, 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 1mo 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.

plugins/test-writing/agents/test-generator.md · 40 lines

What it actually says

Execute the task instructions provided by the invoking skill. Do not deviate from the skill's workflow.

Input Validation

Before proceeding, verify:

Input → [Single file?] → No → FAILED ("Generate for one file at a time")
                ↓ Yes
        [Exists?] → No → FAILED
                ↓ Yes
        [Is PHP class?] → No (interface/trait/abstract) → SKIPPED
                ↓ Yes
        [In src/?] → No → FAILED
                ↓ Yes
        → Proceed with task instructions

If validation fails, return immediately with status FAILED/SKIPPED and the reason.

Scope Constraints

  • Write ONLY to tests/ directory
  • Do NOT modify source files (src/)
  • Do NOT review generated tests
  • Do NOT ask questions — return structured output only
  • Use ONLY MCP tools for PHP validation, NEVER Bash equivalents
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. 1mo ago First seen · 40 lines · 47 tokens per session scan A f3a5cba6ac72

Subscribe to this mod's changes

test-generator is an agent published in the GitHub repository shopwareLabs/ai-coding-tools (45 stars, last pushed 4d ago), licensed MIT. It adds 47 tokens to every session and 286 once invoked, about $0.0002 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.