New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Analyze Test Coverage Gaps

by alirezarezvani · MIT license · ★ 26,349 on GitHub · updated Aug 30

Analyze Test Coverage Gaps cover

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)
Claude Codenpx skills add alirezarezvani/claude-skills --skill coverage -g -a claude-code
Claude Code (manual)mkdir -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/coverage
Windows (PowerShell)New-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" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md2.7 KB
Read the files here
alirezarezvani/19392f71 file
SKILL.md
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:

  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
1---
2name: "coverage"
3description: >-
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 
11Map 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 
17Use 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 
37Scan 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 
61Rank uncovered areas by business impact:
62 
631. **Critical** — auth, payment, core features → test first
642. **High** — user-facing CRUD, search, navigation
653. **Medium** — settings, preferences, edge cases
664. **Low** — static pages, about, terms
67 
68### 5. Suggest Test Plan
69 
70For 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
791. /register (4 tests) — use auth/registration template — quick
802. /forgot-password (3 tests) — use auth/password-reset template — quick
81 
82### Priority 2: High
833. /settings (4 tests) — use settings/ templates — medium
844. Dashboard error states (2 tests) — use dashboard/data-loading template — quick
85```
86 
87### 6. Auto-Generate (Optional)
88 
89Ask user: "Generate tests for the top N gaps? [Yes/No/Pick specific]"
90 
91If 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 
View all files on GitHub →

Details

Updated
Aug 30, 2026
License
MIT
Stars on the repo
★ 26,349
Checked
Source
alirezarezvani/claude-skills ↗
Creator
alirezarezvani · 363 listings
View creator

Similar skills

See all →
Skill29 production-ready scripts for iOS app testing, buildingIos simulator skillconorluddy/ios-simulator-skill · by conorluddy29 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.★ 1.3k GitHub starsSkillMoAI unified orchestrator for autonomous developmentmodu-ai/moai-adk · by modu-aiMoAI unified orchestrator for autonomous development. Routes natural language or subcommands (plan, run, sync, project, fix, loop, mx, feedback, review, clean, codemaps, gate, e2e, harness, goal, gtd, todo) to specialized agents.★ 1.2k GitHub starsSkillWrite Android unit, Compose UI, and Hilt-integrated testsAndroid Testing StandardsHoangNguyen0403/agent-skills-standard · by HoangNguyen0403Write Android unit, Compose UI, and Hilt-integrated tests. Use when designing test behavior with MockK or coroutine test utilities; defer database/WorkManager-specific recipes to the owning feature skill.★ 569 GitHub starsSkillImplementing any feature or bugfixTest-Driven Development (TDD)obra/superpowers · by obraUse when implementing any feature or bugfix, before writing implementation code★ 290k GitHub starsSkillToolkit for interacting with and testing local webWebapp testinganthropics/skills · by anthropicsToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.★ 178k GitHub starsPromptGuide to fixing bugs using a test-first approachTest first bug fixing approachf/prompts.chat · by Ilker UlusoyGuide to fixing bugs using a test-first approach, ensuring code reliability through systematic testing and implementation.New listing

More from alirezarezvani

SkillResume a paused experiment/ar:ar-resume — Resume Experimentalirezarezvani/claude-skills · by alirezarezvaniResume a paused experiment. Checkout the experiment branch, read results history, continue iterating. Use when the user runs /ar:ar-resume or asks to pick up a previously started autoresearch experiment.★ 26.3k GitHub starsSkillShow experiment dashboard with results, active loops/ar:ar-status — Experiment Dashboardalirezarezvani/claude-skills · by alirezarezvaniShow experiment dashboard with results, active loops, and progress. Use when the user runs /ar:ar-status or asks how an autoresearch experiment is going.★ 26.3k GitHub starsSkillStart an autonomous experiment loop with user-selected/ar:loop — Autonomous Experiment Loopalirezarezvani/claude-skills · by alirezarezvaniStart an autonomous experiment loop with user-selected interval (10min, 1h, daily, weekly, monthly). Uses CronCreate for scheduling. Use when the user runs /ar:loop or asks to run an autoresearch experiment continuously on a schedule.★ 26.3k GitHub starsSkillRun a single experiment iteration/ar:run — Single Experiment Iterationalirezarezvani/claude-skills · by alirezarezvaniRun a single experiment iteration. Edit the target file, evaluate, keep or discard. Use when the user runs /ar:run or asks for one manual autoresearch iteration.★ 26.3k GitHub starsSkillSet up a new autoresearch experiment interactively/ar:setup — Create New Experimentalirezarezvani/claude-skills · by alirezarezvaniSet up a new autoresearch experiment interactively. Collects domain, target file, eval command, metric, direction, and evaluator. Use when the user runs /ar:setup or asks to start optimizing a file with the autoresearch loop.★ 26.3k GitHub starsSkill/cs:boardroom <brief/cs:boardroom — Multi-Role Boardroom Deliberationalirezarezvani/claude-skills · by alirezarezvani/cs:boardroom <brief> — 6-phase multi-role deliberation across the C-suite with Phase 2 isolation, critic pre-screen, and synthesis. Outputs a board memo. Use when a decision spans multiple executive domains — e.g. a pricing change touching finance, positioning, and product, or a raise-vs-cut runway call.★ 26.3k GitHub stars