test-generation

test-generation is a skill for Claude Code, Codex from mizukaizen/hive-doctrine-mcp. It costs 0 tokens per session (635 once invoked), scanned A, original, MIT.

A skill that creates tests for code changes by examining the changed code and the tests already in the project.

In plain words
What is it for?
Adding test coverage, writing tests for new or changed code, and identifying which cases are still missing.
Why use it?
It helps find untested behavior, including normal inputs, edge cases, errors, side effects, and outside services that need to be simulated.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Adding test coverage, writing tests for new or changed code, and identifying which cases are still missing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mizukaizen/hive-doctrine-mcp/test-generation
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 mizukaizen/hive-doctrine-mcp --skill test-generation
Clone the repo
git clone --depth 1 https://github.com/mizukaizen/hive-doctrine-mcp

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 test-generation

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mizukaizen/hive-doctrine-mcp/test-generation"><img src="https://agentmods.dev/badge/skills/mizukaizen/hive-doctrine-mcp/test-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 635 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.00000 $0.00635
Opus 5 $0.00000 $0.00318
Sonnet 5 $0.00000 $0.00127
Haiku 4.5 $0.00000 $0.00064

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

Security

Grade A, and why

test-generation 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 11d 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.

gated-products/honey/claude-packages/HD-4008-qa-team/skills/test-generation/SKILL.md · 63 lines

How it starts

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

Test Generation Skill

Use when generating tests for code changes. Analyses diff, identifies testable units, generates comprehensive test cases.

When to Activate

  • User asks to "write tests", "add test coverage", or "test this code"
  • The /generate-tests command is invoked
  • User asks "how should I test this?" or "what tests are missing?"

Process

  1. Read the code under test. Understand what it does before writing tests. Identify:

    • Public interface (exported functions, class methods, API endpoints)
    • Input parameters and their types
    • Return values and their types
    • Side effects (database writes, API calls, file operations, event emissions)
    • Error conditions and how they are handled
    • Dependencies that will need mocking
  2. Read existing tests. Before writing new tests:

    • Check if tests already exist for this code
    • Match the existing test style and conventions
    • Identify gaps in existing coverage
    • Use the same test framework and assertion library
  3. Plan the test cases. For each function/method, identify:

    Category What to Test
    Happy path Normal input, expected output
    Boundary Min/max values, empty collections, zero, one
    Invalid input Wrong type, null, undefined, out of range
    Error handling Network failures, missing data, permission denied
    State changes Side effects verified (DB updated, event emitted)
    Concurrency Race conditions, concurrent access (if applicable)
  4. Generate tests following AAA pattern.

    Each test must:

    • Have a descriptive name that explains the scenario and expected outcome
    • Set up exactly the state needed (no more, no less)
    • Perform exactly one action
    • Assert exactly one behaviour
    • Clean up after itself if it modifies shared state
  5. Generate test fixtures. If the tests need test data:

    • Create factory functions or fixtures in the fixtures/ directory
    • Use realistic but not real data
    • Make fixtures composable (base fixture + overrides)

Read the full file on GitHub · 63 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. 11d ago First seen · 63 lines · 0 tokens per session scan A f8b9379260ed

Subscribe to this mod's changes

test-generation is a skill published in the GitHub repository mizukaizen/hive-doctrine-mcp (0 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 635 tokens. 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-31.