playwright-automation
Installation
SKILL.md
Discovery Questions
Before generating any code, ask:
- TypeScript or JavaScript? TypeScript is strongly recommended. It catches locator and assertion mistakes at compile time, and every example in this skill assumes TypeScript.
- Which browsers? Chromium for local dev. Add Firefox and WebKit in CI. Mobile viewports are separate Playwright projects, not separate test files.
- Existing suite or fresh start? If migrating from Cypress or Selenium, start by rewriting the flakiest tests first. Do not attempt a big-bang rewrite.
- Single site or multi-site? Multi-site architectures need shared fixtures and per-site config objects. See
references/multi-site-architecture.md.
Core Principles
Related skills