Analyze Test Coverage Gaps

Analyze test coverage gaps. Use when user says "test coverage", what's not tested", "coverage gaps", "missing tests", "coverage report", or "what needs testing".
--- 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:
Overview
Map all testable surfaces in the application and identify what's tested vs. what's missing.
What you get
- Coverage matrix (table format)
- Coverage percentage estimate
- Prioritized gap list with effort estimates
- Option to auto-generate missing tests
Manual install (npx, ZIP)
npx skills add alirezarezvani/claude-skills --skill coverage -g -a claude-codemkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/alirezarezvani/claude-skills/tar.gz/19392f7a0826 \
| tar -xz -C ~/.claude/skills --strip-components=4 claude-skills-19392f7a0826/engineering-team/playwright-pro/skills/coverageNew-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/7cb69eea107f693b52d9/coverage.zip" -OutFile "$env:TEMP\coverage.zip"; Expand-Archive "$env:TEMP\coverage.zip" -DestinationPath "$HOME\.claude\skills" -ForceConnects with Agent Alley MCP · agentalley.io/mcp
Files included
SKILL.md2.7 KB
Read the files here
alirezarezvani/
Show the full text99 lines
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:
- Critical — auth, payment, core features → test first
- High — user-facing CRUD, search, navigation
- Medium — settings, preferences, edge cases
- 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
| 1 | |
| 2 | name "coverage" |
| 3 | description >- |
| 4 | Analyze test coverage gaps. Use when user says "test coverage", |
| 5 | "what's not tested", "coverage gaps", "missing tests", "coverage report", |
| 6 | or "what needs testing". |
| 7 | |
| 8 | |
| 9 | # Analyze Test Coverage Gaps |
| 10 | |
| 11 | Map all testable surfaces in the application and identify what's tested vs. what's missing. |
| 12 | |
| 13 | ## Steps |
| 14 | |
| 15 | ### 1. Map Application Surface |
| 16 | |
| 17 | Use the `Explore` subagent to catalog: |
| 18 | |
| 19 | **Routes/Pages:** |
| 20 | Scan route definitions (Next.js `app/`, React Router config, Vue Router, etc.) |
| 21 | List all user-facing pages with their paths |
| 22 | |
| 23 | **Components:** |
| 24 | Identify interactive components (forms, modals, dropdowns, tables) |
| 25 | Note components with complex state logic |
| 26 | |
| 27 | **API Endpoints:** |
| 28 | Scan API route files or backend controllers |
| 29 | List all endpoints with their methods |
| 30 | |
| 31 | **User Flows:** |
| 32 | Identify critical paths: auth, checkout, onboarding, core features |
| 33 | Map multi-step workflows |
| 34 | |
| 35 | ### 2. Map Existing Tests |
| 36 | |
| 37 | Scan all `*.spec.ts` / `*.spec.js` files: |
| 38 | |
| 39 | Extract which pages/routes are covered (by `page.goto()` calls) |
| 40 | Extract which components are tested (by locator usage) |
| 41 | Extract which API endpoints are mocked or hit |
| 42 | Count tests per area |
| 43 | |
| 44 | ### 3. Generate Coverage Matrix |
| 45 | |
| 46 | |
| 47 | ## Coverage Matrix |
| 48 | |
| 49 | | Area | Route | Tests | Status | |
| 50 | |---|---|---|---| |
| 51 | | Auth | /login | 5 | ✅ Covered | |
| 52 | | Auth | /register | 0 | ❌ Missing | |
| 53 | | Auth | /forgot-password | 0 | ❌ Missing | |
| 54 | | Dashboard | /dashboard | 3 | ⚠️ Partial (no error states) | |
| 55 | | Settings | /settings | 0 | ❌ Missing | |
| 56 | | Checkout | /checkout | 8 | ✅ Covered | |
| 57 | |
| 58 | |
| 59 | ### 4. Prioritize Gaps |
| 60 | |
| 61 | Rank uncovered areas by business impact: |
| 62 | |
| 63 | **Critical** — auth, payment, core features → test first |
| 64 | **High** — user-facing CRUD, search, navigation |
| 65 | **Medium** — settings, preferences, edge cases |
| 66 | **Low** — static pages, about, terms |
| 67 | |
| 68 | ### 5. Suggest Test Plan |
| 69 | |
| 70 | For each gap, recommend: |
| 71 | Number of tests needed |
| 72 | Which template from `templates/` to use |
| 73 | Estimated effort (quick/medium/complex) |
| 74 | |
| 75 | |
| 76 | ## Recommended Test Plan |
| 77 | |
| 78 | ### Priority 1: Critical |
| 79 | 1. /register (4 tests) — use auth/registration template — quick |
| 80 | 2. /forgot-password (3 tests) — use auth/password-reset template — quick |
| 81 | |
| 82 | ### Priority 2: High |
| 83 | 3. /settings (4 tests) — use settings/ templates — medium |
| 84 | 4. Dashboard error states (2 tests) — use dashboard/data-loading template — quick |
| 85 | |
| 86 | |
| 87 | ### 6. Auto-Generate (Optional) |
| 88 | |
| 89 | Ask user: "Generate tests for the top N gaps? [Yes/No/Pick specific]" |
| 90 | |
| 91 | If yes, invoke `/pw:generate` for each gap with the recommended template. |
| 92 | |
| 93 | ## Output |
| 94 | |
| 95 | Coverage matrix (table format) |
| 96 | Coverage percentage estimate |
| 97 | Prioritized gap list with effort estimates |
| 98 | Option to auto-generate missing tests |
| 99 |
Details
- Updated
- Aug 30, 2026
- License
- MIT
- Stars on the repo
- ★ 26,349
- Checked
- Source
- alirezarezvani/claude-skills ↗
- Creator
- alirezarezvani · 363 listings
Similar skills
See all →
Skill29 production-ready scripts for iOS app testing, buildingIos simulator skill
SkillMoAI unified orchestrator for autonomous development
SkillWrite Android unit, Compose UI, and Hilt-integrated testsAndroid Testing Standards
SkillImplementing any feature or bugfixTest-Driven Development (TDD)
SkillToolkit for interacting with and testing local webWebapp testing
PromptGuide to fixing bugs using a test-first approachTest first bug fixing approachMore from alirezarezvani
SkillResume a paused experiment/ar:ar-resume — Resume Experiment
SkillShow experiment dashboard with results, active loops/ar:ar-status — Experiment Dashboard
SkillStart an autonomous experiment loop with user-selected/ar:loop — Autonomous Experiment Loop
SkillRun a single experiment iteration/ar:run — Single Experiment Iteration
SkillSet up a new autoresearch experiment interactively/ar:setup — Create New Experiment
Skill/cs:boardroom <brief/cs:boardroom — Multi-Role Boardroom Deliberation