playwright-cli
Browser testing for your site
- For people who code
- Needs: A coding tool such as Claude Code, with Node.js and Microsoft's Playwright browser tool,…
What it does
Automate browser interactions, test web pages and work with Playwright tests.
Playwright CLI with SKILLS
This package provides CLI interface into Playwright. If you are using coding agents, that is the best fit.
- CLI: Modern coding agents increasingly favor CLI–based workflows exposed as SKILLs over MCP because CLI invocations are more token-efficient: they avoid loading large tool schemas and verbose accessibility trees into the model context, allowing agents to act through concise, purpose-built commands. This makes CLI + SKILLs better suited for high-throughput coding agents that must balance browser automation with large codebases, tests, and reasoning within limited context windows.
- MCP: MCP remains relevant for specialized agentic loops that benefit from persistent state, rich introspection, and iterative reasoning over page structure, such as exploratory automation, self-healing tests, or long-running autonomous workflows where maintaining continuous browser context outweighs token cost concerns. Learn more about Playwright MCP.
From README.md in microsoft/playwright-cli · a snapshot from Nov 24, 2026, so it may be a little out of date
Try it
- 1Add playwright-cli to your AI
- 2Ask for something like this
Open my site on localhost and check that the sign-up flow works end to end.
Write a test for the checkout page that I can rerun after every change.
Record a video of the bug on the settings page so I can attach it to my pull request.
Example prompts written from the skill's instructions.
Safety
SafeDetails
All three scanners ran and found nothing that could steal your data or hijack your AI.
What it can do- Runs commands on your computer
- Goes online
- Reads keys or settings
- Scanners
- SkillSpector 2.12.0 · HoneyBadger 0.8.1 · agentscan 1.2.2
- Version scanned
b217248microsoft/playwright-cli/skills/playwright-cli- Scanned on
- Nov 19, 2026
- Raw reports
- full report skillspector honeybadger agentscan
- Secret scanNoticed
agentscan: secrets high SKILL.md:260 Secret-like assignmentContains something that looks like a key or password. (LLM02 Sensitive Information Disclosure) - Dangerous commandsNoticed
agentscan: shell medium references/running-code.md:241 Invokes shell backticksCan run commands on your computer. (LLM06 Excessive Agency)agentscan: shell medium references/session-management.md:68 Invokes bashCan run commands on your computer. (LLM06 Excessive Agency)SkillSpector: RA2 MEDIUM references/storage-state.md:261 Session PersistenceTries to keep running between sessions. (LLM06 Excessive Agency) - Network callsNoticed
agentscan: exfil medium references/running-code.md:241 Environment variable in URLBuilds web addresses from your settings or commands. (LLM02 Sensitive Information Disclosure)agentscan: network medium references/request-mocking.md:61 Network primitive: fetch()Mentions web addresses. (LLM02 Sensitive Information Disclosure)SkillSpector: E1 MEDIUM SKILL.md:172 External TransmissionSends data to websites. (LLM02 Sensitive Information Disclosure) - PermissionsPassed
- Prompt injectionNoticed
SkillSpector: AE1 HIGH SKILL.md:480 Incomplete referenced artifact analysisSkillSpector: AE1 HIGH SKILL.md:492 Incomplete referenced artifact analysisSkillSpector: MP3 HIGH references/storage-state.md:276 Memory ManipulationTries to change what your AI remembers. (LLM01 Prompt Injection) - LicensePassed
- MaintenancePassed
No person has signed this one off yet.
Three open-source scanners (SkillSpector, HoneyBadger, agentscan) check this exact version. Heads up means it could steal your data or hijack your AI. What it can do is listed, not warned about. Scanners miss things.
How we check: only harm earns a Heads up, meaning prompt injection (OWASP LLM01) or data leaks (LLM02), in files the skill ships. Abilities like running commands (LLM06) are listed, not warned about. No AI is used for this step. OWASP
Details
- Stars
- 15kon GitHub
- Installs
- 226kon skills.sh
- Last updated
- Nov 18, 2026on GitHub
GitHub and skills.sh numbers are a snapshot from Nov 24, 2026, not live.
Community
Comments
How to add playwright-cli to Claude
Press Add to your AI at the top of this page and pick Claude, or do it yourself:
- Download the skill. Keep the .zip as it is.
- On Claude's skills page, click +, then Create skill, then Upload a skill.
- Pick the file you downloaded and switch the skill on.
Works on every Claude plan, Free included. Code execution and file creation need to be on in Claude's settings. How to add a skill to Claude, step by step.
In ChatGPT
Skills are on ChatGPT Business, Enterprise, Healthcare and Edu plans. Download the skill. Keep the .zip as it is. In ChatGPT, open Plugins in the sidebar, then the Skills tab, then Create, then Upload from your computer. Pick the file you downloaded. ChatGPT checks it, then it's ready. More on ChatGPT.
For AI apps and agents: the skill's instructions as plain text, at the version we scanned.