playwright-setup

playwright-setup is a command for Claude Code from joaquimscosta/arkhe-claude-plugins. It costs 45 tokens per session (1,117 once invoked), scanned A, original, MIT.

A setup command for Playwright, a tool that controls web browsers for automated testing and other browser tasks. It checks the command-line tool and creates or updates its project configuration.

In plain words
What is it for?
Use it to install or verify Playwright, create its configuration file, or reconfigure browser testing settings.
Why use it?
It avoids guessing whether Playwright is installed and records browser-automation settings in one place. It also handles an existing or invalid configuration instead of silently overwriting it.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: names the AskUserQuestion tool.

Good fit Use it to install or verify Playwright, create its configuration file, or reconfigure browser testing settings.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/joaquimscosta/arkhe-claude-plugins/playwright-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/joaquimscosta/arkhe-claude-plugins

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-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/joaquimscosta/arkhe-claude-plugins/playwright-setup/github.svg)](https://agentmods.dev/commands/joaquimscosta/arkhe-claude-plugins/playwright-setup)
Your own site
<a href="https://agentmods.dev/commands/joaquimscosta/arkhe-claude-plugins/playwright-setup"><img src="https://agentmods.dev/badge/commands/joaquimscosta/arkhe-claude-plugins/playwright-setup/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-setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/joaquimscosta/arkhe-claude-plugins/playwright-setup"><img src="https://agentmods.dev/badge/commands/joaquimscosta/arkhe-claude-plugins/playwright-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,117 The whole file, excluding the scripts and references it only reads on demand.
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.00045 $0.01117
Opus 5.5 $0.00018 $0.00447
Sonnet 5.5 $0.00009 $0.00223
Haiku 4.5 $0.00005 $0.00112

Measured yesterday against content hash 88c7ce403598, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

playwright-setup 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 yesterday.

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.

plugins/playwright/commands/playwright-setup.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/playwright-setup

Verify Playwright CLI installation and interactively create a .playwright/cli.config.json configuration file.

Step 1 — Verify CLI Installation

Run playwright-cli --version via Bash.

If installed: Report the version and proceed to Step 2.

If NOT installed: Display install instructions:

Playwright CLI is not installed.

Install it with:
  npm install -g @playwright/cli@latest

Verify with:
  playwright-cli --help

Then ask via AskUserQuestion:

  • "Continue without CLI?" — Options: "Continue with config creation" (create the config file anyway), "Cancel setup" (stop here)

If the user cancels, stop and summarize what happened.

Step 2 — Check for Existing Config

Check if .playwright/cli.config.json exists in the project (current working directory).

If exists and valid JSON: Display current settings in a table, then ask via AskUserQuestion:

  • "Config exists" — Options: "Reconfigure all settings" (proceed to Step 3), "Keep current config" (stop here)

If exists but malformed JSON: Warn the user about invalid JSON, then ask via AskUserQuestion:

  • "Malformed config" — Options: "Overwrite with new config" (proceed to Step 3), "Cancel setup" (stop here)

If does not exist: Proceed to Step 3.

Step 3 — Ask Configuration Questions

Use AskUserQuestion to gather settings. Ask these essential questions together in a single call:

# Question Header Options Default
Q1 Which browser engine? Browser chromium, firefox, webkit chromium
Q2 Run in headless mode? Headless Yes (headless), No (headed) Yes
Q3 Output directory for screenshots/videos? Output dir .playwright-cli, ./test-results, ./playwright-output .playwright-cli

Then ask whether to configure advanced settings:

# Question Header Options Default
Q4 Configure advanced settings? Advanced No (use defaults), Yes No

Read the full file on GitHub · 137 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. yesterday First seen · 137 lines · 45 tokens per session scan A 88c7ce403598

Subscribe to this mod's changes

playwright-setup is a command published in the GitHub repository joaquimscosta/arkhe-claude-plugins (21 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 1,117 once invoked, about $0.0002 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-10-16.