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

SKILL.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

  1. Analyze the input code structure and identify required test bounds.
  2. Generate minimum 5 tests spanning happy_path, edge_case, and failure_mode.
  3. Provide the full code block for each test.
  4. If testing relies on mocked dependencies, explicitly list them.
  5. 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:

json
{
"status": "failed",
"reason": "<reason>",
"retryable": true
}

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/amrshah/production-grade-agent-skills/test-generation/badge)](https://verified-skill.com/skills/amrshah/production-grade-agent-skills/test-generation)

Something wrong with this skill or its page? Tell us.