playwright

playwright is a skill for Codex from pieable/dragon-ball-agent. It costs 76 tokens per session (667 once invoked), scanned A, a copy of playwright, MIT.

A command-line workflow for driving a real web browser with Playwright, a browser-automation tool. It supports navigation, form filling, screenshots, snapshots, data extraction, and investigation of user-interface flows.

In plain words
What is it for?
Use it to automate browser tasks from a terminal, inspect pages, fill forms, capture screenshots, extract page data, and debug UI behavior.
Why use it?
It lets an agent check and operate websites as a user would instead of only examining source code or making HTTP requests. The required setup checks also prevent commands from failing when Node.js or npm is unavailable.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: reads ~/.codex paths; mentions Codex.

Good fit Use it to automate browser tasks from a terminal, inspect pages, fill forms, capture screenshots, extract page data, and debug UI behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pieable/dragon-ball-agent/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 pieable/dragon-ball-agent --skill playwright
Clone the repo
git clone --depth 1 https://github.com/pieable/dragon-ball-agent

Made for: 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/pieable/dragon-ball-agent/playwright/github.svg)](https://agentmods.dev/skills/pieable/dragon-ball-agent/playwright)
Your own site
<a href="https://agentmods.dev/skills/pieable/dragon-ball-agent/playwright"><img src="https://agentmods.dev/badge/skills/pieable/dragon-ball-agent/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/pieable/dragon-ball-agent/playwright"><img src="https://agentmods.dev/badge/skills/pieable/dragon-ball-agent/playwright.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 667 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 100% copy Near-identical to another mod 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.00076 $0.00667
Opus 5.5 $0.00030 $0.00267
Sonnet 5.5 $0.00015 $0.00133
Haiku 4.5 $0.00008 $0.00067

Measured yesterday against content hash b58eda678064, 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/playwright_cli.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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

This is a copy

100% identical to playwright — 122 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/playwright/SKILL.md · 58 lines

What it actually says

Playwright CLI

用 playwright-cli 驱动真实浏览器。优先用捆绑脚本,它通过 npx --package @playwright/cli playwright-cli 运行。仓库已有全局安装约定时沿用。只有用户明确要求测试文件时才转用 @playwright/test。

准备

先确认 npx 可用:

command -v npx >/dev/null 2>&1

若缺少 npx,暂停并请用户安装 Node.js/npm。把以下命令原样交给用户,以便安装并核验 CLI。

# Verify Node/npm are installed
node --version
npm --version

# If missing, install Node.js/npm, then:
npm install -g @playwright/cli@latest
playwright-cli --help

每个会话设置一次 wrapper 路径。用户级 Skill 默认在 $CODEX_HOME/skills,CODEX_HOME 未设置时为 ~/.codex。

export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
export PWCLI="$CODEX_HOME/skills/playwright/scripts/playwright_cli.sh"
"$PWCLI" --help

全局安装是可选项。如用户选择全局安装,使用 npm install -g @playwright/cli@latest 后以 playwright-cli --help 核验。

操作循环

打开页面后先取 snapshot,只用最新快照中的元素引用操作。导航、显著 DOM 变化或切换标签页后重新取快照。引用过期或命令提示找不到元素时也重新读取。

"$PWCLI" open https://example.com
"$PWCLI" snapshot
"$PWCLI" click e3
"$PWCLI" snapshot

表单、会话和调试流程见工作流。标签页操作见 CLI 标签页命令。完整命令见CLI 参考。

操作约定

引用 e12 这类元素 ID 前必须有新快照。没有新快照时使用占位引用并说明原因。不要用 run-code 绕过快照引用。优先用明确的 CLI 命令,确有需要时才用 eval 或 run-code。需要观察视觉结果时用 --headed。

截图、PDF 或追踪等产物存放在仓库的 output/playwright/ 下,避免新建顶层产物目录。需要隔离多个项目或流程时使用命名 session。

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · -90 lines · +31 tokens per session b58eda678064
  2. 15d ago First seen · 148 lines · 45 tokens per session scan A c52cc95125b7

Subscribe to this mod's changes

playwright is a skill published in the GitHub repository pieable/dragon-ball-agent (11 stars, last pushed 2d ago), licensed MIT. It adds 76 tokens to every session and 667 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to playwright, differing in 122 lines, and is treated as a copy.

Related

playwright compared with skills from other repositories

playwright next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
playwrightpieable/dragon-ball-agentSkill112d agoMITA76Codex
pinchtab-mcppinchtab/pinchtabSkill11k5d agoMITA52Claude Code, Codex
azure-messaging-webpubsub-javamicrosoft/skillsSkill3.3k3d agoMITA43Claude Code
cua-driverdavidondrej/skillsSkill4.4k3d agoMITA68Claude Code, Codex
open-design-browsercompozy/compozySkill2.9ktodayMITA56Claude Code, Codex
browser_cdpmateaix/mateclawSkill1.2k3d agoApache-2.0A44Claude Code, Codex
southwestborski/travel-hacking-toolkitSkill1.1k7d agoMITA40Claude Code