test-cases-generation

test-cases-generation is a skill for Claude Code from tercel/spec-forge. It costs 132 tokens per session (7,046 once invoked), scanned A, original, MIT.

A test-case design guide that creates structured descriptions of what to test, how to test it, and what result to expect. It can analyze project code or specification documents and consider multiple coverage dimensions.

In plain words
What is it for?
Use it to generate or improve test cases for APIs, functions, user-interface components, command-line tools, and other project behavior.
Why use it?
It helps turn code or requirements into a more complete set of testing scenarios before anyone writes the test code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the spec-forge plugin — 12 skills, 11 commands shipped together

Good fit Use it to generate or improve test cases for APIs, functions, user-interface components, command-line tools, and other project behavior.

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

Made for: Claude Code.

Or install spec-forge, the plugin that ships this one along with the rest of its 12 skills, 11 commands.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tercel/spec-forge/test-cases-generation"><img src="https://agentmods.dev/badge/skills/tercel/spec-forge/test-cases-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,046 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.00132 $0.07046
Opus 5.5 $0.00053 $0.02818
Sonnet 5.5 $0.00026 $0.01409
Haiku 4.5 $0.00013 $0.00705

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

Security

Grade A, and why

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

skills/test-cases-generation/SKILL.md · 449 lines

How it starts

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

Test Cases Generation Skill

What Are Test Cases?

Test cases are structured specifications that define what to test, how to test it, and what the expected outcome should be. Unlike a test plan (which focuses on strategy, schedule, roles, and process), test cases are the actionable core — each one is detailed enough for an engineer to translate directly into test code.

This skill treats test case design as a distinct discipline from test planning and test implementation:

  • Test Planning (strategy, process, roles) → optional, available via --formal flag
  • Test Design (what cases, which dimensions, what coverage) → this skill's core output
  • Test Implementation (writing code) → downstream, handled by code-forge:tdd

Core Capabilities

Auto-Scan and Extract

The skill can automatically scan a project to extract testable units without requiring the user to provide a specification document. It identifies:

  • REST API routes — endpoints, methods, parameters, response codes
  • Functions and methods — signatures, parameter types, return values, branch logic
  • React/Vue/Svelte components — props, events, state transitions
  • CLI commands — commands, subcommands, flags, arguments
  • AI tool definitions — tool names, trigger conditions, parameters, combination patterns
  • Database models — schemas, relationships, constraints
  • Event handlers — event types, payloads, side effects
  • Middleware/interceptors — conditions, transformations, error handling

Multi-Dimensional Coverage

Every test case set is organized across dimensions. The skill provides built-in dimensions and can auto-detect project-specific dimensions.

Built-in Dimensions

Coverage Depth (always applied):

Level Name Description Baseline per unit (scale to risk)
L1 Happy Path Basic correct behavior with valid inputs 1 case
L2 Boundary & Error Edge cases, invalid inputs, error handling 2 cases
L3 Negative Scenarios that should NOT trigger behavior 1 case

Read the full file on GitHub · 449 lines

Files

What ships with it

3 files 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 First seen · 449 lines · 132 tokens per session scan A 9d56531f3ba4

Subscribe to this mod's changes

test-cases-generation is a skill published in the GitHub repository tercel/spec-forge (10 stars, last pushed 1mo ago), licensed MIT. It adds 132 tokens to every session and 7,046 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

alloy-structural-analysis

Formal model-checking layer over Allium specs using Alloy 6 + Electrod + nuXmv. Trigger on: "rigorous structural analysis", "model-check this spec", "verify this Allium spec formally", "check for structural divergence with Alloy", "run the Alloy loop", "does the code actually satisfy this spec", temporal/CTL/LTL…

tkolleh/skills · 237 tokens

grade-iterate

Phase 3 of building a Claude Managed Agent — the bounded grade→iterate loop. Define a CMA outcome (a required markdown rubric graded by an isolated grader), read each verdict, decide the next move (sharpen / re-run / promote to schedule), and once a version passes, run held-back eval cases in parallel. Use when the…

alirezarezvani/claude-skills · 194 tokens

offensive-fuzzing

Practical offensive fuzzing methodology covering target identification, fuzzer selection (AFL++, libFuzzer, Honggfuzz, Boofuzz, syzkaller), harness writing, corpus curation, mutation strategies, coverage measurement, and crash triage. Use when setting up or running fuzz campaigns against any target: file parsers…

SnailSploit/Claude-Red · 91 tokens

offensive-race-condition

Race condition (TOCTOU) testing checklist: identifying timing windows, Burp Suite Turbo Intruder, Last-Byte sync technique, rate limit bypass, double-spend attacks, and concurrent request exploitation. Use for web app race condition testing or bug bounty time-of-check-to-time-of-use bugs.

SnailSploit/Claude-Red · 0 tokens

user-story-writer

Escribir historias de usuario bien estructuradas con criterios de aceptación y casos extremos. Úsalo cuando te pidan escribir historias de usuario, crear tickets a partir de un resumen de características, convertir un PRD en historias o redactar criterios de aceptación. Produce historias listas para estimar en formato…

mohitagw15856/pm-claude-skills · 79 tokens

112-java-maven-plugins

Use when you need to add or configure Maven plugins in your pom.xml — including quality tools (enforcer, surefire, failsafe, jacoco, pitest, spotbugs, pmd), security scanning (OWASP), code formatting (Spotless), version management, container image build (Jib), build information tracking, and benchmarking (JMH) …

jabrena/plinth · 149 tokens