test-generator

Generate test scaffolds from features.json and update the catalog.

Updated Dec 4, 2025
One-click install
npx skills add https://github.com/christianearle01/claude-config-template --skill test-generator-christianearle01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/christianearle01/claude-config-template/tree/main/.claude/skills/test-generator
Command: npx skills add https://github.com/christianearle01/claude-config-template --skill test-generator-christianearle01

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of tests from structured requirements in features.json, reducing manual writing and ensuring test coverage reflects the specified criteria.

Core Features & Use Cases

  • Framework-aware test generation: produces test scaffolds for multiple frameworks (Jest, Vitest, PyTest, Go, and more) based on the project's tech stack.
  • Coverage-driven updates: reads testCriteria, generates tests, and updates features.json with test file paths and adoption status to close gaps between requirements and implementation.
  • End-to-end automation: supports UI component tests, API endpoint tests, and backend service tests, with options to extend patterns and synchronize with the features catalog.

Quick Start

Use the skill by saying "generate tests for feat-001" or "write tests for the login feature" to scaffold tests automatically. Then run the generated tests with your usual test runner.

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 tests from features.json for my project?

To auto-generate tests from features.json, you use a test generator that reads the file, detects your project's tech stack, and creates test scaffolds for frameworks like Jest or PyTest. It updates the catalog with new test paths and synchronizes adoption status.

What test frameworks are supported when generating test scaffolds from structured requirements?

Supported test frameworks for generating test scaffolds include React/Jest, Vitest, Python PyTest, and Go tests. The generator detects your tech stack to output ready-to-run test files tailored to the specific ecosystem.

Can I generate API endpoint tests and UI component tests automatically?

Yes, you can generate API endpoint tests and UI component tests automatically. The test automation supports end-to-end testing for backend services and UI components by reading testCriteria from your features catalog.

How do I scaffold tests for a specific feature like login without writing them manually?

You can scaffold tests for a specific feature like login by prompting the generator to write tests for that feature. It reads the corresponding criteria from features.json and outputs ready-to-run test files for your detected framework.

Does generating tests from a features catalog update the test adoption status automatically?

Yes, generating tests from a features catalog updates the test adoption status automatically. The generator creates tests per criterion and synchronizes the features.json file with the new test file paths to close coverage gaps.

What are the limitations of using framework detection for test generation?

A limitation of framework detection is that it relies on predefined ecosystems like Jest, PyTest, and Go. If your project uses an unsupported testing framework, the generator may not produce ready-to-run test files without extending the patterns.