test-gen

Generate unit tests for source code based on identified testing gaps.

1|1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/trevorbyrum/claude-skills-suite --skill test-gen-trevorbyrum
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-gen
Source: https://github.com/trevorbyrum/claude-skills-suite/tree/main/skills/test-gen
Command: npx skills add https://github.com/trevorbyrum/claude-skills-suite --skill test-gen-trevorbyrum

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill bridges the gap between identifying test coverage issues and implementing robust tests, ensuring code quality and reliability.

Core Features & Use Cases

  • Automated Test Generation: Creates tests based on findings from test-review or user-specified targets.
  • Convention Adherence: Generates tests that match the project's existing framework, style, and patterns.
  • Use Case: After running test-review and identifying missing error path tests for a critical API endpoint, use test-gen to automatically create those tests, ensuring they meet quality standards and pass review.

Quick Start

Generate tests for the code identified as having gaps by the test-review skill.

Frequently Asked Questions about test-gen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate unit tests automatically for code with missing coverage?

You can generate unit tests automatically by providing source code targets or identified testing gaps. The tool creates test files that adhere to project-specific conventions and frameworks, including edge cases and error paths.

Can I create unit tests that match my project's existing testing framework and style?

Yes, automated test generation adheres to your project's existing framework, style, and patterns. It ensures newly generated tests match your established conventions for consistent code quality.

How does automated test generation handle edge cases and error paths?

Automated test generation explicitly includes edge cases and error paths in the created test files. It uses sub-agent execution to generate tests and then runs them for validation to ensure they pass.

What is the best way to bridge the gap between finding test coverage issues and writing tests?

The best way to bridge coverage gaps is to use automated test generation after identifying missing tests. It directly creates robust tests from user-specified targets to ensure code reliability.

Does automated test generation require a test review before creating files?

A test review is not strictly required, as you can specify user-defined targets directly. However, automated test generation is designed to create tests based on findings from a test review.

What are the limitations of using automated test generation for CI/CD pipelines?

The primary limitation is that generated tests require sub-agent execution for validation. You must run the subsequent test execution step to ensure the generated files actually pass within your CI/CD pipeline.