> test diagnosis, visual regression, and CI integration. Use when writing E2E tests, fixing flaky tests, or migrating from Cypress/Selenium.
npx skills add https://github.com/borghei/Claude-Skills --skill playwright-pro
Production-grade end-to-end testing with Playwright. Generate tests from user stories, implement the Page Object pattern for maintainability, apply the correct locator strategy for resilient tests, diagnose and fix flaky tests, migrate from Cypress or Selenium, integrate with CI/CD, run visual regression tests, and perform accessibility audits. Enforces the 10 golden rules that eliminate 90% of E2E test failures.
getByRole/getByLabel/getByText locator priority, web-first auto-retrying assertions, and the 10 golden rules.toHaveScreenshot baselines and Axe WCAG AA gates.Before generating tests, confirm these inputs. If any is unknown or vague, ASK — do not assume:
data-testid (sets locator strategy and POM resilience)Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.
This skill uses compound sub-skill architecture. Each sub-skill in skills/ handles a specific workflow:
| Sub-Skill | File | Purpose |
|-----------|------|---------|
| Init | skills/init.md | Bootstrap Playwright in a project -- install, configure, create first test |
| Generate | skills/generate.md | Generate test files from user stories or page descriptions |
| Fix | skills/fix.md | Diagnose and fix failing or flaky tests using trace analysis |
| Migrate | skills/migrate.md | Migrate from Cypress or Selenium to Playwright |
| Review | skills/review.md | Audit test quality, coverage gaps, and flaky test indicators |
| Report | skills/report.md | Generate execution reports from Playwright JSON output |
| Coverage | skills/coverage.md | Map tests to user stories, identify coverage gaps |
| BrowserStack | skills/browserstack.md | BrowserStack cloud integration for cross-browser testing |
| TestRail | skills/testrail.md | TestRail integration for test case management |
Sub-skill flow: Init → Generate → Review → Fix (if needed); Coverage → Generate (fill gaps); Report → BrowserStack / TestRail.
| Tool | Purpose | Command |
|------|---------|---------|
| test_generator.py | Generate Playwright test code from user story descriptions | python scripts/test_generator.py --story "..." --page LoginPage --output tests/ |
| flaky_detector.py | Analyze multiple CI runs to detect flaky test patterns | python scripts/flaky_detector.py --results-dir results/ --runs 10 --threshold 0.05 |
| coverage_mapper.py | Map tests to user flows and identify coverage gaps | python scripts/coverage_mapper.py --tests tests/ --flows flows.json --gaps-only |
| page_object_generator.py | Generate Page Object classes from HTML or selector lists | python scripts/page_object_generator.py --html page.html --name LoginPage --route /login |
| test_analyzer.py | Scan test files for anti-patterns and quality issues | python scripts/test_analyzer.py tests/ --severity high |
| test_report_parser.py | Parse Playwright JSON reports into summaries | python scripts/test_report_parser.py report.json --top-slow 10 |
Load the reference that matches the task — keep this file lean and pull detail on demand:
playwright.config.ts, Page Object Model classes, test generation from user stories, and shared-auth setup. Read when authoring tests or configuring a project.This skill covers:
This skill does NOT cover:
engineering/testing-strategy for test pyramid guidance)api-test-suite-builder for API-focused testing)| Skill | Integration | Data Flow |
|-------|-------------|-----------|
| ci-cd-pipeline-builder | E2E tests run as a pipeline stage after build and unit tests | Pipeline config triggers playwright test; artifacts (traces, screenshots) upload on failure |
| api-test-suite-builder | API tests validate backend contracts; Playwright tests validate UI flows end-to-end | API test results confirm endpoint stability before E2E suite runs against the same environment |
| pr-review-expert | PR reviews check for test coverage on UI changes and flag missing E2E specs | Review checklist references Playwright Pro golden rules; flags waitForTimeout or raw CSS selectors |
| performance-profiler | Performance budgets complement E2E tests to catch regressions | Profiler identifies slow pages; Playwright tests add networkidle waits or performance assertions for flagged routes |
| observability-designer | Test failures feed into observability dashboards for flake tracking | CI test results export JSON reports; observability pipelines ingest pass/fail/flake metrics over time |
| release-manager | E2E suite is a release gate; green suite required before deployment proceeds | Release workflow calls Playwright CI job; blocks release tag creation on any test failure |
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Run Playwright tests at scale with cloud-hosted browsers and integrated Azure portal reporting.
Browser debugging, performance profiling, and automation via Chrome DevTools MCP. Use when user says "debug this page", "take a screenshot", "check network requests", "profile performance", "inspect console errors", or "analyze page load". Do NOT use for full E2E test suites (use playwright-skill) or non-browser debugging.
QA-test a website or web app and return a 1-5 quality score (5 = flawless, 1 = broken) with evidence. Use when the user wants to test, QA, evaluate, score, or "check how good" a site, page, flow, or app — including a local dev server (e.g. "qa test localhost:5173", "does the checkout work?", "rate this landing page"). Drives a real Browser Use cloud browser, tunneling localhost automatically.
Set up component testing with Playwright using a story gallery — scaffold stories and a gallery dev page driven by the built-in mount fixture, no dedicated component-testing runtime. Use when asked to test React or Vue components in isolation with Playwright, or to migrate off @playwright/experimental-ct-react / -vue.
Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.
Always use browser-harness for any web interaction: automation, scraping, testing, or site/app work.
Run a browser-based UI review of the WordPress.com Help Center across multiple surfaces, looking for visual and behavioral issues. Use when asked to test the Help Center UI.
Take borghei/playwright-pro from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.