
openai-playwright
Browser automation skill that drives real browsers from the terminal via playwright-cli.
- version
- 1.0.0
- GitHub stars
- 537
What it does
- Adds a
skillcomponent (openai-playwright) for navigation, form filling, snapshots, and screenshots - Covers data extraction and UI-flow debugging, with a prerequisite check and a set-once skill path
- Provides a core workflow, guidance on when to re-snapshot, and recommended interaction patterns
- Includes a bundled wrapper script for running Playwright steps when
playwright-cliis not used directly
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. Originally from OpenAI's curated skills catalog.
Add marketplace
/plugin marketplace add trailofbits/skills-curatedRun it inside Claude Code once, then install the plugin below.
Install
/plugin install openai-playwright@skills-curatedRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourcePlaywright 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
Once npx is present, proceed with the wrapper script. A global install of playwright-cli is optional.
Scripts and references are located under {baseDir}/.
Quick start
Use the wrapper script:
"$PWCLI" open https://playwright.dev --headed
"$PWCLI" snapshot
"$PWCLI" click e15
"$PWCLI" type "Playwright"
"$PWCLI" press Enter
"$PWCLI" screenshot
If the user prefers a global install, this is also valid:
npm install -g @playwright/cli@latest
playwright-cli --help
Core workflow
- Open the page.
- Snapshot to get stable element refs.
- Interact using refs from the latest snapshot.
- Re-snapshot after navigation or significant DOM changes.
- Capture artifacts (screenshot, pdf, traces) when useful.
Minimal loop:
"$PWCLI" open https://example.com
"$PWCLI" snapshot
"$PWCLI" click e3
"$PWCLI" snapshot
When to snapshot again
Snapshot again after:
- navigation
- clicking elements that change the UI substantially
- opening/closing modals or menus
- tab switches
Refs can go stale. When a command fails due to a missing ref, snapshot again.
Recommended patterns
Form fill and submit
"$PWCLI" open https://example.com/form
"$PWCLI" snapshot
"$PWCLI" fill e1 "user@example.com"
"$PWCLI" fill e2 "password123"
"$PWCLI" click e3
"$PWCLI" snapshot
Debug a UI flow with traces
"$PWCLI" open https://example.com --headed
"$PWCLI" tracing-start
# ...interactions...
"$PWCLI" tracing-stop
Multi-tab work
"$PWCLI" tab-new https://example.com
"$PWCLI" tab-list
"$PWCLI" tab-select 0
"$PWCLI" snapshot
Wrapper script
The wrapper script uses npx --package @playwright/cli playwright-cli so the CLI can run without a global install:
"$PWCLI" --help
Prefer the wrapper unless the repository already standardizes on a global install.
References
Open only what you need:
- CLI command reference:
references/cli.md - Practical workflows and troubleshooting:
references/workflows.md
Guardrails
- Always snapshot before referencing element ids like
e12. - Re-snapshot when refs seem stale.
- Prefer explicit commands over
evalandrun-codeunless needed. - When you do not have a fresh snapshot, use placeholder refs like
eXand say why; do not bypass refs withrun-code. - Use
--headedwhen a visual check will help. - When capturing artifacts in this repo, use
output/playwright/and avoid introducing new top-level artifact folders. - Default to CLI commands and workflows, not Playwright test specs.
When to Use
When NOT to Use
Readme
Playwright
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.
Installation
/plugin install trailofbits/skills-curated/plugins/openai-playwright
What It Covers
- Prerequisite check (required)
- Skill path (set once)
- Quick start
- Core workflow
- When to snapshot again
- Recommended patterns
- Wrapper script
- References
Credits
Originally from OpenAI's curated skills catalog. Converted to Claude Code plugin format for the Trail of Bits curated skills marketplace.
Details
- Marketplace
- trailofbits/skills-curated
- Source
- plugins/openai-playwright
- Author
- OpenAI
- Category
- Community
- Listed since
- Apr 7, 2026
More from trailofbits/skills-curated
All 29- openai-screenshotv1.0.0
- openai-security-best-practicesv1.0.0
- openai-security-ownership-mapv1.0.0
- openai-security-threat-modelv1.0.0
- openai-sentryv1.0.0
- openai-spreadsheetv1.0.0
- openai-yeetv1.0.0
- planning-with-filesv1.0.0
- productivityv1.0.0
- python-code-simplifierv1.0.0
- react-pdfv1.0.0
- scv-scanv1.0.0
- security-awarenessv1.0.0
- skill-extractorv1.0.0
- wooyun-legacyv1.0.0
- x-researchv1.0.0
- ffuf-web-fuzzingv1.0.0
- ghidra-headlessv1.0.0
- humanizerv2.2.0
- last30daysv1.0.0
- openai-cloudflare-deployv1.0.0
- openai-develop-web-gamev1.0.0
- openai-docv1.0.0
- openai-gh-address-commentsv1.0.0
Similar to openai-playwright
More Browser Automation & Scraping
agent-browserSkillvercel-labs/agent-browser1.5M installsBrowser automation CLI for AI agents that drives Chrome via accessibility-tree element refs and specialized workflows.
Playwright McpMCP servermicrosoft40K starsBrowser automation via accessibility snapshots: navigate, click, type, fill forms, and inspect network traffic.
openai-develop-web-gamePlugintrailofbits/skills-curated537 starsUse when the agent is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-b
playwrightSkillopenai/skills9.7K installsTerminal-driven browser automation via playwright-cli, using snapshot-based element refs for reliable interaction.
ruflo-browserPluginruvnet/ruflo82.2K starsAgentic browser automation with Playwright for testing, scraping, and UI interaction
invisible-playwright-mcpPluginfeder-cr/invisible_playwright_mcp869 starsAI browser agent: browses, clicks, types, and reads real web pages from plain-English instructions.