Agent skill · OpenAI

Playwright Browser Automation skill for Claude Code, Codex and Cursor

Automates a real browser from the terminal for form filling, snapshots, scraping and UI debugging.

Officialname: playwright★ 28k (repo)pushed 2026-09-08Apache-2.0SKILL.md on GitHubchecked 2026-11-07

What it does, in the publisher's words

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.

The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.

Install Playwright Browser Automation

The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs

npx skills add openai/skills --skill playwright

Works with

Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.

  • Bundles 1 shell script the agent can run, so it needs shell on the machine. In the Claude apps, code execution must be on.

What's in the SKILL.md

12 sections
  • Prerequisite check (required)
  • Skill path (set once)
  • Quick start
  • Core workflow
  • When to snapshot again
  • Recommended patterns
  • Form fill and submit
  • Debug a UI flow with traces
  • Multi-tab work
  • Wrapper script
  • References
  • Guardrails

Bundled files

8
  • LICENSE.txt
  • NOTICE.txt
  • agents/openai.yaml
  • assets/playwright-small.svg
  • assets/playwright.png
  • references/cli.md
  • references/workflows.md
  • scripts/playwright_cli.sh

Loaded only when the instructions point to them.

Facts

Skill name
playwright
Publisher
OpenAI (official)
Repo
openai/skills
License
Apache-2.0
SKILL.md size
366 words, 142 lines
Bundled files
8, 1 scripts (shell), 3 docs
Repo stars
28k (as of 2026-10-24)
SKILL.md checked
2026-11-07

Pairs with the Playwright MCP server: the server gives the agent the tools, the skill teaches it how to use them.

More skills from openai/skills

  • ChatGPT Apps: Scaffolds and debugs ChatGPT apps built with the Apps SDK: an MCP server plus widget UI.
  • GitHub: Address PR Comments: Works through review comments on the current branch's pull request using the gh CLI.
  • GitHub: Fix CI: Reads failing GitHub Actions checks with gh, summarizes the cause and proposes a fix.
  • Image Generation: Generates or edits raster images such as illustrations, sprites, mockups and transparent cutouts.
  • Linear: Reads, creates and updates Linear issues and projects from the agent.
  • OpenAI Docs: Looks up current OpenAI API and Codex documentation and helps pick a model.
  • Security Best Practices Review: Reviews code for language- and framework-specific security issues and suggests safer defaults.
  • Security Threat Model: Writes a threat model for a repository: trust boundaries, assets, attack paths and mitigations.
  • Skill Installer (Codex): Codex's built-in helper that installs skills from the curated list or any GitHub repo path.

Related testing & qa skills

FAQ

What does the playwright skill do?+

Automates a real browser from the terminal for form filling, snapshots, scraping and UI debugging. In its own SKILL.md, OpenAI describes it as: "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 skill?+

Run npx skills add openai/skills --skill playwright and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/playwright/SKILL.md; in Codex and Cursor in .agents/skills/playwright/.

Does Playwright Browser Automation work in Codex, Cursor and Copilot, or only Claude?+

It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more.

Who maintains Playwright Browser Automation?+

OpenAI, the company or project behind it, in the openai/skills repo on GitHub, last pushed 2026-09-08. License: Apache-2.0.

Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers