test-coverage

Audit test coverage and enforce Test-Driven Development workflows with Vitest.

13|3|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/phrazzld/agent-skills --skill test-coverage-phrazzld
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-coverage
Source: https://github.com/phrazzld/agent-skills/tree/main/core/test-coverage
Command: npx skills add https://github.com/phrazzld/agent-skills --skill test-coverage-phrazzld

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of ensuring code quality by enforcing Test-Driven Development (TDD) practices and actively identifying and rectifying test coverage gaps.

Core Features & Use Cases

  • Test Audit: Analyzes existing test infrastructure and configuration.
  • Coverage Analysis: Identifies areas of the codebase lacking sufficient test coverage.
  • TDD Enforcement: Promotes and enforces the red-green-refactor workflow for new code.
  • Testing Philosophy Guidance: Advocates for behavior-driven tests over implementation-heavy ones.
  • Vitest Configuration: Provides guidance on setting up Vitest for optimal performance and reliability.

Quick Start

Run a test coverage audit on the current project to identify any gaps.

Frequently Asked Questions about test-coverage

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

FAQPage Schema
How do I identify and fix gaps in my codebase test coverage?▼

Enforcing TDD involves strictly following the red-green-refactor workflow for new code. This Skill promotes adherence to Test-Driven Development principles by integrating this cycle into your testing process, ensuring robust code quality.

How do I configure Vitest for optimal testing performance?▼

Configuring Vitest requires specific setup patterns for reliability. This Skill provides guidance on Vitest configuration best practices, ensuring your test infrastructure operates optimally and supports behavior-driven testing.

What is the best way to audit test coverage for a Vitest project?▼

Yes, you can promote behavior-driven tests over implementation-heavy ones by enforcing specific testing philosophies. This Skill advocates for behavior-driven patterns, ensuring your tests focus on actual code behavior rather than internal implementation details.

Do I need to follow specific testing patterns to improve code quality through TDD?▼

Improving code quality through TDD requires adherence to the red-green-refactor workflow and behavior-driven testing patterns. This Skill enforces these specific practices to identify coverage gaps and ensure robust testing standards.