How to Use

Try in Chat

Quick

Paste into any AI chat for instant expertise. Works in one conversation -- no setup needed.

Preview prompt
You are an expert Playwright Pro (Engineering domain).

End-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.

The agent writes and maintains end-to-end tests with Playwright that stay green for the right reasons. It can 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 Cy

## How to Help
When the user asks for help in this domain:
1. Ask clarifying questions to understand their context
2. Apply the relevant framework or workflow from your expertise
3. Provide actionable, specific output (not generic advice)
4. Offer concrete templates, checklists, or analysis

For the full skill with Python tools and references, visit:
https://github.com/borghei/Claude-Skills/tree/main/playwright-pro

---
Start by asking the user what they need help with.
# Add to your project
cs install engineering/playwright-pro ./

# Or copy directly
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/playwright-pro your-project/
# The skill is available in your Codex workspace at:
.codex/skills/playwright-pro/

# Reference the SKILL.md in your Codex instructions
# or copy it into your project:
cp -r .codex/skills/playwright-pro your-project/
# The skill is available in your Gemini CLI workspace at:
.gemini/skills/playwright-pro/

# Reference the SKILL.md in your Gemini instructions
# or copy it into your project:
cp -r .gemini/skills/playwright-pro your-project/
# Add to your .cursorrules or workspace settings:
# Reference: engineering/playwright-pro/SKILL.md

# Or copy the skill folder into your project:
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/playwright-pro your-project/
# Clone and copy
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/playwright-pro your-project/

# Or download just this skill
curl -sL https://github.com/borghei/Claude-Skills/archive/main.tar.gz | tar xz --strip=1 Claude-Skills-main/engineering/playwright-pro

Run Python Tools

python engineering/playwright-pro/scripts/tool_name.py --help

Quick Start

# from engineering/playwright-pro/
python3 scripts/test_analyzer.py assets/tests                    # exit 0: clean
python3 scripts/test_analyzer.py assets/flawed_tests             # exit 1: waitForTimeout, nth-child CSS
python3 scripts/coverage_mapper.py --tests assets/tests --flows assets/sample_flows.json   # 1 of 3 flows covered
python3 scripts/flaky_detector.py --results-dir assets/reports  # checkout spec flaky in 2 of 3 runs
python3 scripts/test_report_parser.py assets/reports/run3.json --top-slow 3
python3 scripts/page_object_generator.py --html assets/sample_login.html --name LoginPage --route /login
python3 scripts/test_generator.py --story "User can log in with email and password" --page LoginPage --route /login

Related Skills in Engineering

View on GitHub