Coverage skill for Claude

Find what is not tested: map untested pages and flows and coverage gaps.

When Claude uses it

Use whenever the user asks what needs tests, about missing tests or test coverage.

Coverage SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

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

How to install Coverage

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/engineering-team/playwright-pro/skills/coverage#main ~/.claude/skills/coverage

Codex

npx degit alirezarezvani/claude-skills/engineering-team/playwright-pro/skills/coverage#main ~/.codex/skills/coverage

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Coverage skill do?

Find what is not tested: map untested pages and flows and coverage gaps. Use whenever the user asks what needs tests, about missing tests or test coverage.

+How do I install Coverage in Claude Code?

Copy the skill folder into ~/.claude/skills/coverage, for example with "npx degit alirezarezvani/claude-skills/engineering-team/playwright-pro/skills/coverage#main ~/.claude/skills/coverage". Claude Code loads it automatically and uses it when a task matches.

+Does Coverage work with ChatGPT or Codex?

Yes. Coverage uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/coverage. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Coverage free?

Coverage is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related testing & code review skills

  1. Agent Browser

    Official

    Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms,…

    vercel-labs/agent-browser★ 53k
  2. Playwright

    Official

    Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction,…

    openai/skills★ 29k
  3. Playwright Skill

    Complete browser automation with Playwright. Auto-detects dev servers, writes reusable test scripts, and supports screenshots, responsive…

    lackeyjb/playwright-skill★ 3.3k
  4. Cpo Review

    Challenge a roadmap, PMF claim or feature kill. Use whenever asked or /c-level-agents:cpo-review.

    alirezarezvani/claude-skills★ 30k
  5. Fix

    Diagnose and fix a failing or flaky Playwright test. Use whenever a test fails, passes only sometimes, breaks intermittently or needs…

    alirezarezvani/claude-skills★ 30k
  6. Gc Review

    Use for /c-level-agents:gc-review, or to challenge a term sheet, customer MSA, IP assignment or regulatory exposure before signing.

    alirezarezvani/claude-skills★ 30k
  7. Human Gate

    Use before shipping anything that needs human sign-off (a plan, spec, report, page, migration or irreversible action).

    alirezarezvani/claude-skills★ 30k
  8. Md Review

    Use when converting a markdown code review with diff blocks and severity callouts into a two-column HTML review.

    alirezarezvani/claude-skills★ 30k
  9. Medical Device Software

    Use for any question about the software inside a medical device, SaMD or regulated health app - which IEC 62304 safety class (A/B/C) it is…

    alirezarezvani/claude-skills★ 30k

See all testing & code review skills →

More skills from alirezarezvani

  1. Cpo Advisor

    Product leadership: PMF measurement, product vision, portfolio investment, product org design, board product reporting.

    alirezarezvani/claude-skills★ 30k
  2. Cra Readiness

    Use when a company that sells software, connected devices or firmware in the EU asks whether the Cyber Resilience Act (CRA, Regulation…

    alirezarezvani/claude-skills★ 30k

All skills by alirezarezvani →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.