Test Gen — Testing skill for Claude Code
Generate comprehensive tests for a specified file with edge cases and error scenarios.
How to install Test Gen
Installs to ~/.claude/skills/halflength-ampleness75-claude-code-recipes-test-gen/SKILL.md
mkdir -p ~/.claude/skills/halflength-ampleness75-claude-code-recipes-test-gen && curl -fsSL https://raw.githubusercontent.com/halflength-ampleness75/claude-code-recipes/HEAD/commands/test-gen.md -o ~/.claude/skills/halflength-ampleness75-claude-code-recipes-test-gen/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Test Gen does
model: sonnet description: Generate comprehensive tests for a specified file with edge cases and error scenarios
Generate a thorough test suite for the file or module specified in `$ARGUMENTS`.
Step 1 — Analyze the Target
Read the file specified in `$ARGUMENTS`. If a file path is not provided, ask the user which file to test.
Identify:
- All exported functions, classes, and methods
- Input parameters and their types
- Return types and possible return values
- Side effects (I/O, ne
Alternatives in Testing
- Test Scenarios — Create comprehensive test scenarios from user stories 7.8k ★
- Test After Change Diagnostics.V1 — If any program code changes, run unit-tests and follow up on the test-result (fix code if there is an error) 272 ★
- Run YAML Test — Execute YAML Test Cases 185 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Scenario Generator Arken
Generate the Arken QA release scenarios document. Reads all stories and bugs in artifacts/, then creates artif
Canary Test Pipeline
Run the full test intelligence pipeline — assess critical areas, discover edge cases, trace failure impact, ge
Adversarial Test
Post-build adversarial review — a fresh agent stress-tests recent changes for bugs, regressions, conflicts, an
Gen Evals
Generate EVAL-.md test cases for an agent from its prompt. Usage: /gen-evals [--count N]
Scenario Validator Arken
Validate every scenario and edge case in artifacts/qa-validation/qa-release-scenarios.md against the Arken cod
Canary Edge Cases
Surface edge cases worth testing for a feature, function, or existing test suite.
Related Agents
05 Test Writer
Testing specialist that creates comprehensive unit and integration tests with proper coverage of happy paths,
Requirement Analysis Agent
Decomposes a REQ-ID slice (from doc_manifest.json or knowledge.json) into structured functional/non-functional
Code Coverage Reviewer
Verify that code changes have adequate test coverage by proactively enumerating edge cases from the code's log