test-gen

test-gen is a skill for Claude Code from phodal/auto-dev. It costs 10 tokens per session (136 once invoked), scanned A, original, MPL-2.0.

A coding aid that creates unit tests for individual functions or classes. It covers normal behaviour, edge cases, errors, constructors, and integration points.

In plain words
What is it for?
Use it when adding tests for a code file, checking boundary conditions, testing exceptions, or documenting how methods should behave.
Why use it?
It reduces the time spent writing repetitive test cases and helps you remember less obvious failure conditions. The generated tests are designed to be independent, repeatable, fast, and clear.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it when adding tests for a code file, checking boundary conditions, testing exceptions, or documenting how methods should behave.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phodal/auto-dev/test-gen
About the project

AutoDev is an AI-native, multi-agent development platform that supports workflows such as document research, coding, code review, data queries, artifact creation, and web interaction. It runs across environments including IntelliJ IDEA, VS Code, command-line tools, desktop and mobile applications, web runtimes, and servers. The catalogue skills extend its coding-agent workflows.

phodal/auto-dev · 4,560 stars · on GitHub · ide.unitmesh.cc

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.

Any agent
npx skills add phodal/auto-dev --skill test-gen
Clone the repo
git clone --depth 1 https://github.com/phodal/auto-dev

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/phodal/auto-dev/test-gen/github.svg)](https://agentmods.dev/skills/phodal/auto-dev/test-gen)
Your own site
<a href="https://agentmods.dev/skills/phodal/auto-dev/test-gen"><img src="https://agentmods.dev/badge/skills/phodal/auto-dev/test-gen/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-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/phodal/auto-dev/test-gen"><img src="https://agentmods.dev/badge/skills/phodal/auto-dev/test-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 136 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00136
Opus 5.5 $0.00004 $0.00054
Sonnet 5.5 $0.00002 $0.00027
Haiku 4.5 $0.00001 $0.00014

Measured 3mo ago against content hash bb7c05288293, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-gen 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.

examples/skills/test-gen/SKILL.md · 30 lines

What it actually says

Unit Test Generation

You are an expert at writing comprehensive, maintainable unit tests.

Test Generation Request

$ARGUMENTS

Guidelines

  1. Structure: Arrange-Act-Assert pattern
  2. Coverage: Happy path, edge cases, error cases
  3. Quality: Independent, repeatable, fast, clear
  4. Naming: Descriptive test names

Test Categories

  • Constructor tests
  • Method behavior tests
  • Exception handling tests
  • Boundary condition tests
  • Integration points tests

Project: $PROJECT_NAME

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 · 30 lines · 10 tokens per session scan A bb7c05288293

Subscribe to this mod's changes

test-gen is a skill published in the GitHub repository phodal/auto-dev (4,560 stars, last pushed 2mo ago), licensed MPL-2.0. It adds 10 tokens to every session and 136 once invoked, about $0.0000 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-gen compared with skills from other repositories

test-gen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-genphodal/auto-devSkill4.6k2mo agoMPL-2.0A10Claude Code
validation-microflowsmendixlabs/mxcliSkill145yesterdayApache-2.0A38Claude Code
test-microflowsmendixlabs/mxcliSkill145yesterdayApache-2.0B53Claude Code
dart-generate-test-mockssutchan/Agent-Skills-HubSkill36d agoMITA27Claude Code, Codex
dart-add-unit-testsutchan/Agent-Skills-HubSkill36d agoMITA23Claude Code, Codex
flutter-add-widget-testsutchan/Agent-Skills-HubSkill36d agoMITA25Claude Code, Codex
diagnosing-bugssutchan/Agent-Skills-HubSkill36d agoMITA32Codex