Dev & Engineering ✓ OpenAI · Official playwrightbrowser-automationui-debuggingweb-navigationform-fillingscreenshots

Playwright Browser Automation Skill

Drive a real browser from the terminal for web interaction, extraction, and UI debugging.

FollowSkills review · FSRS-2.0
Not recommended
52/ 100 5-point scale 2.6 / 5
Trust15 / 25 · 3.0/5

The documentation requires snapshots, discourages unnecessary eval, and confines repository artifacts to output/playwright/; however, the browser can access external sites, and the wrapper downloads and executes an unpinned @playwright/cli version via npx --yes. Examples include password entry, network inspection, and code execution without data-flow disclosure, sensitive-data guidance, user confirmation, or rollback instructions, so points are deducted.

Reliability8 / 20 · 2.0/5

The script uses set -euo pipefail, checks for npx, and provides basic guidance for sessions and stale element references; however, it depends on online npx resolution, does not pin versions, and includes no committed tests or CI evidence. Diagnostics for invalid input, network failures, and browser startup failures are limited, so the score remains within the static-review ceiling.

Adaptability10 / 15 · 3.3/5

The audience and core scenarios—real-browser navigation, forms, snapshots, screenshots, extraction, and debugging from a terminal—are clear, with examples for tabs, sessions, and tracing; however, non-fit boundaries, semantic trigger conditions, Chinese-language support, and mainland-China reachability are not addressed. Core operation depends on external npm/GitHub network access, so points are deducted.

Convention8 / 15 · 2.7/5

The material is well organized across prerequisites, quick start, workflows, references, and troubleshooting; however, license metadata is unknown, and there is no skill version, changelog, explicit maintenance owner, or update path. The repository README also marks the repository deprecated, so points are deducted.

Effectiveness7 / 15 · 2.3/5

The examples cover common browser-automation tasks and provide directly usable command patterns and artifact locations; static material supports the core value claim, but there are no reproducible execution results, representative verified artifacts, or comparison with alternatives. Correctness and completeness still require review, so the score uses the static ceiling and is reduced.

Verifiability4 / 10 · 2.0/5

The skill files, references, and wrapper script are auditable and largely consistent; however, there is no test suite, CI coverage, third-party execution evidence, or corroboration from multiple sources. The assessment therefore relies mainly on static documentation and receives limited credit.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 49f948faa925
Before you use it
  • npx --yes resolves and executes an unpinned current CLI dependency online; production or sensitive workflows should pin versions and review dependency provenance.
  • The form example uses a plaintext password, while eval, run-code, network inspection, and upload capabilities may handle sensitive data; obtain confirmation and isolate sessions, credentials, and artifacts before use.
  • The skill depends on Node/npm and external network access, with no evidence of reliable reachability from mainland-China networks.
  • The repository is marked deprecated; its license, versioning, and maintenance/update responsibility should be verified separately.
Review evidence [1][2][3][4][5][6][7]
See the full review method →

What it does & when to use it

This skill enables Codex to automate a real browser from the terminal through playwright-cli. It covers navigation, form filling, snapshots, screenshots, data extraction, and UI-flow debugging, with a bundled wrapper preferred. It requires npx to be available because the wrapper invokes @playwright/cli through npx. The workflow is CLI-first and does not default to creating or running @playwright/test files.

It checks for npx, sets the wrapper-script path, opens pages with open, obtains stable element references with snapshot, and performs interactions with click, fill, type, and press. It can capture screenshots, PDFs, and traces with tracing-start and tracing-stop. Users should snapshot again after navigation, substantial DOM changes, modal or menu changes, and tab switches. Multiple tabs can be managed with tab-new, tab-list, and tab-select.

  1. A developer needs to open a website, fill a form, and submit it from the terminal.
  2. A debugger needs to reproduce a UI flow involving clicks, navigation, or dialogs.
  3. A researcher needs to extract data from a webpage and capture screenshots as artifacts.
  4. An engineer needs to observe browser behavior in headed mode and record a trace during troubleshooting.

Pros & cons

Pros
  • The wrapper script avoids requiring a global playwright-cli installation.
  • The skill defines a clear workflow around stable element references and refreshed snapshots.
  • It supports screenshots, PDFs, and tracing artifacts for browser debugging.
Limitations
  • It depends on Node.js/npm providing npx and on @playwright/cli.
  • Element references can become stale after page changes, requiring a new snapshot.
  • The source provides no test suite, platform compatibility matrix, or independent license text.
  • It is designed for CLI interaction rather than tasks requiring @playwright/test files.

How to install

