playwright
Automate a real browser from the terminal with playwright-cli or the bundled wrapper: navigation, forms, snapshots, screenshots and UI-flow debugging.
- Kind
- Skill
- Works with
- Codex
- Source
- openai/skills @ 49f948faa925
- Path
- skills/.curated/playwright/SKILL.md
- Jobs
- Testing, Debugging
- Topics
- End-to-end & browser tests, Debugging
Credit
- Made by
- openai
- Original
- github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179…
- License
- Apache-2.0
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- .claude/skills/playwright/ (the skill folder)
- 2 file(s) the skill refers to
- 6 other files in the folder: LICENSE.txt, NOTICE.txt, agents/openai.yaml, references/cli.md and 2 more
- Runs scripts
- Yes
- scripts/playwright_cli.sh
- shell block in the text
- command line in the text (LICENSE.txt)
- shell block in the text (references/cli.md)
- Uses the network
- Yes
- downloads npm packages
- downloads npm packages (scripts/playwright_cli.sh)
- Needs secrets
- None found
- Reads environment variables
- CODEX_HOME
- PWCLI
- PLAYWRIGHT_CLI_SESSION
- Reads outside the project
- ~/.codex/skills (SKILL.md)
- /usr/bin/env (scripts/playwright_cli.sh)
- Value without its scripts
- High
- The main file never tells the agent to run a bundled script, so the text works without them.
- scripts/playwright_cli.sh
- Source revision
- 49f948faa925
- Licence
- Apache-2.0
- Last activity
- 28 Oct 2026
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
# 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):
```bash
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:
```bash
# 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.
## Skill path (set once)
```bash
export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
export PWCLI="$CODEX_HOME/skills/playwright/scripts/playwright_cli.sh"
```
User-scoped skills install under `$CODEX_HOME/skills` (default: `~/.codex/skills`).
## Quick start
Use the wrapper script:
```bash
…