test-generator

Generates Vitest unit tests and Playwright e2e scaffolds from acceptance criteria via TDD workflows.

1|1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/Cheggin/request-for-startups --skill test-generator-cheggin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/Cheggin/request-for-startups/tree/main/skills/test-generator
Command: npx skills add https://github.com/Cheggin/request-for-startups --skill test-generator-cheggin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Acceptance criteria are often scattered and incomplete, delaying test-driven development; this Skill auto-generates Vitest unit tests and Playwright e2e tests directly from product specifications to accelerate safe, test-first progress.

Core Features & Use Cases

  • Generates Vitest unit test stubs from acceptance criteria and data models.
  • Creates Playwright e2e test scaffolds for key user journeys.
  • Produces mocks and fixtures for external services and APIs.
  • Enforces red-green-test-driven development workflow and quality checks.

Quick Start

Provide the product spec acceptance criteria and run the test generator to produce Vitest unit tests and Playwright e2e test stubs ready for development.

Frequently Asked Questions about test-generator

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

FAQPage Schema
How do I auto-generate Vitest unit tests from acceptance criteria?

To auto-generate Vitest unit tests from acceptance criteria, provide your product specifications to the test generator. It produces unit test stubs, mocks, and fixtures ready for test-driven development.

Can I generate Playwright e2e tests from product specs automatically?

Yes, you can generate Playwright e2e tests from product specs automatically. The generator creates e2e test scaffolds for key user journeys directly from your acceptance criteria.

What is the red-green workflow in test-driven development?

The red-green workflow in test-driven development involves writing failing tests first, then implementing code to pass them. This generator enforces that workflow by producing test stubs before implementation.

Does this test generator check for brittle or loose tests?

Yes, the test generator checks for brittle or loose tests during generation. It evaluates test coverage against your stacks.yml thresholds and blocks feature completion if standards are not met.

How do I create mocks and fixtures for external services in Vitest?

To create mocks and fixtures for external services in Vitest, input your acceptance criteria and data models. The generator automatically produces the required mocks and fixtures for your APIs.

When should I not use auto-generated test stubs for e2e testing?

You should not use auto-generated test stubs when your acceptance criteria are scattered or incomplete. The generator relies on clear product specifications to produce accurate e2e testing scaffolds.