borghei/Claude-Skills / engineering/playwright-pro
playwright-pro
VerifiedEnd-to-end testing with Playwright: test generation, page objects, locator strategy, flaky- test diagnosis, visual regression, and CI integration. Use when writing E2E tests, fixing flaky tests, or migrating from Cypress/Selenium.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.6 KB |
| assets/flawed_tests/profile.spec.ts | script | 468 B |
| assets/reports/run1.json | config | 1.2 KB |
| assets/reports/run2.json | config | 1.3 KB |
| assets/reports/run3.json | config | 1.4 KB |
| assets/sample_flows.json | config | 800 B |
| assets/sample_login.html | other | 489 B |
| assets/tests/login.spec.ts | script | 906 B |
| references/core-rules-and-patterns.md | markdown | 7.2 KB |
| references/diagnosis-migration-and-ci.md | markdown | 8.7 KB |
| references/playwright-patterns.md | markdown | 4.5 KB |
| scripts/coverage_mapper.py | script | 11.0 KB |
| scripts/flaky_detector.py | script | 10.6 KB |
| scripts/page_object_generator.pyexecutable | script | 14.8 KB |
| scripts/test_analyzer.pyexecutable | script | 12.3 KB |
| scripts/test_generator.py | script | 11.1 KB |
| scripts/test_report_parser.pyexecutable | script | 14.8 KB |
| skills/browserstack.md | markdown | 2.4 KB |
| skills/coverage.md | markdown | 1.9 KB |
| skills/fix.md | markdown | 2.6 KB |
| skills/generate.md | markdown | 2.4 KB |
| skills/init.md | markdown | 2.1 KB |
| skills/migrate.md | markdown | 2.5 KB |
| skills/report.md | markdown | 2.0 KB |
| skills/review.md | markdown | 2.2 KB |
| skills/testrail.md | markdown | 2.5 KB |
skills/coverage.md
View on GitHub# Sub-Skill: Test Coverage Analysis
**Parent:** playwright-pro
**Trigger:** "analyze test coverage", "map tests to user flows", "coverage gaps"
## Purpose
Map Playwright tests to user stories and requirements. Identify coverage gaps by comparing what is tested against what should be tested based on critical user flows.
## Workflow
### Step 1: Define User Flows
Enumerate critical user journeys. Each flow has:
- **ID:** Unique identifier (e.g., `AUTH-001`)
- **Name:** Human-readable name (e.g., "User login with email")
- **Priority:** Critical / High / Medium / Low
- **Steps:** Ordered list of user actions
### Step 2: Inventory Tests
Scan the test directory and extract:
- Test file paths and describe block names
- Individual test names
- Page Objects referenced
- URLs navigated to
### Step 3: Map Tests to Flows
Use `coverage_mapper.py` to match tests against flows:
```bash
python scripts/coverage_mapper.py --tests ./tests/e2e/ --flows flows.json
```
Matching heuristics:
- Test name contains flow keywords
- Test navigates to flow-related URLs
- Test uses Page Objects for flow pages
- Test assertions match expected flow outcomes
### Step 4: Identify Gaps
For each critical flow without test coverage:
- Generate a recommended test outline
- Estimate effort to implement
- Prioritize by flow criticality
### Step 5: Report
Output a coverage matrix:
| Flow | Priority | Tests | Status |
|------|----------|-------|--------|
| AUTH-001 Login | Critical | login.spec.ts (3 tests) | Covered |
| AUTH-002 Password reset | Critical | -- | GAP |
| CHECKOUT-001 Purchase | Critical | checkout.spec.ts (5 tests) | Covered |
## Inputs
| Input | Required | Description |
|-------|----------|-------------|
| Test directory | Yes | Path to Playwright test files |
| Flows definition | Yes | JSON file defining critical user flows |
## Outputs
- Coverage matrix (flows vs tests)
- Gap list with recommended test outlines
- Coverage percentage by priority tier
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |