playwright-dev — Claude Code skill: what it does, how to install
Explains how to develop Playwright: add APIs, MCP tools, CLI commands, and manage vendor dependencies.
npx skills add microsoft/playwright --skill playwright-dev -a claude-codeWhat playwright-dev does
The skill includes guides on library architecture (client/server/dispatcher structure, protocol layer, DEPS rules), adding and modifying APIs (doc definitions, client/server implementation, tests), creating MCP tools and CLI commands, and working with vendor dependencies (utilsBundle, coreBundle, babelBundle, DEPS.list, check_deps).
Inside: instructions for updating the Safari version string in WebKit user-agent, working with the WebView backend for iOS Safari (provisional-target pause/resume, upstream vs Playwright patches, local and CI test setup), bisecting regressions across published npm versions, and the dashboard behind playwright cli show.
Useful for developers planning to modify Playwright internals or add new capabilities to the monorepo.
What it helps with
- add a new API method to Playwright with docs and tests
- create an MCP tool or CLI command for the project
- update a vendored dependency and rebuild the bundle
- locate a regression between versions by bisecting published releases
- understand the client/server/dispatcher architecture and DEPS rules
Example prompts for the agent
- Show me how to add a new API method in Playwright following the playwright-dev guide
- Explain the MCP tools structure in Playwright according to the skill
- How do I update the Safari version string in WebKit per the skill instructions?
How to install playwright-dev
1Skills CLI (Vercel)
npx skills add microsoft/playwright --skill playwright-dev -a claude-code2Manually: put the files in place
~/.claude/skills/playwright-dev/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/playwright-dev/
1Skills CLI (Vercel)
npx skills add microsoft/playwright --skill playwright-dev -a codex2Manually: put the files in place
.agents/skills/playwright-dev/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add microsoft/playwright --skill playwright-dev -a cursor2Manually: put the files in place
.cursor/skills/playwright-dev/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install microsoft/playwright playwright-dev2Manually: put the files in place
.github/skills/playwright-dev/SKILL.md1Skills CLI (Vercel)
npx skills add microsoft/playwright --skill playwright-dev -a gemini-cli2Platform CLI
gemini skills install https://github.com/microsoft/playwright --path .claude/skills/playwright-devManually: put the files in place
.devin/skills/playwright-dev/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add microsoft/playwright --skill playwright-dev -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Similar
Questions about playwright-dev
How to install playwright-dev in Claude Code?
Run npx skills add microsoft/playwright --skill playwright-dev -a claude-code, and the skill will appear in ~/.claude/skills/playwright-dev/SKILL.md.
What does the playwright-dev skill do?
It explains how to develop Playwright: add APIs, MCP tools, CLI commands, manage vendor dependencies, and update components like WebKit.
What are utilsBundle, coreBundle and babelBundle in Playwright?
They are Playwright's vendored dependency bundles. The skill shows how to add npm packages to them, manage DEPS.list, and run check_deps for validation.
Source text
SKILL.md · Apache-2.0
--- name: playwright-dev description: Explains how to develop Playwright - add APIs, MCP tools, CLI commands, and vendor dependencies. --- # Playwright Development Guide See [AGENTS.md](../../../AGENTS.md) for monorepo structure, build/test/lint commands, and coding conventions. ## Detailed Guides - [Library Architecture](library.md) — client/server/dispatcher structure, protocol layer, DEPS rules - [Adding and Modifying APIs](api.md) — define API docs, implement client/server, add tests - [MCP Tools and CLI Commands](tools.md) — add MCP tools, CLI commands, config options - [Vendor Dependencies & Bundling](vendor.md) — utilsBundle, coreBundle, babelBundle; adding vendored npm packages; DEPS.list; `check_deps` - [Updating WebKit Safari Version](webkit-safari-version.md) — update the Safari version string in the WebKit user-agent - [WebView (iOS Safari) Backend](webview.md) — `webkit/webview/` against stock Mobile Safari; provisional-target pause/resume; what's upstream vs Playwright patches; local + CI test setup - [Bisecting Across Published Versions](bisect-published-versions.md) — reproduce regressions side-by-side from npm and diff `node_modules/playwright/lib/` between versions - [Dashboard](dashboard.md) - the UI powering the "playwright cli show" command, and how to work on it
© microsoft · Apache-2.0 · microsoft/playwright