playwright
Skill39 starsChanged 34 days agoMITView on GitHub
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script.
- Installs packages
We split this skill into the rules it gives an agent
12 rules. 0 are common, 4 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 64 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Treat this skill as CLI-first automation.
- Very specific: line 14
Before proposing commands, check whether npx is available (the wrapper depends on it):
- Very specific: line 20
If it is not available, pause and ask the user to install Node.js/npm (which provides npx).
- Distinctive: line 45
Use the wrapper script:
- Distinctive: line 56
If the user prefers a global install, this is also valid:
- Distinctive: line 130
Prefer the wrapper unless the repository already standardizes on a global install.
- Very specific: line 141
Always snapshot before referencing element ids like e12.
- Very specific: line 143
Prefer explicit commands over eval and run-code unless needed.
- Very specific: line 144
When you do not have a fresh snapshot, use placeholder refs like eX and say why.
- Very specific: line 145
Use --headed when a visual check will help.
- Very specific: line 146
When capturing artifacts in this repo, use output/playwright/ and avoid introducing new top-level artifact folders.
- Distinctive: line 147
Default to CLI commands and workflows, not Playwright test specs.
“Common” is measured: kept by at least 6 in 10 of the 64 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Playwright CLI Skill
Drive a real browser from the terminal using playwright-cli. Prefer the bundled wrapper script so the CLI works even when it is not globally installed.
Treat this skill as CLI-first automation. Do not pivot to @playwright/test unless the user explicitly asks for test files.
Prerequisite check (required)
Before proposing commands, check whether npx is available (the wrapper depends on it):
command -v npx >/dev/null 2>&1If it is not available, pause and ask the user to install Node.js/npm (which provides npx). Provide these steps verbatim:
# Verify Node/npm are installed
node --version
npm --version
# If missing, install Node.js/npm, then:
npm install -g @playwright/cli@latest
playwright-cli --helpOnce npx is present, proceed with the wrapper script. A global install of playwright-cli is optional.
Skill path (set once)
export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
export PWCLI="$CODEX_HOME/skills/playwright/scripts/playwright_cli.sh"User-scoped skills install under $CODEX_HOME/skills (default: ~/.codex/skills).
Quick start
Use the wrapper script:
"$PWCLI" open https://playwright.dev --headed
"$PWCLI" snapshot
"$PWCLI" click e15
"$PWCLI" type "Playwright"
"$PWCLI" press Enter
"$PWCLI" screenshotIf the user prefers a global install, this is also valid:
npm install -g @playwright/cli@latest
playwright-cli --helpCore workflow
- Open the page.
- Snapshot to get stable element refs.
- Interact using refs from the latest snapshot.
- Re-snapshot after navigation or significant DOM changes.
- Capture artifacts (screenshot, pdf, traces) when useful.
Minimal loop:
"$PWCLI" open https://example.com
"$PWCLI" snapshot
"$PWCLI" click e3
"$PWCLI" snapshotWhen to snapshot again
Snapshot again after:
- navigation
- clicking elements that change the UI substantially
- opening/closing modals or menus
- tab switches
Refs can go stale. When a command fails due to a missing ref, snapshot again.
Recommended patterns
Form fill and submit
"$PWCLI" open https://example.com/form
"$PWCLI" snapshot
"$PWCLI" fill e1 "user@example.com"
"$PWCLI" fill e2 "password123"
"$PWCLI" click e3
"$PWCLI" snapshotDebug a UI flow with traces
"$PWCLI" open https://example.com --headed
"$PWCLI" tracing-start
# ...interactions...
"$PWCLI" tracing-stopMulti-tab work
"$PWCLI" tab-new https://example.com
"$PWCLI" tab-list
"$PWCLI" tab-select 0
"$PWCLI" snapshotWrapper script
The wrapper script uses npx --package @playwright/cli playwright-cli so the CLI can run without a global install:
"$PWCLI" --helpPrefer the wrapper unless the repository already standardizes on a global install.
References
Open only what you need:
- CLI command reference:
references/cli.md - Practical workflows and troubleshooting:
references/workflows.md
Guardrails
- Always snapshot before referencing element ids like
e12. - Re-snapshot when refs seem stale.
- Prefer explicit commands over
evalandrun-codeunless needed. - When you do not have a fresh snapshot, use placeholder refs like
eXand say why; do not bypass refs withrun-code. - Use
--headedwhen a visual check will help. - When capturing artifacts in this repo, use
output/playwright/and avoid introducing new top-level artifact folders. - Default to CLI commands and workflows, not Playwright test specs.
Other versions92 projects use a version of this.
Word for word · 16
- openai/skills★ 27k100% same
- matyasstoch/david-skills★ 59100% same
- VoDaiLocz/kilo-kit-mcp★ 28100% same
- ingpoc/SKILLS★ 9100% same
- HanksChen0110/skills★ 2100% same
- masterno/agent-skills★ 2100% same
- Minghou-Lei/codex-skills★ 2100% same
- AnasX7/skills★ 1100% same
- PandelisZ/skills★ 1100% same
- ailessonio/open-source-skills★ 0100% same
6 more not listed
Edited · 22
- netease-youdao/LobsterAI★ 6.2k89% same
- freestylefly/wesight★ 94189% same
- JetBrains/skills★ 38695% same
- 4gentic/obelus★ 899% same
- Envy-7z/katalyst★ 496% same
- Adhamxon/claude-code-skills★ 298% same
- daidaibunny/agent-skills★ 277% same
- Geruyang/skills★ 286% same
- miptah21/skills★ 268% same
- ParkerRex/Skills★ 298% same
12 more not listed
Wrote their own version · 54
- openai/openai-agents-python★ 30ksame name
- prowler-cloud/prowler★ 15ksame name
- hyperdxio/hyperdx★ 10ksame name
- bluesky-social/atproto★ 9.7ksame name
- Kiln-AI/Kiln★ 5.2ksame name
- Gram-ax/gramax★ 609same name
- Mindrally/skills★ 275same name
- alexeykrol/claude-code-starter★ 194same name
- magnus919/agent-skills★ 162same name
- kandada/aacode★ 134same name
44 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use develop-web-game, web-perf and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
hebertzhuSkilldevelop-web-game
Use when building or iterating on a web game and you need a tight implement-test-observe loop; prefer the bundled Playwright client, inspect screenshots and text state, and validate every meaningful change before moving on.
Also in 4 projects that use this
OpenAISkillweb-perf
Analyzes web performance using Chrome DevTools MCP. Measures Core Web Vitals (FCP, LCP, TBT, CLS, Speed Index), identifies render-blocking resources, network dependency chains, layout shifts, caching issues, and accessibility gaps. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed. Biases towards retrieval from current documentation over pre-trained knowledge.
Also in 5 projects that use this
JetBrainsSkilldoc
Use when the task involves reading, creating, or editing `.docx` documents, especially when formatting or layout fidelity matters; prefer `python-docx` plus the bundled `scripts/render_docx.py` for visual checks.
Also in 4 projects that use this
CloudflareSkillcloudflare-one
Design, configure, troubleshoot, or review Cloudflare One Zero Trust and SASE deployments. Use cloudflare-one-migrations for migration planning from other vendors.
Also in 3 projects that use this
hajekimSkillmcp-setup
This skill should be used when the user wants to "Model Context Protocol", "MCP server", "MCP client", "standardized tool integration", "JSON-RPC agent tools", "LLM tool protocol", "connect agents to external tools", "MCP primitives", "FastMCP", "ADK MCPToolset", "plug-and-play agent tools", "MCP integration", "tool server for agents", "MCP tools", "agent plugin system", "MCP setup", "model context protocol integration", or build agents that use the standardized MCP protocol for tool and resource integration. Also responds to Korean: "모델 컨텍스트 프로토콜", "MCP 서버", "MCP 클라이언트", "표준화된 도구 통합", "플러그 앤 플레이 에이전트 도구", "ADK MCP 툴셋", "MCP 구성", "MCP 설정", "MCP 써보고 싶어", "MCP 툴 연결", "MCP 서버 만들어줘", "도구 표준화해줘", "플러그인 에이전트". Also responds to Japanese: "モデルコンテキストプロトコル", "MCPサーバー", "MCPクライアント", "標準化ツール統合", "MCPの設定", "MCPを使いたい", "MCP構成", "エージェントのプラグインシステム", "ツールサーバー", "MCPツール連携" Also responds to Chinese: "模型上下文协议", "MCP服务器", "MCP客户端", "标准化工具集成", "MCP配置", "想用MCP", "MCP构建", "智能体插件系统", "工具服务器", "MCP工具集成".. Apply this skill to design or implement the Model Context Protocol (MCP) agentic design pattern.
Also in 3 projects that use this
CloudflareSkillturnstile-spin
Set up, repair, or migrate to Cloudflare Turnstile bot verification in an existing frontend and backend, including server-side Siteverify.
Also in 3 projects that use this
In this repository85 other files it gives its agents.
- api-securitySkill
- apk-reverseSkill
- attack-chainSkill
- binary-diffSkill
- cairnSkill
- code-sentinel-ctfSkill
- code-sentinel-engagementSkill
- code-sentinel-gpt56Skill
- code-sentinel-matrixSkill
- code-sentinel-opsSkill
- code-sentinel-payloadSkill
- code-sentinel-ptesSkill
- code-sentinelSkill
- cyberstrikeSkill
- diagram-generatorSkill
- docs-generatorSkill
- edr-bypass-reSkill
- firmware-pentestSkill
- gpt56-instruct-routerSkill
- gpt56-reverse-pentestSkill
- ida-reverseSkill
- js-reverseSkill
- llm-securitySkill
- malware-analysisSkill
- mobile-competitive-game-securitySkill
- mobile-reverseSkill
- patch-diff-exploitSkill
- pdfSkill
- pentest-toolsSkill
- src-hunterSkill
- playwright-interactiveSkill
- pojia-anticheatSkill
- pojia-auto-opsSkill
- pojia-evasionSkill
- pojia-exploitSkill
- pojia-game-hackSkill
- pojia-game-redteamSkill
- pojia-game-securitySkill
- pojia-labSkill
- pojia-license-securitySkill
- pojia-malwareSkill
- pojia-mature-contentSkill
- pojia-memorySkill
- pojia-pentestSkill
- pojia-reverseSkill
- pojia-social-engSkill
- pojia-unlimitedSkill
- pwn-chainSkill
- radare2Skill
- range-research-scopeSkill
- recover-license-native-e2eSkill
- reverse-engineeringSkill
- screenshotSkill
- security-best-practicesSkill
- security-ownership-mapSkill
- security-threat-modelSkill
- shadowtrace-anti-debugSkill
- shadowtrace-artifact-triageSkill
- shadowtrace-binary-analysisSkill
- shadowtrace-binary-protectionSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

