use-playwright-cli

Runs the globally installed playwright-cli command for browser automation tasks.

17|1|Updated Dec 29, 2019
One-click install
npx skills add https://github.com/LumaKernel/dotfiles --skill use-playwright-cli-lumakernel
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: use-playwright-cli
Source: https://github.com/LumaKernel/dotfiles/tree/main/common/claude/skills/use-playwright-cli
Command: npx skills add https://github.com/LumaKernel/dotfiles --skill use-playwright-cli-lumakernel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When you ask for "pw", "pw cli", or "playwright-cli", AI assistants often substitute the wrong tool—using a Playwright MCP server, npx playwright, or falling back to curl. This Skill enforces the use of the globally installed playwright-cli CLI so browser tasks run through the correct command. ## Core Features & Use Cases - Correct Tool Enforcement: Guarantees the globally installed playwright-cli command is used via the Bash tool, never MCP servers or npx. - No curl Fallback: Prevents substituting curl for page fetching or browser interactions. - Help-First Workflow: Directs the assistant to run playwright-cli --help to discover subcommands before executing tasks. - Use Case: You say "use pw to open this page and take a screenshot"—the assistant runs the appropriate playwright-cli subcommand directly in the shell instead of reaching for an MCP browser tool. ## Quick Start Ask the assistant to use pw to open a URL and capture a screenshot with playwright-cli.

Frequently Asked Questions about use-playwright-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use playwright-cli from the command line?▼

Run playwright-cli directly in the shell followed by a subcommand, since it is installed globally. Start with playwright-cli --help to list available subcommands, then execute the one matching your task.

What is the difference between playwright-cli and npx playwright?▼

playwright-cli is a globally installed standalone CLI invoked directly from the shell, while npx playwright invokes the Playwright Test Runner package. They are different tools and are not interchangeable.

Can I use a Playwright MCP server instead of playwright-cli?▼

No. Playwright MCP, browser MCP, and chrome-devtools MCP are separate tools and are not substitutes for the playwright-cli command. When playwright-cli is requested, it must be executed directly via Bash.

Why should I not use curl to fetch web pages for browser tasks?▼

curl only retrieves raw HTTP responses and cannot render JavaScript, interact with pages, or perform browser actions. playwright-cli drives a real browser, making it the correct tool for page operations.

How do I find available playwright-cli subcommands?▼

Run playwright-cli --help in the shell. The help output lists all supported subcommands and their options, which you should review before executing any browser task.