Test Generator Agent

Generate co-located Vitest and testing-library tests for React components, hooks, services, and APIs.

1|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/Verridian-ai/life-os-Pulse-banner-generator --skill test-generator-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Test Generator Agent
Source: https://github.com/Verridian-ai/life-os-Pulse-banner-generator/tree/main/.claude/skills/test-generator-agent
Command: npx skills add https://github.com/Verridian-ai/life-os-Pulse-banner-generator --skill test-generator-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of comprehensive tests across React components, hooks, services, and APIs, ensuring high coverage with minimal manual effort.

Core Features & Use Cases

  • Automated test generation for unit, integration, and E2E tests tailored to targets in codebases.
  • Pattern-driven templates for components, hooks, services, and routes, with AAA/BDD structures.
  • Quality-focused outputs including coverage improvements, edge-case handling, and maintainability notes.
  • Use cases: when teams need rapid test suites for new or refactored code, or to improve test coverage and consistency.

Quick Start

Trigger tests generation by specifying a target file, e.g., src/components/MyComponent.tsx, and allow the agent to produce co-located test skeletons for rapid iteration.

Frequently Asked Questions about Test Generator Agent

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

FAQPage Schema
How do I automatically generate Vitest test suites for React components?

The agent analyzes your codebase to automatically generate comprehensive, co-located tests for React components, hooks, services, and APIs using Vitest and React Testing Library scaffolds with AAA/BDD patterns and mock strategies.

What is the best way to create co-located test skeletons for React hooks and services?

The best way to create co-located test skeletons for React hooks and services is using automated pattern-driven templates that analyze your codebase and generate unit, integration, and E2E tests with structured AAA/BDD formats and mock strategies.

Can I use React Testing Library with Vitest to scaffold tests for existing code?

Yes, you can use React Testing Library with Vitest to scaffold tests for existing code by triggering test generation for a specified target file, which produces co-located test skeletons tailored to your codebase for rapid iteration.

Does automated test generation support edge-case handling and coverage improvements?

Automated test generation does support edge-case handling and coverage improvements by analyzing codebases to output quality-focused tests that include maintainability notes, coverage improvements, and structured mock strategies for React components and APIs.

When do I need to use mock strategies for API and service testing in Vitest?

You need to use mock strategies for API and service testing in Vitest when generating comprehensive integration and unit tests, ensuring that external dependencies are isolated and edge-case behavior is validated accurately.