playwright-cli

playwright-cli is a skill for Claude Code from MingyiSecLab/Mingyi-Atlas. It costs 19 tokens per session (2,677 once invoked), scanned A, original, Apache-2.0.

Instructions for using Playwright, a tool that controls web browsers, to automate interactions and test web pages. They also describe a task-scoped browser runner for security testing environments.

In plain words
What is it for?
Use it to open pages, interact with web controls, run Playwright tests, capture screenshots or PDFs, and automate browser-based checks.
Why use it?
It makes browser actions and page tests repeatable, while documenting how to keep those actions within an approved website scope.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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/mingyiseclab/mingyi-atlas/playwright-cli
Any agent
npx skills add MingyiSecLab/Mingyi-Atlas --skill playwright-cli
Clone the repo
git clone --depth 1 https://github.com/MingyiSecLab/Mingyi-Atlas

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/mingyiseclab/mingyi-atlas/playwright-cli.svg)](https://agentmods.dev/skills/mingyiseclab/mingyi-atlas/playwright-cli)
Your own site
<a href="https://agentmods.dev/skills/mingyiseclab/mingyi-atlas/playwright-cli"><img src="https://agentmods.dev/badge/skills/mingyiseclab/mingyi-atlas/playwright-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,677 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.1 $0.00019 $0.02677
Opus 5 $0.00010 $0.01339
Sonnet 5 $0.00004 $0.00535
Haiku 4.5 $0.00002 $0.00268

Measured 6d ago against content hash 0838a1849ef7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

playwright-cli 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 6d 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.

src/skills/shared/playwright-cli/SKILL.md · 399 lines

How it starts

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

Browser Automation with playwright-cli

Mingyi Atlas pentest runner usage

When running in Mingyi Atlas pentest mode, prefer the run_browser_cli tool instead of local Bash. It executes playwright-cli inside a task-scoped browser container from the configured containers/browser-runner image.

Tool input rules:

  • Set sessionId to a task-scoped id and reuse it for all browser steps in that task.
  • Put only the playwright-cli arguments in argv; do not include playwright-cli itself. Prefer string[]; JSON-encoded string arrays are accepted only for compatibility.
  • Include every URL/host touched by the command in targets so scope validation can run.
  • Use scopeHosts only when the authorized scope has not already been recorded.
  • Use expectedOutputs for files written under /out.
  • For screenshot, snapshot, and pdf, run_browser_cli will add a missing /out/... filename automatically so evidence is collected.
  • Use action: "close" when the task ends to destroy the browser container.
  • Browser runner containers are labeled for stale cleanup, but explicit action: "close" remains the preferred cleanup path.

Example:

{
  "sessionId": "recon-example",
  "argv": ["open", "https://example.com"],
  "targets": ["https://example.com"],
  "purpose": "Open scoped target in browser runner"
}

Follow-up step in the same task:

{
  "sessionId": "recon-example",
  "argv": ["snapshot"],
  "targets": ["https://example.com"],
  "purpose": "Capture scoped page snapshot"
}

Task cleanup:

{
  "sessionId": "recon-example",
  "action": "close",
  "purpose": "Close browser runner for completed task"
}

Quick start

# open new browser
playwright-cli open
# navigate to a page
playwright-cli goto https://playwright.dev
# interact with the page using refs from the snapshot
playwright-cli click e15
playwright-cli type "page.click"
playwright-cli press Enter
# take a screenshot (rarely used, as snapshot is more common)
playwright-cli screenshot
# close the browser
playwright-cli close

Read the full file on GitHub · 399 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. 6d ago First seen · 399 lines · 19 tokens per session scan A 0838a1849ef7

Subscribe to this mod's changes

playwright-cli is a skill published in the GitHub repository MingyiSecLab/Mingyi-Atlas (11 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 19 tokens to every session and 2,677 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

qa-only

Report-only QA testing. Systematically tests a web application and produces a structured report with health score, screenshots, and repro steps — but never fixes anything. Use when asked to "just report bugs", "qa report only", or "test but don't fix". For the full test-fix-verify loop, use /qa instead. Proactively…

CarbeneAI/Forge · 89 tokens

playwright-skill

IMPORTANT - Path Resolution: This skill can be installed in different locations (plugin system, manual installation, global, or project-specific). Before executing any commands, determine the skill directory based on where you loaded this SKILL.md file, and use that path in all commands below.

Agent-Threat-Rule/agent-threat-rules · 60 tokens

sast-dast-coordinator

USAP agent skill for SAST/DAST Coordinator. Orchestrate static and dynamic application security testing, correlate findings across tools, deduplicate results, and prioritize by exploitability.

jaskaranhundal/usap-skills · 44 tokens

web-enumeration

ARIA agent skill for active web content discovery. Use for reasoning about path brute-forcing results, prioritising discovered endpoints, and identifying high-value targets for exploitation.

jaskaranhundal/usap-skills · 37 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

aisa-group/skill-inject · 35 tokens

browser-qa

自动化视觉测试与 UI 交互验证。部署功能后使用浏览器自动化验证关键页面、核心路径和发布前回归。 当任务需要真实浏览器验证渲染、导航、交互或前端上线风险时使用。.

hashgraph-online/awesome-codex-plugins · 58 tokens