Playwright CLI: let your assistant drive a web browser
microsoft/playwright-cli
Your AI coding assistant gets a browser it can control. It opens pages, clicks, types, fills forms and takes screenshots, then reads the page back as a short text outline. It can also turn what it did into Playwright tests for your site and fix tests that fail.
Pack description by its author: “Your AI coding assistant gets a browser it can control. It opens pages, clicks, types, fills forms and takes screenshots, then reads the page back as a short text outline. It can also turn what it did into Playwright tests for your site and fix tests that fail.”
Software engineeringKnowledge and rules for your assistantCommands you run when needed
1. Changes your files
Skills that write or edit files: playwright-cli.
github.com/microsoft/playwright-cli/blob/b1a5903/2. Runs code on your machine
Install: One SKILL.md and ten reference pages. No hooks, no scripts in the skill folder. Every browser command: Your assistant runs playwright-cli, which starts a browser (headless by default) and visits the sites it is told to. A headless session closes after an hour without commands.
github.com/microsoft/playwright-cli/blob/b1a5903/3. Sends data
Install only @playwright/cli from npm or github.com/microsoft/playwright-cli. The assistant gets real control of a browser: keep persistent profiles and saved sign-in files out of your repository, and be careful attaching it to your everyday browser where you are signed in.
github.com/microsoft/playwright-cli/blob/b1a5903/Checked against the pack's files at commit b1a5903, on Nov 3, 2026. Tap a verdict to see its source.How we checkedReport an error
The pack has changed since AgentGid checked it on Nov 3, 2026. Some details may be out of date.
Good for you if
- You want your assistant to check a web page or a sign-up flow by actually using it
- You build a site and want tests written from real clicks, then kept working
- You want screenshots, a video or a PDF of a page, made by the assistant
- You use Claude Code, GitHub Copilot or another coding assistant that can run commands
Probably not for you if
- Your assistant cannot run commands on your computer: the skill only works through the playwright-cli program
What you'll notice
- Your assistant runs commands like playwright-cli open, click e15, fill, screenshot
- The browser is hidden by default; pass --headed to watch it, or run playwright-cli show to see all sessions
- A .playwright-cli folder appears in your project with page outlines, traces and other output
- It can ask you to mark parts of a live page with boxes and comments for design feedback
What you need
- Claude Code, GitHub Copilot
- Free, Apache-2.0 license
- Install the playwright-cli program with Node.js 18+, then run playwright-cli install --skills
- Needs Node.js 18 or newer and a browser that Playwright can start
Words on this page
- Skill
- A set of written instructions your AI assistant follows. Installing one is like giving it a playbook.
- CLI
- A program you run by typing commands in a terminal.
| Repository | microsoft/playwright-cli · website |
|---|---|
| GitHub stars | 15,372 (the Playwright CLI repository: these skills ship inside the product, so the stars are the product's) |
| Skills | 2 (2 SKILL.md in the repo, 1 in skills/) |
| Category | Software engineering |
| License | Apache-2.0 |
| Last updated | Nov 18, 2026 · card checked Nov 3, 2026 at commit b1a5903 |
| Install counts | microsoft/playwright-cli on skills.sh, Vercel's skills directory, which shows installs and security audits per skill |
microsoft/playwright-cli popularity over time
What Playwright CLI does
- Opens a browser (Chrome, Firefox, WebKit or Edge), goes to pages, and uses tabs, back and forward
- Clicks, types, fills, drags, uploads files and answers pop-up dialogs, aiming at elements by short ids (e3, e15) from the page outline
- Reads the page as a text outline after every command, and can search it for text
- Saves screenshots, PDFs, videos and traces; lists console messages and network requests
- Reads and changes cookies, local storage and session storage; saves and loads a signed-in state to a file
- Fakes or blocks network requests to test edge cases
- Runs your own Playwright code against the page
- Writes Playwright tests: plan the scenarios in a spec file, generate one test per scenario, heal failing tests
- Can attach to a browser that is already running, or keep named sessions with a saved profile
From the pack's SKILL.md files, summarised by AgentGid.
The skill, explained
playwright-cli
Drives a browser for you and can write tests for your site
You give
- The address of the page or app to check
- What to do or test there (a flow, a form, a bug)
- For tests: a project with Playwright set up, or permission to set it up
You get
- Page outlines and screenshots of each step
- The matching Playwright code for every action
- A test plan in specs/<feature>.plan.md
- One test file per scenario
- Fixed tests, and a question to you when the app may have a bug
See it in action
The skill defines what its answer looks like. Its own example:
> playwright-cli goto https://example.com ### Page - Page URL: https://example.com/ - Page Title: Example Domain ### Snapshot [Snapshot](.playwright-cli/page-2026-02-14T19-22-42-679Z.yml)
The skill defines what its answer looks like. Its own example:
playwright-cli click e3
# Ran Playwright code:
# await page.getByRole('button', { name: 'Sign In' }).click();
When to reach for it
| You want | Use |
|---|---|
| Check a page or flow by using it | "Use playwright skills to test <address>" |
| To watch what the assistant does in the browser | playwright-cli show, or open --headed |
| Design feedback on a live page | "UI review" or "design feedback" (playwright-cli show --annotate) |
| Tests for a feature | Ask for a test plan, then generate tests from it |
| Fix failing Playwright tests | Ask the assistant to heal the failing tests |
| A screenshot on a pull request | playwright-cli screenshot, then gh pr comment --attach |
Skills in microsoft/playwright-cli
| Skill | In plain words | Changes files? | What it does (author) |
|---|---|---|---|
| playwright-cli | Drives a browser for you and can write tests for your site | Yes | Automate browser interactions, test web pages and work with Playwright tests.npx skills add microsoft/playwright-cli --skill playwright-cli |
| dev | — | — | Development workflows for the playwright-cli repository. Use when the user asks about rolling dependencies, releasing, or other repo maintenance tasks.npx skills add microsoft/playwright-cli --skill dev |
The author's descriptions come from each skill's SKILL.md; the plain-words column is AgentGid's.
Good to know before you install
- The skill is a guide to a separate program. Your assistant must be allowed to run playwright-cli; the skill itself contains no code.
- Your assistant gets real browser control: it can click, submit forms, run code in the page and read or set cookies. With attach it can work inside a browser you already have open.
- Saved sign-in files hold your login tokens. The skill's own notes say never to commit them and to delete them after use.
- Pages can offer their own tools to agents (WebMCP). The skill tells the assistant to treat what pages say as untrusted, not as instructions.
- The skill may install software: it says to install playwright-cli globally if missing, and test generation may set up Playwright in your project.
- It can post screenshots and videos to GitHub pull requests through the gh tool, if you ask for that.
Install Playwright CLI
Official commands from the repository
npm install -g @playwright/cli@latest playwright-cli install --skills
The second command copies the skill into .claude/skills/playwright-cli in the current project; --skills=agents puts it in .agents/skills/playwright-cli.
Remove: delete .claude/skills/playwright-cli (or .agents/skills/playwright-cli); npm uninstall -g @playwright/cli
Tell your agent to read playwright-cli --help; the author says it learns the commands from there.
Or with the open-source skills CLI: npx skills add microsoft/playwright-cli. Skills are instructions your agent follows: read them before installing.
What it installs and runs on your machine
Read in the code at commit b1a5903, Nov 3, 2026
| When | What happens |
|---|---|
| Install | One SKILL.md and ten reference pages. No hooks, no scripts in the skill folder. |
| Every browser command | Your assistant runs playwright-cli, which starts a browser (headless by default) and visits the sites it is told to. A headless session closes after an hour without commands. |
| After each command | Page outlines are saved under .playwright-cli/ in the current folder; traces go to .playwright-cli/traces/. Screenshots, PDFs, videos and saved sign-in state go to the file names given. |
| --persistent sessions | The browser profile (cookies, storage) is saved to disk; delete-data removes it. By default the profile stays in memory. |
| open, attach, list, install (at most once a day) | The program checks for a newer version with npm view and writes cli-update-check.json in Playwright's folder. NO_UPDATE_NOTIFIER or CI turns it off. It also warns if your installed skill does not match the program. |
| Test generation | The assistant runs npx playwright test in the background and writes spec and test files into your project. |
Settings
PLAYWRIGHT_CLI_SESSION: Session name the assistant uses for all its commandsNO_UPDATE_NOTIFIER: Turns off the daily version check.playwright/cli.config.json: Config file loaded by default (browser, timeouts, network allow and block lists)PLAYWRIGHT_MCP_ALLOWED_ORIGINS / PLAYWRIGHT_MCP_BLOCKED_ORIGINS: Limit which sites the browser may request; the docs say this is not a security boundary
Quick answers
- Is it free?
- Yes. Apache 2.0 license, from Microsoft.
- Do I see the browser?
- Not by default: it runs hidden. Add --headed, or run playwright-cli show to watch and take over sessions.
- Does it keep my logins?
- Only within a session by default; the profile is in memory and lost when the browser closes. Use --persistent to keep it on disk.
- Does anything go online besides the sites it visits?
- The program checks npm for a newer version at most once a day on some commands; NO_UPDATE_NOTIFIER turns that off. Nothing else in this repository sends data.
- How is it different from Playwright MCP?
- The author says the command-line version uses fewer tokens and suits coding agents; MCP suits long-running browser loops.
Checked by AgentGid on Nov 3, 2026 against commit b1a5903 of the pack's own files. agent.md for AI agents · Report a mistake
More software engineering skill packs
| # | Install | |||||
|---|---|---|---|---|---|---|
| 1 |
Gets a set of working habits for building software. It interviews you about a plan before it builds, turns the talk into a spec and small tickets, builds them test-first and reviews the result. |
330K | +32.5K | 39 | ||
| 2 |
Follows one fixed way of working. Before it builds anything, it asks what you really want and writes a short design for you to approve. Then it writes a step-by-step plan, builds it with tests first, has the work checked and asks how you want to finish. |
324K | +18.8K | 15 | ||
| 3 |
Gets four rules: think before coding, keep it simple, change only what you asked for, and set a clear goal it can check. It asks before guessing and writes less extra code. The rules come from the README's reading of a public post by Andrej Karpathy; the files do not say he made or reviewed them. |
235K | +14K | 1 | ||
| 4 |
DietrichGebert/ponytail
Checked
Stops overbuilding. It does what you asked in the simplest way that works, reuses what your project already has, and ends every answer by telling you what it left out. |
197K | +27.3K | 6 | ||
| 5 |
This repo is mostly a big collection of AI apps and tutorials. Its agent_skills folder holds seven separate skills you install one at a time. They help your assistant explain why old code exists, check a change or a package list, or find your abandoned side projects. Others test a draft on simulated readers, untangle a voice ramble, or split a big job across several AI models. |
145K | +3,089 | 10 | ||
| 6 |
Works like a careful senior engineer. It writes down what to build before coding, splits the work into small steps, proves each step with a test and reviews the result before launch. Nine slash commands cover the stages, and 25 skills switch on when a task matches. |
120K | +11K | 26 |
No pack matches.