PluginBench
Skill
Pass
Audit score 90

coverage

alirezarezvani/claude-skills

Analyze test coverage gaps and identify what's tested vs. missing.

What is coverage?

Maps all testable surfaces in your application (routes, components, API endpoints, user flows) and compares them against existing tests to identify coverage gaps. Use this when you need to understand what's not tested and prioritize which areas to test next.

  • Catalog all routes, pages, components, API endpoints, and critical user flows
  • Scan existing test files to extract coverage by area
  • Generate a coverage matrix showing tested vs. untested surfaces
  • Rank gaps by business impact (critical, high, medium, low)
  • Recommend a prioritized test plan with effort estimates
  • Optionally auto-generate tests for identified gaps

How to install coverage

npx skills add https://github.com/alirezarezvani/claude-skills --skill coverage
Claude Code
Cursor
Windsurf
Cline

How to use coverage

  1. 1.Run the skill when you mention test coverage, gaps, or missing tests
  2. 2.The skill will explore your codebase to map routes, components, and endpoints
  3. 3.Review the generated coverage matrix showing tested vs. untested areas
  4. 4.Check the prioritized gap list ranked by business impact
  5. 5.Decide whether to auto-generate tests for the top gaps or handle them manually

Use cases

Good for
  • Assess test coverage before a major release to identify risky untested areas
  • Plan testing work by prioritizing critical paths like auth and payment flows
  • Discover which components and API endpoints lack test coverage
  • Create a coverage matrix to track testing progress across the application
  • Generate missing tests for high-impact gaps using recommended templates
Who it's for
  • QA engineers planning test strategy
  • Developers auditing test coverage before deployment
  • Tech leads assessing application testing maturity
  • Teams adopting test-driven development practices

coverage FAQ

What file types does the skill scan for tests?

It scans *.spec.ts and *.spec.js files to extract test coverage information.

How does it determine which areas are tested?

It analyzes test files for page.goto() calls (routes), locator usage (components), and mocked/hit API endpoints to map coverage.

Can it automatically generate tests for gaps?

Yes, if you approve, it can invoke test generation for identified gaps using recommended templates from the templates/ directory.

How are gaps prioritized?

Gaps are ranked by business impact: Critical (auth, payment, core features), High (user-facing CRUD), Medium (settings, edge cases), and Low (static pages).

Full instructions (SKILL.md)

Source of truth, from alirezarezvani/claude-skills.


name: "coverage" description: >- Analyze test coverage gaps. Use when user says "test coverage", "what's not tested", "coverage gaps", "missing tests", "coverage report", or "what needs testing".

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

| Area | Route | Tests | Status |
|---|---|---|---|
| Auth | /login | 5 | ✅ Covered |
| Auth | /register | 0 | ❌ Missing |
| Auth | /forgot-password | 0 | ❌ Missing |
| Dashboard | /dashboard | 3 | ⚠️ Partial (no error states) |
| Settings | /settings | 0 | ❌ Missing |
| Checkout | /checkout | 8 | ✅ Covered |

4. Prioritize Gaps

Rank uncovered areas by business impact:

  1. Critical — auth, payment, core features → test first
  2. High — user-facing CRUD, search, navigation
  3. Medium — settings, preferences, edge cases
  4. Low — static pages, about, terms

5. 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
3. /settings (4 tests) — use settings/ templates — medium
4. Dashboard error states (2 tests) — use dashboard/data-loading template — quick

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

Related skills

More from alirezarezvani/claude-skills and the wider catalog.

CTcto-advisor logo

cto-advisor

alirezarezvani/claude-skills

Technical leadership guidance for engineering teams, architecture decisions, and technology strategy. Use when assessing technical debt, scaling engineering teams, evaluating technologies, making architecture decisions, establishing engineering metrics, or when user mentions CTO, tech debt, technical debt, team scaling, architecture decisions, technology evaluation, engineering metrics, DORA metrics, or technology strategy.

791 installs
CUcustomer-success-manager logo

customer-success-manager

alirezarezvani/claude-skills

Monitors customer health, predicts churn risk, and identifies expansion opportunities using weighted scoring models for SaaS customer success. Use when analyzing customer accounts, reviewing retention metrics, scoring at-risk customers, or when the user mentions churn, customer health scores, upsell opportunities, expansion revenue, retention analysis, or customer analytics. Runs three Python CLI tools to produce deterministic health scores, churn risk tiers, and prioritized expansion recommendations across Enterprise, Mid-Market, and SMB segments.

673 installs
DAdatabase-designer logo

database-designer

alirezarezvani/claude-skills

Use when the user asks to design database schemas, plan data migrations, optimize queries, choose between SQL and NoSQL, or model data relationships.

641 installs
ENengineering-advanced-skills logo

engineering-advanced-skills

alirezarezvani/claude-skills

Index of 37 advanced engineering skills for agent design, RAG, CI/CD, observability, reliability, and platform operations.

1.9k installs
ENengineering-skills logo

engineering-skills

alirezarezvani/claude-skills

Index of 32 production-ready engineering skills for Claude Code, Cursor, and 8+ agents.

2.1k installs
EVeval logo

eval

alirezarezvani/claude-skills

Evaluate and rank agent results by metric, LLM judge, or hybrid scoring for AgentHub sessions.

1.4k installs