Agent skill · Microsoft (Playwright)
Playwright CLI skill for Claude Code, Codex and Cursor
Officialname: playwright-cli★ 15k (repo)pushed 2026-10-19Apache-2.0SKILL.md on GitHubchecked 2026-11-07
What it does, in the publisher's words
Automate browser interactions, test web pages and work with Playwright tests.
The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.
Install Playwright CLI
The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs
npx skills add microsoft/playwright-cli --skill playwright-cli
Copy the skill folder into ~/.claude/skills (all projects) or .claude/skills (this repo). Claude Code picks it up without a restart. docs
npx skills add microsoft/playwright-cli --skill playwright-cli -a claude-code # or by hand: git clone --depth 1 https://github.com/microsoft/playwright-cli.git /tmp/playwright-cli-src cp -r /tmp/playwright-cli-src/skills/playwright-cli ~/.claude/skills/playwright-cli
Download the skill folder, zip it, then Customize > Skills > + > Create skill > Upload a skill. Code execution must be on (Settings > Capabilities). docs
git clone --depth 1 https://github.com/microsoft/playwright-cli.git /tmp/playwright-cli-src cp -r /tmp/playwright-cli-src/skills/playwright-cli ./playwright-cli zip -r playwright-cli.zip playwright-cli
Codex reads skills from .agents/skills in the repo or ~/.agents/skills. Type $ in Codex to use one. docs
npx skills add microsoft/playwright-cli --skill playwright-cli -a codex
gh skill (GitHub CLI 2.90+, preview) installs it for Copilot in VS Code, the CLI and the cloud agent. Copilot also reads .github/skills and ~/.copilot/skills. docs
gh skill install microsoft/playwright-cli playwright-cli
Cursor reads .cursor/skills, .agents/skills and ~/.cursor/skills (and .claude/skills). It does not install loose skills from a GitHub URL, so copy it in. docs
npx skills add microsoft/playwright-cli --skill playwright-cli -a cursor
Installs from the GitHub repo; --path picks this skill out of the repo. Default scope is user (all projects). docs
gemini skills install https://github.com/microsoft/playwright-cli.git --path skills/playwright-cli
OpenCode reads .opencode/skills, ~/.config/opencode/skills and the Claude and .agents folders. docs
npx skills add microsoft/playwright-cli --skill playwright-cli -a opencode
Windsurf (now Devin Desktop) reads .devin/skills, .windsurf/skills and ~/.codeium/windsurf/skills. docs
npx skills add microsoft/playwright-cli --skill playwright-cli -a windsurf
Works with
Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.
- Pre-approves these tools (allowed-tools, experimental in the spec): Bash(playwright-cli:*) Bash(npx playwright:*) Bash(npx --no-install playwright:*).
What's in the SKILL.md
- Quick start
- Commands
- Core
- Navigation
- Keyboard
- Mouse
- Save as
- Tabs
- Storage
- Emulation
- Network
- DevTools
- WebMCP
- Raw output
- Open parameters
- URLs with & on Windows
- Snapshots
- Targeting elements
- Browser Sessions
- Installation
- Example: Form submission
- Example: Multi-tab workflow
- Example: Debugging with DevTools
- Example: Interactive session
- + 2 more
Bundled files
- references/element-attributes.md
- references/playwright-tests.md
- references/pr-attachments.md
- references/request-mocking.md
- references/running-code.md
- references/session-management.md
- references/storage-state.md
- references/test-generation.md
- references/tracing.md
- references/video-recording.md
Loaded only when the instructions point to them.
Facts
- Skill name
- playwright-cli
- Publisher
- Microsoft (Playwright) (official)
- Repo
- microsoft/playwright-cli
- License
- Apache-2.0
- SKILL.md size
- 571 words, 488 lines
- Bundled files
- 10, 10 docs
- Repo stars
- 15k (as of 2026-10-24)
- SKILL.md checked
- 2026-11-07
Pairs with the Playwright MCP server: the server gives the agent the tools, the skill teaches it how to use them.
Related testing & qa skills
- Web App Testing · Anthropic
- Agent Browser · Vercel
- Playwright Browser Automation · OpenAI
- Property-Based Testing · Trail of Bits
- Analyze .NET Performance · Microsoft (.NET)
- Browserbase Browser · Browserbase
- Adversarial UI Test · Browserbase
- Find Bugs · Sentry
FAQ
What does the playwright-cli skill do?+
Microsoft's skill for driving browsers and working with Playwright tests from the CLI. In its own SKILL.md, Microsoft (Playwright) describes it as: "Automate browser interactions, test web pages and work with Playwright tests."
How do I install the playwright-cli skill?+
Run npx skills add microsoft/playwright-cli --skill playwright-cli and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/playwright-cli/SKILL.md; in Codex and Cursor in .agents/skills/playwright-cli/.
Does Playwright CLI work in Codex, Cursor and Copilot, or only Claude?+
It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more.
Who maintains Playwright CLI?+
Microsoft (Playwright), the company or project behind it, in the microsoft/playwright-cli repo on GitHub, last pushed 2026-10-19. License: Apache-2.0.
Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers