playwright · davila7 — Claude Code skill: what it does, how to install
Automates a real browser from your terminal using playwright-cli. Helps navigate pages, fill forms, take screenshots, and inspect DOM snapshots during CLI tasks.
npx claude-code-templates@latest --skill development/playwrightWhat playwright does
This skill integrates browser automation into terminal sessions through playwright-cli and an internal wrapper script. It prioritizes ad-hoc CLI commands over building full @playwright/test suites, focusing on direct navigation, clicks, and multi-tab workflows.
Interactions depend on page snapshots. Running snapshot extracts visible nodes and assigns short identifiers like e1 or e15. The agent sends keystrokes or click events to these specific keys. Whenever a modal opens or navigation occurs, references expire, requiring a fresh snapshot step.
Execution depends on npx, making a local Node.js setup mandatory before running commands. A global package install remains optional because the wrapper handles execution directly, writing captured artifacts to output/playwright/.
What it helps with
- automate form submissions and text input in a real browser
- capture full-page screenshots and UI traces during troubleshooting
- inspect interactive DOM elements using stable snapshot references
- switch between multiple open browser tabs in the console
Example prompts for the agent
- Open
https://example.com/form, take a snapshot, and fill out the form fields. - Launch
https://playwright.devwith--headedmode and capture a screenshot. - Start tracing, interact with the page, and save artifacts to
output/playwright/.
How to install playwright
1claude-code-templates
npx claude-code-templates@latest --skill development/playwright2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill playwright -a claude-code3Manually: put the files in place
~/.claude/skills/playwright/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/playwright/
Manually: put the files in place
.agents/skills/playwright/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/playwright/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates playwright2Manually: put the files in place
.github/skills/playwright/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/playwrightManually: put the files in place
.devin/skills/playwright/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about playwright
How to install playwright in Claude Code?
Run npx claude-code-templates@latest --skill development/playwright. You can also install it via npx skills add davila7/claude-code-templates --skill playwright -a claude-code.
What does the playwright skill do?
It drives browser sessions directly from terminal commands. The agent inspects pages via snapshot tags, fills forms, clicks buttons, and collects debug artifacts without creating test files.
Why does the workflow require running snapshot repeatedly?
Commands target temporary IDs like e3 generated during the snapshot step. Navigating, opening menus, or modifying page state invalidates those IDs, so a new snapshot is needed to interact with updated elements.
Similar skills
All skills for Browser and scraping →playwright by other authors comes first.