playwright

A command-line browser automation tool for capturing screenshots of a static website in Chromium, a web browser.

In plain words
What is it for?
Use it to take repeatable screenshots of local HTML pages for visual checks or comparison between design revisions.
Why use it?
It lets you inspect the rendered page at a fixed screen size, which is useful for checking how a site actually looks rather than reviewing source files alone.

Skill for Claude CodeCodex

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/openai/openai-agents-python/playwright
Any agent
npx skills add openai/openai-agents-python --skill playwright
Clone the repo
git clone --depth 1 https://github.com/openai/openai-agents-python

Made for: Claude Code, Codex.

Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 183 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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 $0.00019 $0.00183
Opus 5 $0.00010 $0.00092
Sonnet 5 $0.00004 $0.00037
Haiku 4.5 $0.00002 $0.00018

Measured 2d ago against content hash 5a29f3f79c5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

examples/sandbox/tutorials/vision_website_clone/skills/playwright/SKILL.md · 24 lines

What it actually says

Playwright

Use Playwright to capture the static site directly. Do not start a server for this example.

mkdir -p output/screenshots output/playwright/.tmp
export TMPDIR="$PWD/output/playwright/.tmp"
export TEMP="$TMPDIR"
export TMP="$TMPDIR"
npx --yes --package [email protected] playwright install chromium
npx --yes --package [email protected] playwright screenshot \
  --browser=chromium \
  --viewport-size=2048,1152 \
  "file://$PWD/output/site/index.html" \
  output/screenshots/draft-1.png

Change the final path to output/screenshots/draft-2.png for the second pass.

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. 2d ago First seen · 24 lines · 19 tokens per session scan A 5a29f3f79c5d

Subscribe to this mod's changes

playwright is a skill published in the GitHub repository openai/openai-agents-python (29,075 stars, last pushed 4d ago), licensed MIT. It adds 19 tokens to every session and 183 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

good-docs-writing

Writing style guide derived from Modal's documentation voice. Apply when writing or editing docs, guides, tutorials, or technical prose that should read direct, second-person, confident, low-jargon, and example-first. Use to draft new docs in this voice or to revise existing prose toward it.

ComposioHQ/composio · 63 tokens

dashboard-builder

Build self-contained interactive HTML dashboards with charts, filters, and tables. Generates a single browser-openable file — no server or dependencies required.

winstonkoh87/Athena-Public · 31 tokens

skill-compiler

Automatic solved-to-skill compiler — detects novel task completions and autonomously drafts new SKILL.md files. Stolen from Hermes Agent's learning loop (NousResearch, 2026-05-11).

winstonkoh87/Athena-Public · 46 tokens

cq

INVOKE WHEN: Starting any task — query first (cq catches blind spots your training data missed: stale versions, integration gotchas, undocumented quirks) You just resolved a non-obvious error, confusing error message, or surprising tool behavior — present a draft KU to the user and call propose if they approve…

mozilla-ai/cq · 128 tokens

circuit-breaker

Mandatory systemic pause when cumulative red flags exceed threshold. Forces disengagement across Trading, Spending, Relationships, Work, and Energy domains.

winstonkoh87/Athena-Public · 31 tokens

notebooklm-cli

Drives Google NotebookLM via the cli-web-notebooklm command-line tool — create and manage notebooks, add URL/text sources, ask questions grounded in the sources, and generate/download artifacts (audio overview, video, slide deck, mindmap, study guide, quiz, FAQ, briefing, infographic, data table). Use when the user…

ItamarZand88/CLI-Anything-WEB · 109 tokens