The skill is located at skills/.curated/playwright in openai/skills. Install the curated skill in Codex with $skill-installer playwright, then restart Codex. The source does not provide an independent license; the README says an individual skill's license should be checked in its directory's LICENSE.txt, but that file's contents are not included here.

How to use

First run command -v npx >/dev/null 2>&1. If it is available, set export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}" and export PWCLI="$CODEX_HOME/skills/playwright/scripts/playwright_cli.sh". Example: "$PWCLI" open https://playwright.dev --headed, then "$PWCLI" snapshot, followed by commands using references from the latest snapshot, such as "$PWCLI" click e15, "$PWCLI" type "Playwright", "$PWCLI" press Enter, and "$PWCLI" screenshot. If npx is unavailable, install Node.js/npm first; a global playwright-cli installation is optional.

Compared to similar skills

Compared with a global playwright-cli installation, this skill prefers a wrapper that runs the CLI through npx; global installation is optional. Compared with @playwright/test, it focuses on terminal-driven browser workflows rather than test files.

FAQ

Do I need to install playwright-cli globally?
No. The bundled wrapper runs `playwright-cli` through `npx --package @playwright/cli playwright-cli`; global installation is optional.
What if npx is unavailable?
Pause and install Node.js/npm because the wrapper depends on npx. Then verify with `node --version` and `npm --version`; installing `@playwright/cli` globally is also valid.
Why might an element reference fail?
References can become stale after navigation or significant DOM changes. Run snapshot again and use a reference from the latest snapshot.
Does it generate Playwright test files automatically?
No. It uses a CLI-first browser automation workflow and only pivots to @playwright/test when the user explicitly requests test files.

More skills from this repository

All from openai/skills

Productivity & Collaboration ✓ OpenAI · Official

Goal Definition Assistant

Turn vague intentions into measurable, verifiable goals with clear scope and stopping conditions.

Dev & Engineering ✓ OpenAI · Official

Codex CLI Builder

Turn APIs, scripts, and existing tools into durable, composable command-line interfaces.

Design & Frontend ✓ OpenAI · Official

Codex Image Studio

Generate and edit production-ready raster assets for projects.

Dev & Engineering ✓ OpenAI · Official

OpenAI Developer Docs Assistant

Current, official guidance for building with OpenAI products, APIs, and Codex.

Dev & Engineering ✓ OpenAI · Official

Skill Creator Guide

A practical guide to designing, writing, validating, and iterating reusable Codex skills.

Dev & Engineering ✓ OpenAI · Official

ASP.NET Core Engineering Guide

Guides developers through building, reviewing, and upgrading ASP.NET Core apps.

Dev & Engineering ✓ OpenAI · Official

ChatGPT Apps Builder

Build documented ChatGPT apps that pair an MCP server with a widget UI.

Design & Frontend ✓ OpenAI · Official

Figma Code Connect Mapper

Link Figma components to their code implementations for traceable design-code consistency.

Design & Frontend ✓ OpenAI · Official

Figma Blank File Creator

Create a blank Figma Design or FigJam file in the selected drafts folder.

Design & Frontend ✓ OpenAI · Official

Figma Design Implementer

Turn Figma specifications into production-ready frontend code with verifiable visual fidelity.

Automation & Ops ✓ OpenAI · Official

Security Best Practices Review

Security review and secure-by-default guidance for Python, JavaScript/TypeScript, and Go projects.

Design & Frontend ✓ OpenAI · Official

Hatch Pet Animation Workshop

Turn character or brand cues into validated, packageable Codex animated pets.

Productivity & Collaboration ✓ OpenAI · Official

Linear Workflow Manager

Manage Linear tickets, projects, and team workflows directly through Codex.

Automation & Ops ✓ OpenAI · Official

Repository Threat Modeler

Builds evidence-grounded, actionable AppSec threat models for code repositories.

Automation & Ops ✓ OpenAI · Official

Sentry Production Error Explorer

Inspect Sentry issues, events, and basic production health through the Sentry CLI.

Design & Frontend ✓ OpenAI · Official

Figma Design System Rules Builder

Generates project-specific rules for consistent Figma-to-code implementation.

Writing & Content ✓ OpenAI · Official

Audio Transcribe

Turn audio or video speech into text with optional speaker labels.

Design & Frontend ✓ OpenAI · Official

Figma Design System Builder

Build and validate a professional Figma design system from code.

Design & Frontend ✓ OpenAI · Official

Figma Design-to-Code Assistant

Fetch Figma design context and turn selected nodes into production code.

Data & Analysis ✓ OpenAI · Official

Jupyter Notebook Workflow Assistant

Create, refactor, and validate reproducible Jupyter notebooks with templates and a scaffold script.

Related skills