/playwright:setup [check|apply] [install-cli]from playwright
Verifies Playwright CLI binary and browser availability before E2E runs. Supports check (read-only) and apply (resolve) actions including global CLI install.
Ships in playwright. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
check's playwright-cli probe ran at load time. Read this row instead of re-issuing it; it shows
the tool's path when present, or absent when missing:
playwright-cli: !command -v playwright-cli 2>/dev/null || echo absentA row reading [shell command execution disabled by policy] carries no result: run that tool's
command -v probe via Bash instead.
Thin check-centric setup per the uniform setup contract (docs/plugin-philosophy.md
"Setup is explicit and repeatable" in the marketplace repository): check inspects and
reports, apply resolves. This plugin owns no consumer-project configuration and no
userConfig. It recommends @playwright/cli's own defaults, so the only tunable
prerequisite is the CLI binary itself. apply is guidance-and-verify with exactly one
write path: the explicitly invoked apply install-cli global npm install described
below.
Action routing: no argument or check runs the check; apply runs the check first, then
offers the resolution for each finding; apply install-cli additionally authorizes the global
CLI install. All are non-interactive. Never prompt when the action is given.
check (read-only)The main skill and its reference files are the single source of truth for what the CLI
requires: ${CLAUDE_PLUGIN_ROOT}/skills/playwright/SKILL.md (Prerequisite + quick start) and
${CLAUDE_PLUGIN_ROOT}/skills/playwright/reference/ (commands.md, windows-quirks.md).
Read it first. Probe what it actually does, don't recite this file. Then read the
pre-computed playwright-cli row, run the remaining probes via Bash, and report a PASS/FAIL/INFO
table with one remediation line per FAIL. Do not modify anything.
playwright-cli binary. The pre-computed playwright-cli row (the binary name the skill
drives; the npm package is @playwright/cli). FAIL if absent. Remediation is apply install-cli
below. When present, report the version (playwright-cli --version).skills/playwright/reference/windows-quirks.md, local sessions on Windows/macOS/Linux auto-detect system
Chrome, while a sandboxed/cloud session must run playwright-cli install-browser and that
download can be egress-blocked. INFO: state whether a system browser is resolvable on this
host and, when it is not, surface the playwright-cli install-browser step and the
sandbox-egress caveat from that reference. Do not assert a browser requirement the shipped
docs do not; read them and report what they say..playwright-cli/ relative to the working
directory; note whether it is gitignored in the current project (the skill recommends
adding it). No write. Reporting only.apply (idempotent)Run check, then for each FAIL offer the resolution. apply install-cli is the one write
path. State the change before running it:
apply install-cli runs npm install -g @playwright/cli. This is a
global install that mutates the user's machine (the global npm prefix), stated before it
runs; without the install-cli argument, apply only prints this command for the user to
run. After the install, re-run command -v playwright-cli and report the actual result.
Never claim success on npm's exit code alone.playwright-cli install-browser per the plugin's
reference, and note the sandbox-egress caveat when relevant. Guidance only. This skill does
not provision browsers..playwright-cli/ not gitignored. Suggest adding it to the project .gitignore;
guidance only, no edit.The vendored-baseline update flow (/playwright:playwright update) is not this skill's
job. Point at it, do not wrap it. Re-running apply when everything already passes changes
nothing and reports "already configured".
pluginConfigs. Nor project files. The
one explicitly invoked apply install-cli global npm install is the only write it performs./playwright:playwright./playwright:playwright update).What SKILL.md sets; muted values are Claude Code's defaults
bashThree short reads, in order
npx claudepluginhub melodic-software/claude-code-plugins --plugin playwright3 skills in this plugin
/demo-videoDemo video for a pull requestProduce a short demo video of a web UI change for a pull request: explore the flow unrecorded, script and replay it with 4K frame capture, plan the edit (zoom on each action, drawn cursor, click ripples, captions, optional narration), render an H.264 MP4, gate it with frame-measured quality control and an independent frame review, then attach it to the PR. Use when: 'demo video', 'record a demo of this change', 'make a PR video', 'produced walkthrough video', 'produced screen recording of a web flow', 'video proof a UI change works', 'video evidence for the PR'./playwrightPlaywright CLI, live browser automationLive browser automation through Microsoft's @playwright/cli, writing snapshots, screenshots, traces and video to disk so only paths enter context. Use when a task needs live browser testing against a running app: an 'E2E test' or 'UI smoke test' of a flow, 'snapshot the page', a screenshot or video as evidence, console errors or network traffic, a mocked response, or saving, checking or inspecting a playwright-cli login or auth state file. Maintainers: `/playwright:playwright update`.Other plugins' skills for the same job