Playwright skill for Claude
The playwright skill by openai: Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script.
Playwright SKILL.md
A preview of the skill file from openai/skills.
Playwright CLI Skill
Drive a real browser from the terminal using playwright-cli. Prefer the bundled wrapper script so the CLI works even when it is not globally installed.
Treat this skill as CLI-first automation. Do not pivot to @playwright/test unless the user explicitly asks for test files.
Prerequisite check (required)
Before proposing commands, check whether npx is available (the wrapper depends on it):
command -v npx >/dev/null 2>&1
If it is not available, pause and ask the user to install Node.js/npm (which provides npx). Provide these steps verbatim:
# Verify Node/npm are installed
node --version
npm --version
# If missing, install Node.js/npm, then:
npm install -g @playwright/cli@latest
playwright-cli --help
How to install the playwright skill
Claude Code
Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):
npx degit openai/skills/skills/.curated/playwright#main ~/.claude/skills/playwrightCodex
npx degit openai/skills/skills/.curated/playwright#main ~/.codex/skills/playwrightClaude.ai and Claude Desktop
Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.
Frequently asked questions
+What is the playwright skill?
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script.
+How do I install the playwright Claude skill?
Copy the skill folder into ~/.claude/skills/playwright, for example with "npx degit openai/skills/skills/.curated/playwright#main ~/.claude/skills/playwright". Claude Code loads it automatically and uses it when a task matches.
+Does Playwright work with ChatGPT or Codex?
Yes. Playwright uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/playwright. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.
+Is Playwright free?
Playwright is published on GitHub by openai. The repository does not declare a license, so check with the author before reusing it.