generate-tests

Generate unit, integration, and edge-case tests aligned with the project's testing framework.

264|11|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/rkz91/coco --skill generate-tests-rkz91
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-tests
Source: https://github.com/rkz91/coco/tree/main/skills/generate-tests
Command: npx skills add https://github.com/rkz91/coco --skill generate-tests-rkz91

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generating comprehensive test coverage can be time-consuming and error-prone; this skill streamlines creating unit, integration, and edge-case tests tailored to a project's conventions, reducing manual effort and improving quality.

Core Features & Use Cases

  • Detects the project's testing setup and conventions to align test generation with the existing framework.
  • Analyzes target code to identify exported APIs, data models, and critical paths requiring tests.
  • Plans a complete test suite including unit tests, integration tests, and edge-case scenarios with clear coverage goals.
  • Provides a ready-to-run test scaffold and guidelines for maintaining test quality across future changes.

Quick Start

Provide a complete, framework-aligned test suite for the target codebase in its existing language and tooling.

Frequently Asked Questions about generate-tests

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

FAQPage Schema
How do I generate unit tests for an existing codebase?

To generate unit tests, provide the target file or module. The skill analyzes exported APIs and critical paths to produce a framework-aligned test suite with clear coverage goals.

How do I create integration tests that adapt to my project's testing framework?

Creating integration tests involves detecting the project's existing testing setup and conventions. It then plans and scaffolds integration tests tailored to align with that specific framework.

What is the best way to cover edge-case scenarios in my test suite?

Covering edge-case scenarios requires analyzing target code for critical paths. The skill plans a complete test suite that explicitly targets edge-case scenarios alongside unit and integration tests.

Can I use this to bootstrap test coverage for any module without manual setup?

You can bootstrap test coverage for any module without manual setup. It detects the existing testing framework, analyzes the target code, and provides a ready-to-run test scaffold automatically.

Does generating test coverage work with any testing framework?

Generating test coverage adapts to the project's existing testing framework. It detects the current setup and conventions to ensure the generated tests align with your established tooling.

Why does test generation require analyzing the target code first?

Test generation requires analyzing target code first to identify exported APIs, data models, and critical paths. This ensures the planned test suite accurately targets the code's actual behavior.