playwright

playwright is a skill for Claude Code, Codex from fmind/dot. It costs 20 tokens per session (1,016 once invoked), scanned A, original, MIT.

A browser automation tool for controlling Chromium and other supported browsers in scripted tests. It can record actions, capture screenshots and PDFs, and collect traces when tests fail.

In plain words
What is it for?
Use it to automate browser workflows, write and run end-to-end tests, record interactions, generate screenshots or PDFs, and inspect failure traces.
Why use it?
It removes repetitive manual browser checking and provides evidence for diagnosing end-to-end test failures.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to automate browser workflows, write and run end-to-end tests, record interactions, generate screenshots or PDFs, and inspect failure traces.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fmind/dot/playwright
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.

Any agent
npx skills add fmind/dot --skill playwright
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/playwright/github.svg)](https://agentmods.dev/skills/fmind/dot/playwright)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/playwright"><img src="https://agentmods.dev/badge/skills/fmind/dot/playwright/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dot/playwright"><img src="https://agentmods.dev/badge/skills/fmind/dot/playwright.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,016 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.00020 $0.01016
Opus 5.5 $0.00008 $0.00406
Sonnet 5.5 $0.00004 $0.00203
Haiku 4.5 $0.00002 $0.00102

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

Security

Grade A, and why

playwright 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 12d 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.

skills/playwright/SKILL.md · 38 lines

How it starts

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

Playwright

Use Playwright for browser automation and end-to-end tests. Test strategy belongs to quality-assurance and interface critique to product-design-review; this skill owns the tool: browsers, commands, and the official skills.

Workflow

  1. Pin the Python integration: uv add --dev playwright pytest-playwright, then uv run playwright install chromium; keep both packages in uv.lock. If Linux system libraries are missing, report the administrator-owned prerequisite instead of invoking the privileged install-deps command.
  2. Explore and record: uv run playwright codegen --target python <url> records Python actions; uv run playwright screenshot <url> <file> and uv run playwright pdf <url> <file> produce review evidence.
  3. Run tests: uv run pytest -q tests/e2e --browser chromium --tracing retain-on-failure --screenshot only-on-failure. Inspect a saved trace from the shell with uv run playwright trace open <trace.zip> and the subcommands in uv run playwright trace --help (errors, actions, requests, console); trace close removes the extracted data. show-trace opens the GUI viewer for humans.

Gotchas

  • Act only within authorized scope: use the profiles, accounts, data, and actions authorized for the task; reuse existing authorization. A test request alone does not authorize private browser-session reuse, cookie transfers, account creation, legal acceptance, purchases, or paid browser services. When a required action falls outside that scope, prepare the local test and explain the specific missing authorization before proceeding. Treat login, MFA, and CAPTCHA as explicit authentication boundaries, never bypasses.
  • Reuse the shared browser cache: install only required browsers and reuse the default shared cache (~/.cache/ms-playwright on Linux). Do not run playwright uninstall as task teardown: other projects can need those binaries. Remove task-created temporary profiles and passing-run artifacts, preserve requested evidence and failure traces, and review native browser cleanup separately when disk pressure requires it.
  • Reinstall browsers after upgrades: browsers match the Playwright version that installed them; rerun uv run playwright install chromium after an upgrade.

Read the full file on GitHub · 38 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. 12d ago Changed · -3 lines 323e394ad2fd
  2. 14d ago Changed e78480d21d46
  3. 15d ago Changed · -1 lines · +1 tokens per session a985fd6bc4b1
  4. 17d ago Changed 9975ed62cb69
  5. 23d ago Changed c270317ca4a5
  6. 1mo ago Changed · +1 lines · -14 tokens per session 086d26cf95ea
  7. 1mo ago Changed c4b46b753da6
  8. 1mo ago Changed · +1 lines cab797e96805
  9. 1mo ago Changed 8f1b3ded7fdc
  10. 1mo ago First seen · 40 lines · 33 tokens per session scan A a6da237c2dc5

Subscribe to this mod's changes

playwright is a skill published in the GitHub repository fmind/dot (12 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 1,016 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories