testgen

testgen is a skill for Claude Code from sequant-io/sequant. It costs 12 tokens per session (5,771 once invoked), scanned A, original, MIT.

A test-stub generator that reads verification criteria from a GitHub issue and creates starter test files. A test stub is an unfinished test structure that developers complete with the exact checks.

In plain words
What is it for?
Use it to create test stubs for an issue's scenarios, place them in the expected directories, and summarize the generated work in the issue.
Why use it?
It turns written acceptance and verification requirements into a concrete starting point for testing, reducing manual setup work.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; mentions Claude Code.

Good fit Use it to create test stubs for an issue's scenarios, place them in the expected directories, and summarize the generated work in the issue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sequant-io/sequant/testgen
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 sequant-io/sequant --skill testgen
Clone the repo
git clone --depth 1 https://github.com/sequant-io/sequant

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 testgen

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sequant-io/sequant/testgen"><img src="https://agentmods.dev/badge/skills/sequant-io/sequant/testgen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,771 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00012 $0.05771
Opus 5.5 $0.00005 $0.02308
Sonnet 5.5 $0.00002 $0.01154
Haiku 4.5 $0.00001 $0.00577

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

Security

Grade A, and why

testgen scanned grade A with 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

import { exec } from 'child_process';
.claude/skills/testgen/SKILL.md · 755 lines

How it starts

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

Local overrides (read this first). Before following any instruction below, check whether .claude/.local/skills/testgen/overrides.md exists. If it does, read it and treat its contents as authoritative: its instructions take precedence over anything in this skill they conflict with. This is the supported way to tailor /testgen without forking it — overrides.md lives under .claude/.local/, which sequant update and sync never overwrite.

Test Generation Command

You are the "Test Generation Agent" for the current repository.

Purpose

When invoked as /testgen <issue-number>, your job is to:

  1. Read verification criteria from the latest /spec comment on the GitHub issue
  2. Parse each AC's verification method and test scenario
  3. Generate appropriate test stubs based on verification method type
  4. Output stubs to the correct directories with TODO markers
  5. Post a summary comment to the GitHub issue

Invocation

  • /testgen 123 - Generate test stubs for issue #123 based on /spec comment
  • /testgen - Generate stubs for the most recently discussed issue in conversation

Sub-Agent Delegation for Stub Generation

Purpose: Test stub generation is highly mechanical and is delegated to sequant-testgen so the main agent focuses on orchestration.

Upstream caveat: sequant-testgen declares model: haiku, but per anthropics/claude-code#43869 that declaration is currently ignored — the subagent inherits the parent session's model. Older versions of this doc claimed concrete token-cost savings from haiku. Those numbers are not achievable until the upstream fix ships; treat the haiku claim as the intended tier, not the runtime one.

Pattern: Use Agent(subagent_type="sequant-testgen") for:

  1. Parsing verification criteria from /spec comments
  2. Generating individual test stubs from templates
  3. Writing test file content

Benefits:

  • Main agent focuses on orchestration and decisions, not stub templating
  • Designated tier (haiku) will yield token savings once anthropics/claude-code#43869 is fixed; today subagents inherit the parent's model

Read the full file on GitHub · 755 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed dcafed4af72f
  2. 2mo ago Changed · +2 lines 66b7ef2a58b1
  3. 2mo ago Changed · +39 lines 40f8412d4870
  4. 3mo ago First seen · 714 lines · 12 tokens per session scan A 73ffacd5a509

Subscribe to this mod's changes

testgen is a skill published in the GitHub repository sequant-io/sequant (1 stars, last pushed today), licensed MIT. It adds 12 tokens to every session and 5,771 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

testgen compared with skills from other repositories

testgen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testgensequant-io/sequantSkill1todayMITA12Claude Code
github-pr-reviewfvadicamo/dev-agent-skillsSkill722mo agoMITA95Claude Code
github-pr-creationfvadicamo/dev-agent-skillsSkill722mo agoMITA75Claude Code
orchestrating-developmentbrunob54/superpowers-orchestratorSkill329d agoMITA120Claude Code
multi-code-reviewbrunob54/superpowers-orchestratorSkill329d agoMITB162Claude Code
requesting-code-reviewbrunob54/superpowers-orchestratorSkill329d agoMITA83Claude Code
receiving-code-reviewbrunob54/superpowers-orchestratorSkill329d agoMITA49Claude Code