Playwright Pro
Playwright Pro is a production-grade Playwright testing toolkit for AI coding agents. It provides commands to scaffold, generate, review, fix, migrate, and report on Playwright tests, including integrations with TestRail and BrowserStack. The skill includes 55 templates, 3 specialized agents, and reference docs to help produce reliable end-to-end tests.
✨ What it does
- Scaffolds Playwright config, CI pipeline, and first smoke test via /pw:pw-init.
- Generates tests from user stories, URLs, or components using 55 templates.
- Reviews tests for anti-patterns and coverage gaps, auto-fixing issues.
- Diagnoses and fixes failing or flaky tests with web-first assertions.
- Migrates Cypress or Selenium tests to Playwright with mapping tables.
- Integrates with TestRail and BrowserStack (manual setup required).
🎯 When to use it
- When the user mentions Playwright tests, end-to-end testing, or browser automation.
- When fixing flaky or failing tests in a Playwright suite.
- When migrating existing Cypress or Selenium tests to Playwright.
- When setting up Playwright from scratch in a new or existing project.
- When needing to sync test results with TestRail or run tests on BrowserStack.
🚀 How to use
Trigger: /pw:generate
Trigger the skill by using slash commands like /pw:pw-init, /pw:generate, /pw:pw-review, /pw:fix, /pw:migrate, /pw:coverage, /pw:testrail, /pw:browserstack, or /pw:report. Provide a spec, URL, or test file path as input. Example prompts:
/pw:generate "As a user I can log in with email and password"
/pw:fix tests/auth/login.spec.ts
📄 Output: Generates Playwright test files, configs, CI pipelines, reports, and migration outputs depending on the command.
📦 Add this skill to Claude Code
# 1. Get the skills repo
git clone --depth 1 https://github.com/alirezarezvani/claude-skills /tmp/claude-skills
# 2. Copy this skill into your project (or ~/.claude/skills for all projects)
mkdir -p .claude/skills
cp -r /tmp/claude-skills/engineering-team/playwright-pro/skills/pw .claude/skills/pwSkill source: engineering-team/playwright-pro/skills/pw/SKILL.md
⚠️ Good to know
TestRail and BrowserStack MCP servers are not auto-registered and require manual setup (npm install and MCP config) to work.
❓ FAQ
What should I run after generating tests?
Always run /pw:pw-review after /pw:generate to catch locator anti-patterns and missing assertions before committing.
Why does /pw:testrail fail with 'tool not found'?
The TestRail MCP server is not auto-registered; you must manually enable it by running 'cd integrations/testrail-mcp && npm install' and registering it in your MCP config.
What is the recommended retry configuration?
Set retries to 2 in CI and 0 locally, and traces to on-first-retry for debugging.
🤖 Overview, features, install steps and FAQ were generated from the project's SKILL.md on Sep 4, 2026. Always check the original source before running commands.