coverage

Analyze Test Coverage Gaps

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "coverage" with this command: npx skills add alirezarezvani/claude-skills/alirezarezvani-claude-skills-coverage

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

  1. 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

  1. Generate Coverage Matrix

Coverage Matrix

AreaRouteTestsStatus
Auth/login5✅ Covered
Auth/register0❌ Missing
Auth/forgot-password0❌ Missing
Dashboard/dashboard3⚠️ Partial (no error states)
Settings/settings0❌ Missing
Checkout/checkout8✅ Covered
  1. Prioritize Gaps

Rank uncovered areas by business impact:

  • Critical — auth, payment, core features → test first

  • High — user-facing CRUD, search, navigation

  • Medium — settings, preferences, edge cases

  • Low — static pages, about, terms

  1. Suggest Test Plan

For each gap, recommend:

  • Number of tests needed

  • Which template from templates/ to use

  • Estimated effort (quick/medium/complex)

Recommended Test Plan

Priority 1: Critical

  1. /register (4 tests) — use auth/registration template — quick
  2. /forgot-password (3 tests) — use auth/password-reset template — quick

Priority 2: High

  1. /settings (4 tests) — use settings/ templates — medium

  2. Dashboard error states (2 tests) — use dashboard/data-loading template — quick

  3. Auto-Generate (Optional)

Ask user: "Generate tests for the top N gaps? [Yes/No/Pick specific]"

If yes, invoke /pw:generate for each gap with the recommended template.

Output

  • Coverage matrix (table format)

  • Coverage percentage estimate

  • Prioritized gap list with effort estimates

  • Option to auto-generate missing tests

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

aws-solution-architect

No summary provided by upstream source.

Repository SourceNeeds Review
General

social-media-analyzer

No summary provided by upstream source.

Repository SourceNeeds Review
General

senior-frontend

No summary provided by upstream source.

Repository SourceNeeds Review