playwright
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
Skill by mbtz
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mbtz-playwright
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, testing, data, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
playwright- Description
- 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.
- License
- MIT
- Instructions
- 144 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (9)
- LICENSE.txt
- NOTICE.txt
- SKILL.md
- openai.yaml · agents/
- playwright-small.svg · assets/
- playwright.png · assets/
- cli.md · references/
- workflows.md · references/
- playwright_cli.sh · scripts/
SKILL.md (first lines)
# 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):
```bash
command -v npx >/dev/null 2>&1
```
If it is not available, pause and ask the user to install Node.js/npm (which provides `npx`). Provide these steps verbatim:
```bash
# Verify Node/npm are installed
node --version
npm --version
# If missing, install Node.js/npm, then:
npm install -g @playwright/mcp@latest
playwright-cli --help
```
Once `npx` is present, proceed with the wrapper script. A global install of `playwright-cli` is optional.
## Skill path (set once)
```bash
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:
```bash
"$PWCLI" open https://playwright.dev --headed
"$PWCLI" snapshot
"$PWCLI" click e15
"$PWCLI" type "Playwright"
"$PWCLI" press Enter
"$PWCLI" screenshot
```
If the user prefers a global install, this is also valid:
```bash
npm install -g @playwright/mcp@latest
playwright-cli --help
```
## Core workflow
1. Open the page.
2. Snapshot to get stable element refs.
3. Interact using refs from the latest snapshot.
4. Re-snapshot after navigation or significant DOM changes.
5. Capture artifacts (screenshot, pdf, traces) when useful.
Minimal loop:
```bash
"$PWCLI" open https://example.com
"$PWCLI" snapshot
"$PWCLI" click e3
"$PWCLI" snapshot
```
## When 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
```bash
"$PWCLI" open https://example.com/form
"$PWCLI" snapshot
"$PWCLI" fill e1 "user@example.com"
"$PWCLI" fill e2 "password123"
"$PWCLI" click e3
"$PWCLI" snapshot
```
### Debug a UI flow with traces
```bash
"$PWCLI" open https://example.com --headed
"$PWCLI" tracing-start
# ...interactions...
"$PWCLI" tracing-stop
```
### Multi-tab work
```bash
"$PWCLI" tab-new https://example.com
"$PWCLI" tab-list
"$PWCLI" tab-select 0
"$PWCLI" snapshot
```
## Wrapper script
The wrapper script uses `npx --package @playwright/mcp playwright-cli` so the CLI can run without a global install:From mbtz/agent-skills, MIT.
More from mbtz/agent-skills
- 0.502score
obsidian-memory-capture
mbtz
Capture Codex assistant answers from session JSONL into Obsidian raw inbox notes for manager distillation.
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
image-chroma-remove
mbtz
Use when an image has a flat chroma-key background that should become real transparency, especially for pixel-art sprites generated on green, magenta, cyan…
SkillCFreshness: C★ 1Claude Code +9 - 0.501score
user-feedback
mbtz
Use when asked to check, read, triage, or act on user feedback
SkillCFreshness: C★ 1Claude Code +9 - 0.492score
no-edit
mbtz
Only read files, analyze code, and provide feedback.
SkillCFreshness: C★ 1Claude Code +9 - 0.488score
session-protocol
mbtz
Follow the end-of-session git checklist before handing off.
SkillCFreshness: C★ 1Claude Code +9 - 0.487score
sv-issue-tracking
mbtz
Use sv task to manage work items and keep .tasks/ in sync with code changes.
SkillCFreshness: C★ 1Claude Code +9 - 0.467score
grill-me
mbtz
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 18, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/mbtz/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.688score
playwright
openaiOfficial
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
SkillDFreshness: D★ 28.3KClaude Code +9 - 0.405score
playwright
z91772524-ai
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
SkillAFreshness: A★ 77Claude Code +9 - 0.355score
playwright
Tom-R-Main
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
SkillAFreshness: A★ 1Claude Code +9 - 0.341score
playwright
teeryxie
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
SkillBFreshness: B★ 4Claude Code +9 - 0.340score
playwright
foryourhealth111-pixel
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.339score
playwright
ThadCastl3
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
SkillAFreshness: AClaude Code +9 - 0.298score
playwright
stevencarpenter
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
SkillCFreshness: C★ 1Claude Code +9 - 0.298score
playwright
KingYeon-Zoo
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
SkillCFreshness: C★ 1Claude Code +9 - 0.288score
playwright
m-howard
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
SkillCFreshness: CClaude Code +9 - 0.280score
playwright
Cesar514
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
SkillDFreshness: D★ 6Claude Code +9 - 0.259score
playwright
PandelisZ
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
SkillDFreshness: D★ 1Claude Code +9 - 0.249score
playwright
williamceccon
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging)…
SkillDFreshness: DClaude Code +9
More from mbtz
- 0.502score
obsidian-memory-capture
mbtz
Capture Codex assistant answers from session JSONL into Obsidian raw inbox notes for manager distillation.
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
image-chroma-remove
mbtz
Use when an image has a flat chroma-key background that should become real transparency, especially for pixel-art sprites generated on green, magenta, cyan…
SkillCFreshness: C★ 1Claude Code +9 - 0.501score
user-feedback
mbtz
Use when asked to check, read, triage, or act on user feedback
SkillCFreshness: C★ 1Claude Code +9 - 0.492score
no-edit
mbtz
Only read files, analyze code, and provide feedback.
SkillCFreshness: C★ 1Claude Code +9 - 0.488score
session-protocol
mbtz
Follow the end-of-session git checklist before handing off.
SkillCFreshness: C★ 1Claude Code +9 - 0.487score
sv-issue-tracking
mbtz
Use sv task to manage work items and keep .tasks/ in sync with code changes.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
playwright skill. Agent Mart. https://agentmart.dev/skills/mbtz-playwright (last updated 2026-10-24)