Comprehensive Playwright testing toolkit that generates, fixes, and migrates browser tests from Claude Code.
- CCM score
- 62 of 100
- version
- 2.14.6
- GitHub stars
- 30.6K
Own this plugin? Claim it
What it does
- Adds
/pw:generate,/pw:fix,/pw:migrate, and/pw:coverage, plus 3 agents (test-architect,test-debugger,migration-planner) - Covers test authoring, flaky-test diagnosis, CI setup via
/pw:pw-init, and reporting across 55 parametrizable templates - Runs
validate-test.shon*.spec.tsfiles anddetect-playwright.shat session start to check test quality and project setup - Designed for teams moving from Cypress or Selenium; TestRail and BrowserStack integrations need manual MCP setup
Production-grade Playwright testing toolkit. 9 skills, 3 agents, 55 templates, plus optional (manually enabled) TestRail/BrowserStack integrations. Generate tests, fix flaky failures, migrate from Cypress/Selenium.
Add marketplace
/plugin marketplace add alirezarezvani/claude-skillsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install pw@claude-code-skillsRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceBrowserStack Integration
Run Playwright tests on BrowserStack's cloud grid for cross-browser and cross-device testing.
Prerequisites
Environment variables must be set:
BROWSERSTACK_USERNAME— your BrowserStack usernameBROWSERSTACK_ACCESS_KEY— your access key
If not set, inform the user how to get them from browserstack.com/accounts/settings and stop.
The BrowserStack MCP server is not auto-registered (issue #978).
pw-browserstackwas removed from the plugin's.mcp.jsonbecause it failed to connect for every user (the plugin ships nonode_modules). Thebrowserstack_*MCP tools used below, and the/pw:browserstackcommand, will fail with "tool not found" until it is enabled manually — see the Integrations section of the plugin'sCLAUDE.md(cd integrations/browserstack-mcp && npm install, then register the server in your own user/project MCP config). Setting the env vars alone is not sufficient.
Capabilities
1. Configure for BrowserStack
/pw:browserstack setup
Steps:
- Check current
playwright.config.ts - Add BrowserStack connect options:
// Add to playwright.config.ts
import { defineConfig } from '@playwright/test';
const isBS = !!process.env.BROWSERSTACK_USERNAME;
export default defineConfig({
// ... existing config
projects: isBS ? [
{
name: "chromelatestwindows-11",
use: {
connectOptions: {
wsEndpoint: `wss://cdp.browserstack.com/playwright?caps=${encodeURIComponent(JSON.stringify({
'browser': 'chrome',
'browser_version': 'latest',
'os': 'Windows',
'os_version': '11',
'browserstack.username': process.env.BROWSERSTACK_USERNAME,
'browserstack.accessKey': process.env.BROWSERSTACK_ACCESS_KEY,
}))}`,
},
},
},
{
name: "firefoxlatestwindows-11",
use: {
connectOptions: {
wsEndpoint: `wss://cdp.browserstack.com/playwright?caps=${encodeURIComponent(JSON.stringify({
'browser': 'playwright-firefox',
'browser_version': 'latest',
'os': 'Windows',
'os_version': '11',
'browserstack.username': process.env.BROWSERSTACK_USERNAME,
'browserstack.accessKey': process.env.BROWSERSTACK_ACCESS_KEY,
}))}`,
},
},
},
{
name: "webkitlatestos-x-ventura",
use: {
connectOptions: {
wsEndpoint: `wss://cdp.browserstack.com/playwright?caps=${encodeURIComponent(JSON.stringify({
'browser': 'playwright-webkit',
'browser_version': 'latest',
'os': 'OS X',
'os_version': 'Ventura',
'browserstack.username': process.env.BROWSERSTACK_USERNAME,
'browserstack.accessKey': process.env.BROWSERSTACK_ACCESS_KEY,
}))}`,
},
},
},
] : [
// ... local projects fallback
],
});
- Add npm script:
"test:e2e:cloud": "npx playwright test --project='chrome@*' --project='firefox@*' --project='webkit@*'"
2. Run Tests on BrowserStack
/pw:browserstack run
Steps:
- Verify credentials are set
- Run tests with BrowserStack projects:
BROWSERSTACK_USERNAME=$BROWSERSTACK_USERNAME \ BROWSERSTACK_ACCESS_KEY=$BROWSERSTACK_ACCESS_KEY \ npx playwright test --project='chrome@*' --project='firefox@*' - Monitor execution
- Report results per browser
3. Get Build Results
/pw:browserstack results
Steps:
- Call
browserstack_get_buildsMCP tool - Get latest build's sessions
- For each session:
- Status (pass/fail)
- Browser and OS
- Duration
- Video URL
- Log URLs
- Format as summary table
4. Check Available Browsers
/pw:browserstack browsers
Steps:
- Call
browserstack_get_browsersMCP tool - Filter for Playwright-compatible browsers
- Display available browser/OS combinations
5. Local Testing
/pw:browserstack local
For testing localhost or staging behind firewall:
- Install BrowserStack Local:
npm install -D browserstack-local - Add local tunnel to config
- Provide setup instructions
MCP Tools Used
| Tool | When |
|---|---|
browserstack_get_plan | Check account limits |
browserstack_get_browsers | List available browsers |
browserstack_get_builds | List recent builds |
browserstack_get_sessions | Get sessions in a build |
browserstack_get_session | Get session details (video, logs) |
browserstack_update_session | Mark pass/fail |
browserstack_get_logs | Get text/network logs |
Output
- Cross-browser test results table
- Per-browser pass/fail status
- Links to BrowserStack dashboard for video/screenshots
- Any browser-specific failures highlighted
Readme
Playwright Pro
Production-grade Playwright testing toolkit for AI coding agents.
Generate tests, fix flaky failures, and migrate from Cypress/Selenium — all from your AI agent. Optional TestRail/BrowserStack integrations are included but must be enabled manually (see Integrations Setup).
Install
# Claude Code plugin
claude plugin install pw@claude-skills
# Or load directly
claude --plugin-dir ./engineering-team/playwright-pro
Commands
| Command | What it does |
|---|---|
/pw:pw-init | Set up Playwright in your project — detects framework, generates config, CI, first test |
/pw:generate <spec> | Generate tests from a user story, URL, or component name |
/pw:pw-review | Review existing tests for anti-patterns and coverage gaps |
/pw:fix <test> | Diagnose and fix a failing or flaky test |
/pw:migrate | Migrate from Cypress or Selenium to Playwright |
/pw:coverage | Analyze what's tested vs. what's missing |
/pw:testrail | Sync with TestRail — read cases, push results, create runs (requires manual MCP setup — see Integrations Setup) |
/pw:browserstack | Run tests on BrowserStack, pull cross-browser reports (requires manual MCP setup — see Integrations Setup) |
/pw:report | Generate a test report in your preferred format |
Quick Start
# In Claude Code:
/pw:pw-init # Set up Playwright
/pw:generate "user can log in" # Generate your first test
# Tests are auto-validated by hooks — no extra steps
What's Inside
9 Skills
Slash commands that turn natural language into production-ready Playwright tests. Each skill leverages Claude Code's built-in capabilities (/batch for parallel work, Explore for codebase analysis, /debug for trace inspection).
3 Specialized Agents
- test-architect — Plans test strategy for complex applications
- test-debugger — Diagnoses flaky tests using a systematic taxonomy
- migration-planner — Creates file-by-file migration plans from Cypress/Selenium
55 Test Templates
Ready-to-use, parametrizable templates covering:
| Category | Count | Examples |
|---|---|---|
| Authentication | 8 | Login, logout, SSO, MFA, password reset, RBAC |
| CRUD | 6 | Create, read, update, delete, bulk ops |
| Checkout | 6 | Cart, payment, coupon, order history |
| Search | 5 | Basic search, filters, sorting, pagination |
| Forms | 6 | Multi-step, validation, file upload |
| Dashboard | 5 | Data loading, charts, export |
| Settings | 4 | Profile, password, notifications |
| Onboarding | 4 | Registration, email verify, welcome tour |
| Notifications | 3 | In-app, toast, notification center |
| API | 5 | REST CRUD, GraphQL, error handling |
| Accessibility | 3 | Keyboard nav, screen reader, contrast |
2 MCP Integrations (optional — not auto-registered, see Integrations Setup)
- TestRail — Read test cases, create runs, push pass/fail results
- BrowserStack — Trigger cross-browser runs, pull session reports with video/screenshots
Smart Hooks
- Auto-validates test quality when you write
*.spec.tsfiles - Auto-detects Playwright projects on session start
- Zero configuration required
Integrations Setup
Note (issue #978): the TestRail and BrowserStack MCP servers are not auto-registered — they were removed from the plugin's
.mcp.jsonbecause they failed to connect for every user (no bundlednode_modules). Setting the env vars below is not enough on its own;/pw:testrailand/pw:browserstackwill fail with "tool not found" until you enable the server manually (cd integrations/<name>-mcp && npm install, then register it in your own user/project MCP config). See the Integrations section ofCLAUDE.md.
TestRail (Optional)
Set environment variables:
export TESTRAIL_URL="https://your-instance.testrail.io"
export TESTRAIL_USER="your@email.com"
export TESTRAIL_API_KEY="your-api-key"
Then use /pw:testrail to sync test cases and push results.
BrowserStack (Optional)
export BROWSERSTACK_USERNAME="your-username"
export BROWSERSTACK_ACCESS_KEY="your-access-key"
Then use /pw:browserstack to run tests across browsers.
Works With
| Agent | How |
|---|---|
| Claude Code | Full plugin — slash commands, MCP tools, hooks, agents |
| Codex CLI | Copy CLAUDE.md to your project root as AGENTS.md |
| OpenClaw | Use as a skill with SKILL.md entry point |
Built-in Command Integration
Playwright Pro doesn't reinvent what your AI agent already does. It orchestrates built-in capabilities:
/pw:generateuses Claude'sExploresubagent to understand your codebase before generating tests/pw:migrateuses/batchfor parallel file-by-file conversion on large test suites/pw:fixuses/debugfor trace analysis alongside Playwright-specific diagnostics/pw:pw-reviewextends/reviewwith Playwright anti-pattern detection
Reference
Based on battle-tested patterns from production test suites. Includes curated guidance on:
- Locator strategies and priority hierarchy
- Assertion patterns and auto-retry behavior
- Fixture architecture and composition
- Common pitfalls (top 20, ranked by frequency)
- Flaky test diagnosis taxonomy
License
MIT
Details
- Marketplace
- alirezarezvani/claude-skills
- Source
- engineering-team/playwright-pro
- Author
- Alireza Rezvani
- Category
- Development
- Keywords
- playwright, testing, e2e, qa, test-automation, browserstack, testrail
- Listed since
- Apr 7, 2026
More from alirezarezvani/claude-skills
All 121- ra-qm-skillsv2.14.18
- readme-polishv2.14.12
- reflect-skillv2.14.5
- research-ops-skillsv2.14.6
- research-orchestratorv2.14.7
- research-summarizerv2.14.5
- roastv2.14.6
- security-guidancev2.14.5
- self-improving-agentv2.14.11
- skill-retrov2.14.6
- skillopt-sleepv2.14.5
- slo-architectv2.14.5
- snowflake-developmentv2.14.5
- spinning-up-deep-rlv2.14.6
- statistical-analystv2.14.12
- support-opsv2.14.14
- swedish-mentorv2.14.5
- syllabusv2.14.6
- terraform-patternsv2.14.6
- universal-scraping-architectv2.14.9
- video-content-strategistv2.14.5
- video-studiov2.14.14
- vpe-advisorv2.14.5
- weekly-reviewv2.14.5
Similar to pw
More Testing & QAplaywrightPluginTheBushidoCollective/han201 starsAdvanced Playwright skills for end-to-end testing, test architecture, and test automation best practices.
browser-automationSkillalirezarezvani/claude-skills666 installsBrowser automation toolkit built on Playwright for scraping, form filling, screenshots, and structured data extraction.
testingPlugingreyhaven-ai/claude-code-config31 starsComprehensive testing automation with Playwright visual regression, Chrome E2E testing, and frontend debugging tools
handbook-qaPluginNikiforovAll/claude-code-rules143 starsBrowser automation and QA testing tools with Playwright MCP integration
test-masterPluginJosiahSiegel/claude-plugin-marketplace67 starsComplete Vitest 4.0, Playwright 1.55, and MSW 2.x testing system. PROACTIVELY activate for: (1) any testing task (unit/integration/E2E/visual), (2) test scaffol