playwright-cli is a command-line tool for controlling browsers through Playwright, including recording actions, generating code, inspecting selectors, and taking screenshots. It is intended for coding agents and developers who need browser automation for testing or web tasks. The catalogue skills teach agents how to use its CLI workflows.
Borrowing it
Nothing to install: this file belongs to microsoft/playwright-cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/microsoft/playwright-cli/main/CLAUDE.mdgit clone --depth 1 https://github.com/microsoft/playwright-cliWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/microsoft/playwright-cli/claude-md)<a href="https://agentmods.dev/instructions/microsoft/playwright-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/microsoft/playwright-cli/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/microsoft/playwright-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/microsoft/playwright-cli/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00777 | $0.00777 |
| Opus 5.5 | $0.00311 | $0.00311 |
| Sonnet 5.5 | $0.00155 | $0.00155 |
| Haiku 4.5 | $0.00078 | $0.00078 |
Grade A, and why
playwright-cli CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
4 near-identical copies found in the catalogue:
- mcp CLAUDE.md — 100% identical, 34 lines differ
- playwright-mcp CLAUDE.md — 100% identical, 34 lines differ
- playwright-mcp-parallel CLAUDE.md — 100% identical, 34 lines differ
- playwright-mcp2 CLAUDE.md — 100% identical, 96 lines differ
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Build and test
The CLI source lives in microsoft/playwright, in packages/playwright-core/src/tools/. This repo
ships @playwright/cli: playwright-cli.js runs the CLI of the playwright-core alpha that
package.json pins, and adds the update check, with skillCheck.js. skills/playwright-cli/ is a
copy of the skill that playwright-cli install --skills writes, and node scripts/update.js
refreshes it.
npm ci
npm test # tests/integration.spec.ts
npx playwright test -g "open data URL"
There is no build step and no lint. Tests are in tests/integration.spec.ts. They run
playwright-cli.js with runCli() in the output directory of the test, and the npmRegistry
fixture serves a fake registry for the update check. Add a case to the test whose setup is closest
instead of a new test.
Commit Convention
Semantic commit messages: label(scope): description
Labels: fix, feat, chore, docs, test, devops
git checkout -b fix-39562
# ... make changes ...
git add <changed-files>
git commit -m "$(cat <<'EOF'
fix(proxy): handle SOCKS proxy authentication
Fixes: https://github.com/microsoft/playwright/issues/39562
EOF
)"
git push origin fix-39562
gh pr create --repo microsoft/playwright --head username:fix-39562 \
--title "fix(proxy): handle SOCKS proxy authentication" \
--body "$(cat <<'EOF'
## Summary
- <describe the change very! briefly>
Fixes https://github.com/microsoft/playwright/issues/39562
EOF
)"
Never add Co-Authored-By agents in commit message.
Branch naming for issue fixes: fix-<issue-number>
Rolling Playwright and preparing a release
See .claude/skills/dev/roll.md and .claude/skills/dev/release.md.
Bots
Labels start GitHub Actions workflows that run the Copilot CLI and open pull requests as the
microsoft-playwright-automation app:
needs-triage,needs-triage-mac,needs-triage-winon an issue: triage.yml reproduces and fixes it, with the skill in .claude/skills/playwright-triage/. A fix inmicrosoft/playwrightopens as a draft PR there.needs-revision,needs-revision-mac,needs-revision-winon a PR that triage opened here: revision.yml addresses the maintainers' review comments.needs-rollon an issue: roll.yml rolls Playwright toplaywright@next, as the roll skill says.needs-releaseon an issue: release.yml opens thechore: mark v<version>PR with the release notes as its description, as the release skill says. Copy the notes into the release draft.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago Changed · +35 lines · +574 tokens per session c9d8f7491f70
- 2mo ago First seen · 31 lines · 203 tokens per session scan A cdd2ff91e708
playwright-cli CLAUDE.md is an instructions file published in the GitHub repository microsoft/playwright-cli (14,988 stars, last pushed yesterday), licensed Apache-2.0. It adds 777 tokens to every session, about $0.0031 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
playwright-cli CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| playwright-cli CLAUDE.mdmicrosoft/playwright-cli | Instructions file | 15k | yesterday | Apache-2.0 | A | 777 | Claude Code |
| qmax-mcp copilot-instructions.mdQuality-Max/qmax-mcp | Instructions file | 4 | 4d ago | MIT | A | 451 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |