New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Coverage analysis that maps app surfaces against existing Playwright specs and ranks the gaps by business impact.

skills.sh installs
1.7K
GitHub stars
30.3K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers routes, components, API endpoints, and user flows, then matches each against existing *.spec.ts and *.spec.js files
  • Produces a coverage matrix with per-route test counts and a status of covered, partial, or missing
  • Ranks uncovered areas as critical, high, medium, or low, with suggested test counts and effort estimates
  • Offers to run /pw:generate for the top gaps using templates from templates/

Install

$ npx -y skills add alirezarezvani/claude-skills --skill coverage -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Analyze Test Coverage Gaps

Map all testable surfaces in the application and identify what's tested vs. what's missing.

Steps

1. Map Application Surface

Use the Explore subagent to catalog:

Routes/Pages:

  • Scan route definitions (Next.js app/, React Router config, Vue Router, etc.)
  • List all user-facing pages with their paths

Components:

  • Identify interactive components (forms, modals, dropdowns, tables)
  • Note components with complex state logic

API Endpoints:

  • Scan API route files or backend controllers
  • List all endpoints with their methods

User Flows:

  • Identify critical paths: auth, checkout, onboarding, core features
  • Map multi-step workflows

2. Map Existing Tests

Scan all *.spec.ts / *.spec.js files:

  • Extract which pages/routes are covered (by page.goto() calls)
  • Extract which components are tested (by locator usage)
  • Extract which API endpoints are mocked or hit
  • Count tests per area

3. Generate Coverage Matrix

## Coverage Matrix

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
Testing & QA, Code Review & Quality
First seen
Apr 16, 2026

More from alirezarezvani/claude-skills

All 259

Similar to Coverage

More Testing & QA