agentleFS
jamesyang124jamesyang124/agent-skills/skills/install-playwright-mcp/SKILL.md

install-playwright-mcp

Skill2 starsChanged 13 days agoMITView on GitHub

Install and configure the Playwright browser-automation MCP server for Claude or GitHub Copilot agents. Use when setting up Playwright MCP, browser automation, web testing tools, or asked to install playwright mcp.

  • Installs packages

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All optional — anything not passed is asked in Step 1.

    line 22
  2. Distinctive:

    Ask the user two questions, then run the bundled script.

    line 33
  3. Very specific:

    Add --headless only when the user chose headless mode

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Install Playwright MCP

Install this skill

npx skills add jamesyang124/agent-skills --skill install-playwright-mcp -g

Adds browser automation to your agent: navigate, screenshot, click, fill forms, intercept network. Repository: https://github.com/microsoft/playwright-mcp

Arguments

All optional — anything not passed is asked in Step 1.

TokenMeaning
claude / copilotwhich agent to configure
headed / headlessbrowser mode (headed is the default)

Quick Start

Ask the user two questions, then run the bundled script.

Step 1 — Collect parameters

Use vscode_askQuestions with:

  1. agent — which agent to configure
    • options: claude, copilot
  2. mode — browser mode
    • options: headed (default, shows browser window), headless

Step 2 — Run the installer

Find this skill's directory from the SKILL.md path, then run:

PROJECT_ROOT="<workspace-root>" \
  bash "<skill-dir>/scripts/install.sh" \
  --agent <agent> \
  [--headless]

<skill-dir> is this skill's folder, the base directory shown when the skill loads (for example ~/.claude/skills/install-playwright-mcp).

  • Set PROJECT_ROOT to the user's current workspace folder
  • Add --headless only when the user chose headless mode
  • The script merges into any existing config file; it will not overwrite other servers

Step 3 — Confirm

Tell the user: Restart your agent to load Playwright MCP.

What Gets Written

Copilot (.vscode/mcp.json):

{
  "servers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

Claude (.mcp.json):

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

Troubleshooting

  • npx not found → install Node.js from https://nodejs.org/
  • jq not found → brew install jq on macOS
  • Config not loading → confirm the agent was fully restarted after install

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.