playwright-cli: Instructions file for Claude Code

CLAUDE.md

playwright-cli CLAUDE.md is an instructions file for Claude Code from microsoft/playwright-cli. It costs 777 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Playwright CLI, a command-line tool from Microsoft for working with browser automation, covering commit and pull-request conventions.

In plain words
What is it for?
Creating issue-fix branches, writing semantic commits, pushing changes, and opening pull requests without adding agent credit lines.
Why use it?
They provide the expected branch names, commit format, and pull-request details when contributing changes.

Instructions file for Claude Code ✓ vendor

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths.

This is microsoft/playwright-cli's own configuration. It tells Claude Code how to work on playwright-cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything playwright-cli configures →

About the project

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.

microsoft/playwright-cli · 14,988 stars · on GitHub · playwright.dev

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/playwright-cli/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/playwright-cli

Made for: Claude Code.

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

agentmods badge for playwright-cli CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/microsoft/playwright-cli/claude-md/github.svg)](https://agentmods.dev/instructions/microsoft/playwright-cli/claude-md)
Your own site
<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.

agentmods 80×15 button for playwright-cli CLAUDE.md

Your own site · 80×15
<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>
Per session 777 This file is loaded in full into every session.
When invoked 777 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 6d ago against content hash c9d8f7491f70, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

Origin

Copies of this mod

4 near-identical copies found in the catalogue:

CLAUDE.md · 66 lines

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-win on an issue: triage.yml reproduces and fixes it, with the skill in .claude/skills/playwright-triage/. A fix in microsoft/playwright opens as a draft PR there.
  • needs-revision, needs-revision-mac, needs-revision-win on a PR that triage opened here: revision.yml addresses the maintainers' review comments.
  • needs-roll on an issue: roll.yml rolls Playwright to playwright@next, as the roll skill says.
  • needs-release on an issue: release.yml opens the chore: mark v<version> PR with the release notes as its description, as the release skill says. Copy the notes into the release draft.

Read the full file on GitHub · 66 lines

Changes

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.

  1. 6d ago Changed · +35 lines · +574 tokens per session c9d8f7491f70
  2. 2mo ago First seen · 31 lines · 203 tokens per session scan A cdd2ff91e708

Subscribe to this mod's changes

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.

Related

playwright-cli CLAUDE.md compared with instructions from other repositories

playwright-cli CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
playwright-cli CLAUDE.mdmicrosoft/playwright-cliInstructions file15kyesterdayApache-2.0A777Claude Code
qmax-mcp copilot-instructions.mdQuality-Max/qmax-mcpInstructions file44d agoMITA451GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot