playwright-cli
Installation
SKILL.md
Playwright CLI
Playwright CLI (@playwright/cli) is a terminal-first browser automation tool designed for AI coding agents. It provides shell commands for browser control, saving snapshots and screenshots to disk instead of injecting them into the LLM context window.
When to Use This Skill
| Use this skill when... | Use another skill instead when... |
|---|---|
| Automating browser tasks from CLI | Writing E2E test suites (use playwright-testing) |
| Navigating pages, clicking, filling forms | Sandboxed env without shell access (use Playwright MCP) |
| Taking screenshots or PDFs of web pages | Testing across multiple browsers systematically (use playwright-testing) |
| Verifying UI state during development | Setting up testing infrastructure (use configure-ux-testing) |
| Scraping or inspecting page content | Short exploratory sessions needing rich DOM inspection (use MCP) |