test-coverage

Audit test pyramid coverage and defects across Vitest and Playwright layers.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/maxbeaudoin/productflash --skill test-coverage-maxbeaudoin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-coverage
Source: https://github.com/maxbeaudoin/productflash/tree/main/.claude/skills/test-coverage
Command: npx skills add https://github.com/maxbeaudoin/productflash --skill test-coverage-maxbeaudoin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps teams avoid false confidence by identifying both missing test coverage and defects in existing tests across unit, integration, and e2e layers.

Core Features & Use Cases

  • Test pyramid health check: Reviews the balance of unit, integration, e2e, and smoke coverage to spot anemic or missing-middle setups.
  • Gap detection with evidence: Finds critical flows and branches that lack tests and ranks findings by severity using concrete file:line evidence.
  • Defect detection in existing tests: Flags misleading tests such as shape-only assertions, tautological mocks, skipped/.only tests, brittle selectors, and happy-path-only coverage.

Quick Start

Run the test-coverage audit on your repository to produce a single ranked report of the biggest coverage gaps and the most dangerous false-confidence tests.

Frequently Asked Questions about test-coverage

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

FAQPage Schema
How do I audit my test pyramid to find missing coverage across Vitest and Playwright layers?

A test pyramid health check audits the balance of unit, integration, and e2e layers to spot missing coverage and anemic setups. It reviews your Vitest and Playwright layers to identify critical flows lacking tests and ranks them by severity using concrete file evidence.

What causes false confidence in test coverage despite high line coverage metrics?

False confidence in test coverage stems from defects in existing tests like shape-only assertions, tautological mocks, skipped tests, and happy-path-only coverage. An audit identifies these misleading tests by flagging brittle selectors and isolated successes that fail to validate actual logic branches.

How do I check if my test suite has gaps versus defects in existing tests?

To check for gaps versus defects, run a read-only test audit that classifies findings into missing coverage (gaps) and misleading validations (defects). This process evaluates your test pyramid to determine whether critical flows are untested or if existing tests contain tautological mocks and brittle selectors.

Does a test coverage audit modify my existing test code?

A test coverage audit does not modify test code. It performs a read-only review of your codebase test pyramid to output evidence-based, ranked findings with severity, gap-vs-defect classification, and concrete suggested fixes without altering your current test implementations.

When do I need a test coverage review for my codebase?

You need a test coverage review when you suspect an anemic test pyramid or false confidence in your test suite. It applies to requests for test audits and health checks, specifically evaluating unit (Vitest) and e2e (Playwright) layers to identify missing branches and dangerous test defects.

What is the best way to find brittle selectors and skipped tests in my e2e tests?

The best way to find brittle selectors and skipped tests is through a defect detection audit of existing tests. This process flags misleading tests such as skipped or .only tests, tautological mocks, and brittle selectors within your Playwright e2e suite to eliminate false confidence.