metago-test-generator

metago-test-generator is a skill for Claude Code, Codex from metago-ai/metagolifeform. It costs 26 tokens per session (696 once invoked), scanned A, original, MIT.

A test-generation skill that creates unit tests, boundary-case tests, and integration-test structures from source code. Unit tests check small pieces of code; integration tests check how modules work together.

In plain words
What is it for?
It helps generate executable tests, suggest mocks and setup, estimate code-path coverage, and identify cases that still need human-written assertions.
Why use it?
It reduces the manual effort of finding normal, empty, invalid, and exceptional inputs that code should handle.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit It helps generate executable tests, suggest mocks and setup, estimate code-path coverage, and identify cases that still need human-written assertions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metago-ai/metagolifeform/metago-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.

Any agent
npx skills add metago-ai/metagolifeform --skill metago-test-generator
Clone the repo
git clone --depth 1 https://github.com/metago-ai/metagolifeform

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/metago-ai/metagolifeform/metago-test-generator"><img src="https://agentmods.dev/badge/skills/metago-ai/metagolifeform/metago-test-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 696 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.00696
Opus 5 $0.00013 $0.00348
Sonnet 5 $0.00005 $0.00139
Haiku 4.5 $0.00003 $0.00070

Measured 8d ago against content hash 24f452481bf7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

metago-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 8d 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/agent-plugins-1.0.0/skills/metago-test-generator/SKILL.md · 67 lines

What it actually says

测必全 - 元构·测试生成师

我是测必全,全息智能引擎架构专家团的测试生成师。我的名字寓意"测试必须全面"——我基于源代码自动生成单元测试、边界用例和集成测试,全方位保障代码质量。

触发词

  • @测试生成
  • 为这段代码生成测试
  • 生成测试用例

核心能力

  1. 单元测试生成:解析代码函数签名和逻辑,生成对应的测试代码
  2. 边界用例生成:识别并生成边界条件、空值、异常输入的测试
  3. 集成测试规划:分析模块间依赖关系,生成集成测试框架
  4. 覆盖率估算:评估生成的测试对代码路径的覆盖比例

元构思维框架

  • 全息重构论:测试覆盖每个函数/模块的完整行为空间
  • 冲突互补论:当测试完整性与执行效率冲突时寻找平衡
  • 溯源透明论:每个测试用例标注其覆盖的源代码位置

工作流程

  1. 接收源代码和MCP工具参数
  2. 调用 MCP Server test_generation 工具生成测试
  3. 分析工具返回的结构化结果(测试用例列表、覆盖率估算等)
  4. 从元构思想体系视角补充边界场景和异常路径
  5. 组织完整的测试套件输出
  6. 通过 SendMessage 将完整测试套件回传给主理人

输出规范

  • 使用 pytest 框架(Python)或对应语言的流行测试框架
  • 每个测试用例包含:名称、描述、输入数据、断言条件
  • 标注测试类型(单元/边界/集成)
  • 提供 setup 说明和 mock 建议

MCP 工具调用

{
  "action": "test_generation",
  "params": {
    "code": "<源代码>",
    "filename": "<文件名>"
  }
}

注意事项

  • 对无法自动生成的部分(如复杂业务逻辑断言)标注"需手动完成"
  • 优先覆盖核心业务逻辑和频繁调用的函数
  • 生成的测试代码必须是可执行的、语法正确的
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. 8d ago First seen · 67 lines · 26 tokens per session scan A 24f452481bf7

Subscribe to this mod's changes

metago-test-generator is a skill published in the GitHub repository metago-ai/metagolifeform (4 stars, last pushed 10d ago), licensed MIT. It adds 26 tokens to every session and 696 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-09-03.

Related

Other skills, from other repositories

plugin-test

A testing guide for Zhin.js plugins using Vitest, a JavaScript and TypeScript testing framework. It focuses on checking command and tool behavior, ordinary business logic, and the plugin package’s required structure.

zhinjs/zhin · 51 tokens

java-conventions

Use when a ticket adds or changes Java code and it must follow the repo's Java conventions — modern Java (records, sealed types, pattern matching, switch expressions), Optional discipline, immutability, Spring Boot constructor injection, and JUnit 5 + Mockito tests. Invoke for "add this in Java", "fix the Java build"…

tmj-90/gaffer · 89 tokens

python-conventions

Use when a ticket adds or changes Python code and it must follow the repo's Python conventions — PEP 8, full type hints, dataclasses, pythonic idioms, explicit error handling, and pytest with coverage. Invoke for "add this in Python", "fix the type/lint errors", "add the FastAPI/Django endpoint", or as the language…

tmj-90/gaffer · 84 tokens

add-unit-test

Use when a ticket asks for new unit tests, or when an acceptance criterion requires test coverage for a function/module/component and none exists. Invoke for "add tests for X", "cover the Y edge case", or raising coverage on a specific unit.

tmj-90/gaffer · 54 tokens

run-coverage

Use when a ticket or acceptance criterion sets a coverage threshold or asks to raise coverage on a unit, and you need to measure and evidence it. Invoke for "coverage must stay above N%", "report the coverage delta", or "prove the new code is covered".

tmj-90/gaffer · 57 tokens

test-gen

A tool for generating unit tests, which check small pieces of a program separately, for Python and JavaScript code.

guyulong/cn-agent-skills · 8 tokens