playwright-skill

playwright-skill is a skill for Claude Code, Codex from jianchen08/Agent-os-open. It costs 139 tokens per session (3,093 once invoked), scanned A, a copy of playwright-skill, Apache-2.0.

A browser-automation and end-to-end testing skill built around Playwright, a tool for controlling browsers with code. It can generate tests and automation scripts in TypeScript, JavaScript, Python, Java, or C# for local or cloud runs.

In plain words
What is it for?
Writing Playwright scripts, testing user journeys such as sign-in or checkout, and running browser checks locally or through TestMu AI cloud.
Why use it?
It removes the need to write browser tests from scratch and helps check whether a website works across different browsers, operating systems, and mobile devices.

Skill for Claude CodeCodex

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

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/jianchen08/agent-os-open/playwright-skill.svg)](https://agentmods.dev/skills/jianchen08/agent-os-open/playwright-skill)
Your own site
<a href="https://agentmods.dev/skills/jianchen08/agent-os-open/playwright-skill"><img src="https://agentmods.dev/badge/skills/jianchen08/agent-os-open/playwright-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 139 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,093 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 97% 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.00139 $0.03093
Opus 5 $0.00069 $0.01546
Sonnet 5 $0.00028 $0.00619
Haiku 4.5 $0.00014 $0.00309

Measured yesterday against content hash 5356644b15a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

playwright-skill 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 4 executable files (scripts/scaffold-project.sh, scripts/validate-config.py, templates/lambdatest-setup.ts, …), 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

97% identical to playwright-skill — 4 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/SKILL.md · 345 lines

How it starts

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

Playwright Test Automation

本技能是流程指引,不是逐条打勾清单:按场景判断使用,遇不适用情况保持裁量,不机械执行。

chromium 与 playwright 库已预装,直接 chromium.launch(headless=True, args=["--no-sandbox"]) 使用,不要运行 playwright install(会清空已预装的浏览器)。

Step 1 — Determine Execution Target

Decide BEFORE writing any code:

User says... Target Action
No cloud mention, "locally", "debug" Local Standard Playwright config
"cloud", "TestMu", "LambdaTest", "cross-browser", "real device" Cloud See reference/cloud-integration.md
Impossible local combo (Safari on Windows, Edge on Linux) Cloud Suggest TestMu AI, see reference/cloud-integration.md
"HyperExecute", "parallel at scale" HyperExecute Defer to hyperexecute-skill
"visual regression", "screenshot comparison" SmartUI Defer to smartui-skill
Ambiguous Local Default local, mention cloud option

Step 2 — Detect Language

Signal Language Default
"TypeScript", "TS", .ts, or no language specified TypeScript
"JavaScript", "JS", .js JavaScript
"Python", "pytest", .py Python See reference/python-patterns.md
"Java", "Maven", "Gradle", "TestNG" Java See reference/java-patterns.md
"C#", ".NET", "NUnit", "MSTest" C# See reference/csharp-patterns.md

Step 3 — Determine Scope

Request type Output
One-off quick script Standalone .ts file, no POM
Single test for existing project Match their structure and conventions
New test suite / project Full scaffold — see scripts/scaffold-project.sh
Fix flaky test Debugging checklist — see reference/debugging-flaky.md
API mocking needed See reference/api-mocking-visual.md
Mobile device testing See reference/mobile-testing.md

Read the full file on GitHub · 345 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. yesterday Changed · +2 lines 5356644b15a5
  2. 6d ago First seen · 343 lines · 139 tokens per session scan A 9aac4da791ed

Subscribe to this mod's changes

playwright-skill is a skill published in the GitHub repository jianchen08/Agent-os-open (5 stars, last pushed 2d ago), licensed Apache-2.0. It adds 139 tokens to every session and 3,093 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to playwright-skill, differing in 4 lines, and is treated as a copy.

Related

Other skills, from other repositories

e2e-testing

Playwright E2E testing patterns, Page Object Model, configuration, CI/CD integration, artifact management, and flaky test strategies. Use when writing Playwright tests, structuring page objects, or fixing flaky E2E runs in CI.

affaan-m/ECC · 53 tokens

dogfood

Exploratory QA of web apps: find bugs, evidence, reports.

NousResearch/hermes-agent · 18 tokens

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

VoltAgent/voltagent · 52 tokens

langbot-testing

Test LangBot WebUI and core product flows with an automated browser and backend logs. Use when validating the configured LangBot frontend, pipeline Debug Chat, model provider setup and test buttons, bot and knowledge-base UI flows, or troubleshooting failed LangBot end-to-end tests.

langbot-app/LangBot · 58 tokens

playwright-cli

官方Microsoft Playwright CLI网页自动化工具,支持所有主流浏览器的无头/有头自动化操作,包括页面导航、元素交互、截图、录制、测试等功能。当用户提到网页自动化、浏览器操作、爬虫、截图、录制用户操作、E2E测试时触发。.

UnicomAI/wanwu · 76 tokens

pytest-suite

Write or extend the backend test suite following this project's conventions. Use when adding tests for a new service/route/repository, when coverage is missing, or when asked to test a feature. Knows the mocked-session + httpx AsyncClient setup so tests run with no database.

vstorm-co/full-stack-ai-agent-template · 59 tokens