gen-tests

Generate test stubs from documented specs and index coverage backlog.

1|Updated May 19, 2026
One-click install
npx skills add https://github.com/edonghyun/donghyuns-agent-tools --skill gen-tests-edonghyun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gen-tests
Source: https://github.com/edonghyun/donghyuns-agent-tools/tree/main/plugins/spec-mirror/skills/gen-tests
Command: npx skills add https://github.com/edonghyun/donghyuns-agent-tools --skill gen-tests-edonghyun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It converts product specs into a concrete test backlog so teams can turn documented flows, endpoints, and invariants into planned coverage instead of relying on memory or manual follow-up.

Core Features & Use Cases

  • Spec-to-Test Planning: Reads the project’s specs directory and maps documented behavior to unit, integration, and end-to-end test stubs.
  • Framework-Aware Stub Creation: Detects the active test runner and writes stubs using the project’s existing conventions without overwriting established tests.
  • Coverage Indexing: Produces a stub inventory that records what was created, what already exists, and whether each stub is an active todo or an inactive planning stub.
  • Use Case: A developer finishes writing backend and flow specs and wants a structured set of test placeholders that can be filled in later without guessing target files or coverage gaps.

Quick Start

Ask the skill to generate test stubs from the project specs and create the stub index for the detected test framework.

Frequently Asked Questions about gen-tests

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

FAQPage Schema
How do I generate test stubs from project specs automatically?

Generating test stubs from project specs is done by reading the specs directory and mapping documented behavior to unit, integration, and end-to-end test placeholders. This process creates a structured coverage backlog without overwriting existing tests.

Can I create a test coverage backlog without overwriting my existing Vitest or Playwright tests?

You can create a coverage backlog without overwriting existing tests because the system detects the active test runner and writes stubs using project conventions. It records what already exists and only adds new placeholders for missing coverage.

How does spec-to-test planning work for tracking endpoints and invariants?

Spec-to-test planning works by reading documented flows, endpoints, and invariants from the specs directory, then mapping them directly to organized test stubs. This converts documented behavior into a planned coverage backlog.

Does this test generation approach support both unit and end-to-end testing frameworks?

This test generation approach supports unit, integration, and end-to-end testing by detecting the active test framework in the project. It then generates framework-aware stubs that align with the established testing conventions.

What is a stub inventory and how does it help manage test coverage?

A stub inventory is an index that records what test stubs were created, what already exists, and whether each stub is an active todo or inactive planning placeholder. It provides a structured backlog to manage coverage gaps systematically.

When should I avoid using automated test stub generation for my project?

You should avoid automated test stub generation if your project lacks documented specs, as the tool relies on reading a specs directory to map flows and invariants. Without existing specs, there is no source material to generate the coverage backlog.