Modern QA2026Installation and Skill Setup — tiles
Log inJoin
25 / 168 · 01 Agent Skills for Browser Automation · The Playwright CLI: Browser Control for Coding Agents← prev⊞ allnext →☰ Read as one page

4.2Installation and Skill Setup

npm install -g @playwright/cli@latest

# Initialize the workspace (creates .playwright-cli/ for sessions and artifacts)
playwright-cli install

# For skill-aware agents (Claude Code, Cursor, etc.):
playwright-cli install --skills

The --skills flag generates a SKILL.md file — the same mechanism you learned in Foundations. The agent reads one markdown file to learn every command, instead of loading dozens of tool schemas into context on every conversation.