test-generator

Installation
SKILL.md

Test Generator

Overview

Automatically generate comprehensive tests for existing source code. This skill analyzes functions, classes, and modules to produce well-structured test suites with meaningful assertions, edge case coverage, and proper mocking. It supports multiple frameworks and test types (unit, integration, e2e).

Instructions

When a user asks you to generate tests for their code, follow these steps:

Step 1: Analyze the target code

Read the source file(s) and identify:

  • Functions/methods to test, their signatures, parameters, and return types
  • Dependencies that need mocking (database calls, API requests, file I/O)
  • Edge cases — null inputs, empty arrays, boundary values, error paths
  • Side effects — state mutations, event emissions, DOM changes

Step 2: Detect the testing framework

Related skills
Installs
2
GitHub Stars
47
First Seen
Mar 19, 2026