test-coverage

Generate Vitest unit and integration tests to close coverage gaps in the toolbox-web monorepo.

48|4|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/OysteinAmundsen/toolbox --skill test-coverage-oysteinamundsen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-coverage
Source: https://github.com/OysteinAmundsen/toolbox/tree/main/.github/skills/test-coverage
Command: npx skills add https://github.com/OysteinAmundsen/toolbox --skill test-coverage-oysteinamundsen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyzes the toolbox-web monorepo to identify gaps in unit and integration test coverage and automatically generates tests to raise coverage levels, aligning with existing project patterns (co-located specs, Vitest, happy-dom).

Core Features & Use Cases

  • Identifies coverage gaps across targeted files or projects within libs and apps.
  • Generates Vitest-based unit/integration tests following co-located spec conventions.
  • Updates or suggests adjustments to thresholds to meet per-project coverage requirements.

Quick Start

Provide the path to a target file or project, and the skill will analyze coverage and generate tests to improve coverage.

Frequently Asked Questions about test-coverage

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

FAQPage Schema
How do I identify test coverage gaps in a TypeScript project?

To automate Vitest test generation, provide a path to a target file or project. The skill analyzes coverage gaps and automatically generates unit and integration tests following co-located spec conventions.

Can I automatically generate Vitest tests for my existing project?

Yes, you can automatically generate Vitest tests by providing a target file or project path. The skill analyzes existing coverage and creates new test files using co-located spec conventions to raise coverage levels.

Does this test coverage skill work with Nx monorepos?

Yes, the skill works with Nx monorepos by analyzing libraries and apps within the workspace. It targets co-located spec patterns across the monorepo to generate Vitest-based tests and meet configured coverage requirements.

How do I adjust Vitest coverage thresholds to meet project requirements?

Vitest coverage thresholds are adjusted by updating or suggesting changes to existing project configurations. The skill updates thresholds to ensure the project meets its configured per-project coverage requirements after generating tests.

What are the limitations of automating test coverage with this approach?

A limitation is that it requires existing project configurations and established test patterns to function. It generates Vitest-based tests for specified files or projects but relies on the existing monorepo setup to apply the coverage analysis.