playwright-skill
Installation
SKILL.md
Playwright Browser Automation
Provides primitives for browser automation: dev-server detection, a script runner (scripts/run.js), and helper utilities (scripts/lib/helpers.js).
Critical workflow
-
Detect dev servers first for localhost testing:
node -e "require('scripts/lib/helpers').detectDevServers().then(s => console.log(JSON.stringify(s)))"One server → use it. Multiple → ask which. None → ask for a URL.
-
Write generated scripts to
/tmp/playwright-test-*.js— never intoscripts/or the user's project. -
Visible browser by default (
headless: false). Headless only when the user asks. -
Parameterize the target URL at the top of the script as
TARGET_URL.