playwright-cli
Installation
SKILL.md
Browser Automation with playwright-cli
How it works
Every command returns a snapshot — a structured view of the page with element refs (e1, e2, e3...). Use these refs to target elements in subsequent commands. Always take a snapshot before interacting with unfamiliar page state.
Session Isolation (REQUIRED)
Always use named sessions (-s=<name>) to prevent conflicts between parallel browser automation efforts. Never use the default unnamed session.
- For single-use sessions:
playwright-cli -s=<task-name> open <url> - For UAT sessions:
playwright-cli -s=uat-<test-name> open <url> - All subsequent commands must include the same
-s=<name>flag - Clean up when done:
playwright-cli -s=<name> close