Skip to content
Skillpedia
Testing29k Β· #9473

coverage

What it does

This skill makes the agent list the parts of your app and compare them with the tests you already have. It is for developers and QA people who want to know where testing is missing.

When to use it

  • βœ“When you want to know which pages or features have no tests.
  • βœ“When you are planning what to test next and want the gaps ranked.
  • βœ“When someone asks you for a test coverage report.

Skill link

https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/playwright-pro/skills/coverage/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/playwright-pro/skills/coverage/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œShow me which parts of my app have no tests yet, starting with the most important ones.”

5 new skills a week. 1 minute to read.

How it works

The agent maps your routes, components and API endpoints, then reads your existing test files to see what they cover. It builds a table of covered and missing areas and ranks the gaps by business impact.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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
FAQ

Does it write the missing tests too?

No. It finds and ranks the gaps. Writing the tests is a separate step.

Which kinds of apps does it understand?

It looks at common routing setups such as Next.js, React Router and Vue Router, along with Playwright test files.

What does the coverage table show?

Each area gets a status, such as covered, partial or missing, along with the number of tests it has.

Details

Original description by the author

Use when asked what's not tested or for test coverage gaps ('test coverage', 'coverage gaps', 'missing tests', 'what needs testing'). Maps untested pages and flows.

repo: alirezarezvani/claude-skills

Popularity

GitHub stars
29k
Ranking position
#9473
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills