PluginLow riskUnclaimed

pw

Production-grade Playwright testing toolkit. Generate tests from specs, fix flaky failures, migrate from Cypress/Selenium, with optional (manually enabled) TestRail/BrowserStack integrations. 55+ ready-to-use templates, 3 specialized agents, smart reporting that plugs into your existing workflow.

alirezarezvanialirezarezvani/pw★ 30kVersion 2.14.6Updated Nov 17, 2026

Description

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.ts files
  • 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.json because they failed to connect for every user (no bundled node_modules). Setting the env vars below is not enough on its own; /pw:testrail and /pw:browserstack will 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 of CLAUDE.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:generate uses Claude's Explore subagent to understand your codebase before generating tests
  • /pw:migrate uses /batch for parallel file-by-file conversion on large test suites
  • /pw:fix uses /debug for trace analysis alongside Playwright-specific diagnostics
  • /pw:pw-review extends /review with 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

Hosts

HostInstalls
Claude Code10 skills3 assistants2 hooks
CodexSkills only
OpenCodeSkills only

Members10 skills · 3 assistants

  • browserstackUse when running Playwright tests on BrowserStack or across a browser matrix ('browserstack', 'cross-browser', 'test on safari or firefox', 'browser compatibility').
  • coverageFind what is not tested: map untested pages and flows and coverage gaps. Use whenever the user asks what needs tests, about missing tests or test coverage.
  • fixDiagnose and fix a failing or flaky Playwright test. Use whenever a test fails, passes only sometimes, breaks intermittently or needs fixing.
  • generateUse when asked to write Playwright or e2e tests for a page, component or feature ('write tests', 'add tests for', 'e2e test').
  • migrateUse when moving tests from Cypress or Selenium to Playwright ('migrate tests', 'convert tests', 'replace selenium').
  • pwUse for any Playwright or end-to-end browser testing work: writing tests, fixing flaky ones, migrating from Cypress or Selenium, CI setup, TestRail or BrowserStack. Routes to the matching /pw sub-skill and its 55 templates.
  • pw-initUse when setting up Playwright in a project ('set up playwright', 'add e2e tests', 'configure playwright', 'init playwright').
  • pw-reviewUse when reviewing Playwright tests for quality ('review tests', 'audit tests', 'playwright best practices check').
  • reportSummarize Playwright results. Use whenever the user asks how tests went, for a test report or status.
  • testrailUse when syncing Playwright tests with TestRail ('testrail', 'sync test cases', 'push results to testrail', 'import from testrail').
  • migration-plannerAssistantAnalyzes Cypress or Selenium test suites and creates a file-by-file migration plan. Invoked by /pw:migrate before conversion starts.
  • test-architectAssistantPlans test strategy for complex applications. Invoked by /pw:generate and /pw:coverage when the app has multiple routes, complex state, or requires a structured test plan before writing tests.
  • test-debuggerAssistantDiagnoses flaky or failing Playwright tests using systematic taxonomy. Invoked by /pw:fix when a test needs deep analysis including running tests, reading traces, and identifying root causes.

Permissions

Full install
2.14.6

Runs on its own

  • HookClaude CodePostToolUsebash "${CLAUDE_PLUGIN_ROOT}/hooks/validate-test.sh"
  • HookClaude CodeSessionStartbash "${CLAUDE_PLUGIN_ROOT}/hooks/detect-playwright.sh"
DeclaredDetected
Runs code—nodeshell
Installs—npmnpx
Runs install scripts—None
Network—alirezarezvani.comapi.browserstack.comgithub.comwww.browserstack.comyour-instance.testrail.io
Needs credentials—API_TOKENBROWSERSTACK_ACCESS_KEYTESTRAIL_API_KEY
Outside the workspace—None
Agent tools—None

Checks

Low risk · Nothing worth a warning was found.

Not reviewed by a person · Checked by rules; the model review is not switched on yet.

3 minor marks: common commands and the like, noted but not a concern
  • Rule · command_injectionagents/test-debugger.md:19
  • Rule · command_injectionskills/pw/templates/api/rest-crud.md:79
  • Rule · command_injectionskills/pw/templates/api/rest-crud.md:80

Files100 files · 410.1 KB

  • .mcp.json23 B
  • CLAUDE.md4.3 KB
  • LICENSE1.0 KB
  • README.md5.3 KB
  • settings.json102 B
.claude-plugin/1
  • plugin.json678 B
agents/3
  • migration-planner.md3.5 KB
  • test-architect.md3.1 KB
  • test-debugger.md3.4 KB
hooks/3
  • detect-playwright.shx770 B
  • hooks.json472 B
  • validate-test.shx2.2 KB
integrations/1
  • mcp-servers.example.json668 B
integrations/browserstack-mcp/2
  • package.json400 B
  • tsconfig.json284 B
integrations/browserstack-mcp/src/3
  • client.ts2.8 KB
  • index.ts6.1 KB
  • types.ts1.3 KB
integrations/testrail-mcp/2
  • package.json392 B
  • tsconfig.json284 B
integrations/testrail-mcp/src/3
  • client.ts3.6 KB
  • index.ts9.9 KB
  • types.ts2.0 KB
skills/browserstack/1
  • SKILL.md5.0 KB
skills/coverage/1
  • SKILL.md2.6 KB
skills/fix/2
  • SKILL.md2.9 KB
  • flaky-taxonomy.md3.4 KB
skills/generate/2
  • SKILL.md4.4 KB
  • patterns.md5.7 KB
skills/migrate/3
  • SKILL.md4.0 KB
  • cypress-mapping.md3.6 KB
  • selenium-mapping.md4.4 KB
skills/pw/1
  • SKILL.md5.5 KB
skills/pw-init/1
  • SKILL.md4.5 KB
skills/pw-review/2
  • SKILL.md2.9 KB
  • anti-patterns.md4.2 KB
skills/pw/reference/6
  • assertions.md2.2 KB
  • common-pitfalls.md3.1 KB
  • fixtures.md3.1 KB
  • flaky-tests.md1.5 KB
  • golden-rules.md906 B
  • locators.md2.1 KB
skills/pw/templates/1
  • README.md4.8 KB
skills/pw/templates/accessibility/3
  • color-contrast.md5.5 KB
  • keyboard-navigation.md5.2 KB
  • screen-reader.md5.6 KB
skills/pw/templates/api/5
  • auth-headers.md4.7 KB
  • error-responses.md5.4 KB
  • graphql.md5.9 KB
  • rate-limiting.md5.5 KB
  • rest-crud.md5.0 KB
skills/pw/templates/auth/8
  • login.md4.6 KB
  • logout.md4.1 KB
  • mfa.md5.1 KB
  • password-reset.md5.7 KB
  • rbac.md4.7 KB
  • remember-me.md5.6 KB
  • session-timeout.md4.3 KB
  • sso.md4.5 KB
skills/pw/templates/checkout/6
  • add-to-cart.md4.1 KB
  • apply-coupon.md5.0 KB
  • order-confirm.md4.1 KB
  • order-history.md4.6 KB
  • payment.md5.4 KB
  • update-quantity.md4.8 KB
skills/pw/templates/crud/6
  • bulk-operations.md5.2 KB
  • create.md4.7 KB
  • delete.md5.1 KB
  • read.md4.6 KB
  • soft-delete.md4.7 KB
  • update.md5.6 KB
skills/pw/templates/dashboard/5
  • chart-rendering.md4.9 KB
  • data-loading.md4.9 KB
  • date-range-filter.md5.5 KB
  • export.md5.7 KB
  • realtime-updates.md5.1 KB
skills/pw/templates/forms/6
  • autosave.md5.3 KB
  • conditional-fields.md5.6 KB
  • file-upload.md5.2 KB
  • multi-step.md5.5 KB
  • single-step.md4.8 KB
  • validation.md5.8 KB
skills/pw/templates/notifications/3
  • in-app.md4.8 KB
  • notification-center.md4.7 KB
  • toast-messages.md5.2 KB
skills/pw/templates/onboarding/4
  • email-verification.md5.0 KB
  • first-time-setup.md5.3 KB
  • registration.md5.7 KB
  • welcome-tour.md4.8 KB
skills/pw/templates/search/5
  • basic-search.md4.4 KB
  • empty-state.md4.5 KB
  • filters.md5.1 KB
  • pagination.md4.4 KB
  • sorting.md5.1 KB
skills/pw/templates/settings/4
  • account-delete.md5.7 KB
  • notification-prefs.md5.2 KB
  • password-change.md6.9 KB
  • profile-update.md5.2 KB
skills/report/1
  • SKILL.md2.8 KB
skills/testrail/1
  • SKILL.md3.7 KB

Versions

  1. #12.14.6latestNov 17, 2026

Open in Codeg

Or copy its address to search for in Codeg’s Discover.

alirezarezvani/pw

No Codeg yet?Download