amrshah/production-grade-agent-skills/test-generation
Claude Code and agent skill by amrshah/production-grade-agent-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install amrshah/production-grade-agent-skills/test-generationSKILL.md
Test Generation Skill
Description: Generates deterministic unit and edge case tests for a given target code file.
Execution Contract
- Guarantees: Outputs structured, compilable test code verifying happy paths, edge cases, and failure modes using mock isolated dependencies.
- Does NOT Guarantee: 100% test coverage or that tests will logically succeed without human verification of the mocked states.
I/O Paths (Standardized)
- Input Artifact:
artifacts/input/test-generation/target_code.txt - Output Artifact:
artifacts/output/test-generation/report.json
Instructions
- Analyze the input code structure and identify required test bounds.
- Generate minimum 5 tests spanning
happy_path,edge_case, andfailure_mode. - Provide the full code block for each test.
- If testing relies on mocked dependencies, explicitly list them.
- Output MUST match the exact schema detailed in
schema.json.
Hard Rejection Criteria (Validation Triggers)
Your output will be REJECTED via the deterministic validator if:
- You output fewer than 5 tests.
- You fail to include edge case coverage.
- The tests are pseudocode or do not contain valid assertions.
If you cannot fulfill these constraints, fallback to the failure output:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/test-generation/skill.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/amrshah/production-grade-agent-skills/test-generation)