test-gen

Generate Vitest unit and integration tests for claudeHQ packages.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/lasswellt/claudeHQ --skill test-gen-lasswellt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-gen
Source: https://github.com/lasswellt/claudeHQ/tree/main/.claude/skills/test-gen
Command: npx skills add https://github.com/lasswellt/claudeHQ --skill test-gen-lasswellt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generating high-quality Vitest tests for claudeHQ packages is time-consuming and error-prone. This skill automates test creation by analyzing code patterns, existing conventions, and project structure to produce deterministic test files.

Core Features & Use Cases

  • Generates Vitest-based tests that align with existing repository conventions across hub, agent, dashboard, and shared code
  • Reads project patterns and mocks to ensure consistent test scaffolding and coverage
  • Produces deterministic tests with stable fixtures for reliable CI results
  • Supports integration with existing test configurations and mock strategies

Quick Start

Run test-gen on a claudeHQ repository to generate Vitest tests that follow project conventions.

Frequently Asked Questions about test-gen

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

FAQPage Schema
How do I auto-generate Vitest tests for existing code?

Auto-generating Vitest tests involves analyzing code structure and existing test patterns to produce deterministic test files. The skill creates unit and integration tests aligned with repository conventions, covering happy paths, error handling, and edge cases.

How does automated test generation handle mocking strategies?

Automated test generation handles mocking by reading project patterns and existing mocks to ensure consistent test scaffolding. It aligns with the project's specific testing guidelines and mock strategies to produce reliable test coverage.

Can I generate Vitest tests for monorepo packages with different testing conventions?

Yes, you can generate Vitest tests for monorepo packages like hub, agent, dashboard, and shared code. It analyzes the specific code structure and existing test patterns across these packages to ensure tests align with their respective repository conventions.

What is the best way to ensure generated unit tests are deterministic for CI?

The best way to ensure deterministic unit tests for CI is to generate tests with stable fixtures. This skill produces deterministic tests by following project testing guidelines and mock strategies, ensuring reliable results across continuous integration runs.

Does automated Vitest test generation cover error handling and edge cases?

Automated Vitest test generation does cover error handling and edge cases. By analyzing code structure and existing conventions, it ensures tests comprehensively cover happy paths, error handling, and edge cases according to project guidelines.