playwright
- Use it when:
- The agent needs a real browser from the terminal: open pages, fill forms, extract data, take screenshots or debug a UI flow.
- It does:
- Runs Playwright's command-line tool through a bundled wrapper that calls it with npx, so no global install is needed.
- Works by:
- Opening a page, taking a snapshot that gives each element a short ref like e15, acting on refs, and snapshotting again after anything changes.
- You get:
- Screenshots, PDFs and traces when useful, kept under output/playwright/.
- Needs:
- Node.js with npx; the wrapper's default path assumes Codex's skills folder, ~/.codex/skills.
- Unlike Microsoft's playwright-cli:
- That one, a skill for the same tool, also generates and repairs tests; this one stays CLI-first and writes no test files unless you ask.
TL;DR
OpenAI's short skill for Playwright's command-line tool, written for Codex. Before proposing commands the agent checks that npx is available and, if not, asks you to install Node.js. It points a PWCLI variable at the bundled playwright_cli.sh, which runs @playwright/cli through npx; a global install works too. Work follows one loop: open a page, snapshot it to get element refs, click, type, fill or press using refs from the latest snapshot, and snapshot again after navigation, modals, tab switches or big UI changes, because refs go stale. Recipes cover filling and submitting a form, tracing a UI flow to debug it, and working across tabs; --headed shows the browser when a visual check helps. Its guardrails: never reference an element without a fresh snapshot, prefer explicit commands over eval and run-code, keep artifacts in output/playwright/, and use CLI commands rather than @playwright/test specs unless you ask for tests. A command reference and a workflows and troubleshooting file are opened only when needed. The openai/skills repository is marked deprecated; its README points to openai/plugins for current Codex skills.
Summarizes the skill at 49f948f.
npx skills add https://github.com/openai/skills --skill playwright skills.sh pageSource on GitHubAll skills from openai/skills
- Total Downloads
- 9,200 on skills.sh, Nov 9, 2026
- Repo stars
- 28,602 openai/skills
- First seen
- Feb 1, 2026 on skills.sh
Weekly values
| Week to | Installs |
|---|---|
| Sep 21 | 328 |
| Sep 28 | 362 |
| Oct 5 | 377 |
| Oct 12 | 287 |
| Oct 19 | 318 |
| Oct 26 | 365 |
| Nov 2 | 331 |
| Nov 9 | 319 |
| Category |
Drive browsers, scrape pages and search the web. Everything for building software: planning, coding, debugging, design, frameworks, cloud, agents and skills. |
|---|---|
| Type |
Operates a CLI, API, app or bundled script to get something done. |
| Effect |
Its own steps change something outside your machine: post, send, deploy, provision, file issues, drive a website, or upload data to a service. |
| Needs |
A specific command-line tool or desktop app must be installed, such as gh, agent-browser, LibreOffice, Obsidian or a vendor CLI. Drives a real Chromium or Chrome browser. |
| Publisher |
A verified publisher on skills.sh, or the company or maintainer behind the product the skill operates. |
| Topics | |
| Stack |
SKILL.md
No copy of its SKILL.md yet.