playwright
Installation
SKILL.md
Playwright CLI — live browser automation
Wraps Microsoft's @playwright/cli for token-efficient browser automation. Snapshots and screenshots write to disk; only paths come back into context — roughly a 4x token reduction versus Playwright MCP (27K vs 114K per workflow in upstream's measurement).
Requires playwright-cli on PATH (npm install -g @playwright/cli). If it is missing, tell the user to install it rather than substituting a different automation surface.
Quick start (90% of use)
playwright-cli kill-all # start clean (no stale sessions)
playwright-cli -s=<flow> open <url> # named session, headless by default
playwright-cli -s=<flow> snapshot # writes YAML with element refs (e1, e2, ...)
playwright-cli -s=<flow> click e42 # interact by ref
playwright-cli -s=<flow> fill e37 "input" --submit # fill + press Enter
playwright-cli -s=<flow> screenshot --filename=meaningful-name.png
playwright-cli -s=<flow> console # summarize console messages
playwright-cli -s=<flow> close # tear down