Testing & Code ReviewOfficial · openai

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

Read the full SKILL.md on GitHub →

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/playwright

Codex

npx degit openai/skills/skills/.curated/playwright#main ~/.codex/skills/playwright

Claude.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.

Related testing & code review skills

  1. Agent Browser

    Official

    Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms,…

    vercel-labs/agent-browser★ 53k
  2. Playwright Skill

    Complete browser automation with Playwright. Auto-detects dev servers, writes reusable test scripts, and supports screenshots, responsive…

    lackeyjb/playwright-skill★ 3.3k
  3. Webapp Testing

    Official

    Toolkit for interacting with and testing local web applications using Playwright.

    anthropics/skills★ 197k
  4. Test Driven Development

    Use when implementing any feature or bugfix, before writing implementation code

    obra/superpowers★ 319k
  5. Matlab

    Builds, reviews, migrates, and plans MATLAB or GNU Octave numerical workflows.

    K-Dense-AI/scientific-agent-skills★ 58k
  6. Playwright Interactive

    Official

    Persistent browser and Electron interaction through `js_repl` for fast iterative UI debugging.

    openai/skills★ 29k
  7. Receiving Code Review

    Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable…

    obra/superpowers★ 319k
  8. Browser Automation

    Automate a browser: scrape websites, fill forms, pull structured data from web pages.

    alirezarezvani/claude-skills★ 30k
  9. Generate

    Use when asked to write Playwright or e2e tests for a page, component or feature ('write tests', 'add tests for', 'e2e test').

    alirezarezvani/claude-skills★ 30k

See all testing & code review skills →

More skills from openai

  1. Cli Creator

    Official

    Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local…

    openai/skills★ 29k
  2. Figma Use

    Official

    **MANDATORY prerequisite** — you MUST invoke this skill BEFORE every `use_figma` tool call.

    openai/skills★ 29k
  3. Openai Docs

    Official

    Use when the user asks how to build with OpenAI products or APIs, asks about Codex itself or choosing Codex surfaces, needs up-to-date…

    openai/skills★ 29k

All skills by openai →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.