playwright-ui-check

playwright-ui-check is a skill for Claude Code, Codex from lancewillett/ai-plugins. It costs 94 tokens per session (4,340 once invoked), scanned C, original, MIT.

A Playwright workflow for checking a real website behind a login, where Playwright is a tool that controls a browser. It logs in once, keeps that authenticated browser running, and reuses it for later checks.

In plain words
What is it for?
Use it for logged-in UI smoke tests, keyboard and click flows, screenshots, and checks of page content or behavior.
Why use it?
It avoids repeating difficult logins such as single sign-on (SSO), two-factor authentication, or browser-based prompts for every test.

Skill for Claude CodeCodex

Part of the playwright-ui-check plugin — 1 skill shipped together

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.

agentmods
npx agentmods add skills/lancewillett/ai-plugins/playwright-ui-check
Any agent
npx skills add lancewillett/ai-plugins --skill playwright-ui-check
Clone the repo
git clone --depth 1 https://github.com/lancewillett/ai-plugins

Made for: Claude Code, Codex.

Or install playwright-ui-check, the plugin that ships this one along with the rest of its 1 skill.

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-ui-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/lancewillett/ai-plugins/playwright-ui-check.svg)](https://agentmods.dev/skills/lancewillett/ai-plugins/playwright-ui-check)
Your own site
<a href="https://agentmods.dev/skills/lancewillett/ai-plugins/playwright-ui-check"><img src="https://agentmods.dev/badge/skills/lancewillett/ai-plugins/playwright-ui-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,340 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
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.00094 $0.04340
Opus 5 $0.00047 $0.02170
Sonnet 5 $0.00019 $0.00868
Haiku 4.5 $0.00009 $0.00434

Measured 5d ago against content hash cf274a99e009, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade C, and why

playwright-ui-check scanned grade C with 2 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 5d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

The captured username/password stay inside this process's memory — never written to disk, never printed. The visible login runs in a fresh `--profile-dir` (default `/tmp/authed-session-<timestamp>`) so a real prompt fire

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

The model is **auth once, attach many**: a human completes one visible login, a headless browser stays alive on a Chrome DevTools Protocol (CDP) port, and each run attaches to that same browser over CDP. `curl` and fresh
plugins/playwright-ui-check/skills/playwright-ui-check/SKILL.md · 239 lines

How it starts

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

Playwright UI check

Drive a real browser against a site behind a login wall — HTTP Basic Auth, an SSO gateway, or a session cookie — and run repeatable checks (UI smoke tests, keyboard and click flows, screenshots, DOM assertions) without logging in again on every run.

The model is auth once, attach many: a human completes one visible login, a headless browser stays alive on a Chrome DevTools Protocol (CDP) port, and each run attaches to that same browser over CDP. curl and freshly launched browser profiles get a 401; a long-lived, already-authenticated browser process does not.

When to use

  • The page needs a login your script can't drive — a Basic Auth prompt, an SSO redirect, 2FA.
  • You'll run more than one check against the same origin and don't want to re-auth each time.
  • You need real-browser behavior — JavaScript, keyboard, clicks, modals — not just an HTTP client.
  • You want deterministic CLI/Node scripts rather than an interactive browser tool.

Skip it if an unauthenticated curl or a single fresh Playwright launch already reaches the page.

The model in one paragraph

Browser auth is held in the running browser process, not on disk. HTTP Basic Auth in particular lives in memory and is dropped on relaunch, so re-launching a saved profile re-prompts or fails with ERR_INVALID_AUTH_CREDENTIALS. The fix is to keep one authenticated browser process alive and reuse it: log in once, prime the origin's credential cache, expose a CDP port, and have every later run connectOverCDP and reuse the existing context. The unit of reuse is the process, not the profile directory.

Prerequisites

  • Node.js and Playwright available (npm i -D playwright, or reuse an existing install and require() it by absolute path if your script lives outside that install). When your scripts only ever drive the Chrome already on the machine, npm i playwright-core gives the same API without downloading browser bundles.
  • Chrome or Chromium.
  • Pick an unused CDP port per session (e.g. 9333) and a fresh, unique profile directory per session. Both matter — see Troubleshooting.
  • Prefer an existing repository helper when one exists. It usually encodes the site's login and readiness behavior better than a new generic script.

Read the full file on GitHub · 239 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. 5d ago First seen · 239 lines · 94 tokens per session scan C cf274a99e009

Subscribe to this mod's changes

playwright-ui-check is a skill published in the GitHub repository lancewillett/ai-plugins (2 stars, last pushed 20d ago), licensed MIT. It adds 94 tokens to every session and 4,340 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.