Playwright

Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test websites, automate browser interactions, validate web functionality, or perform any browser-based testing.

5 starsTesting & QA

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add bolasblack/claude-skills --skill playwright
Manual install
git clone --depth 1 https://github.com/bolasblack/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/skills/playwright ~/.claude/skills/playwright

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Playwright Browser Automation

Browser automation skill. Write custom Playwright code for any task and execute via `run.js`.

## Setup

Dependencies are installed automatically on first run. Uses system Chrome by default (`channel: 'chrome'`). If Chrome not found, run `npx playwright install chromium`.

> **Note**: Must use `node` to run scripts. Playwright is incompatible with `bun` runtime due to pipe/child_process API differences.

## Workflow

**1. Detect dev servers** (for localhost testing):

```bash
cd <skill directory> && node -e "require('./lib/helpers').detectDevServers().then(s => console.log(JSON.stringify(s)))"
```

- 1 server found → use it automatically
- Multiple servers → ask user which one
- No servers → ask for URL

**2. Write script to /tmp** with parameterized URL:

```javascript
// /tmp/playwright-test-example.js
const { chromium } = require("playwright");
const TARGET_URL = "http://localhost:3001"; // detected or user-provided

(async () => {
  const browser = await chromium.launch({ headless: false, channel: "chrome" });
  const page = await browser.newPage();
  await page.goto(TARGET_URL);
  // ... automation code ...
  await browser.close();
})();
```

**3. Execute**:

```bash
cd <skill directory> && node run.js /tmp/playwright-test-example.js
```

## Key Rules

- **Always execute via run.js** — never run scripts directly with `node /tmp/script.js`; run.js resolves dependencies from skill directory
Read the full skill on GitHub

Details

Skill name
playwright
Path
skills/playwright/SKILL.md
Repo updated
18 November 2026

FAQ

What does the Playwright skill do?

Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test websites, automate browser interactions, validate web functionality, or perform any browser-based testing.

How do I install the Playwright skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add bolasblack/claude-skills --skill playwright. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Playwright popular?

It lives in bolasblack/claude-skills, which has 5 GitHub stars and 0 forks.

Related skills

Caveman

5

bolasblack/claude-skills

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

Images, Video & Audio

Agent Centric

5

bolasblack/claude-skills

Track decisions (AGD) with validation and indexing. Use when making design decisions, recording important choices, discussing trade-offs, or when user mentions AGD or decision record.

AI, LLMs & Agents

Codex

5

bolasblack/claude-skills

OpenAI Codex second opinion via the codex CLI — three modes. Review: independent diff review with a pass/fail gate. Challenge: adversarial pass that tries to break the code. Consult: ask Codex anything, with session continuity for follow-ups. Use when the user says "codex review", "codex challenge", "ask codex", or wants a second opinion from Codex.

Software Development

Playwright Frontend Testing

8

Freddy-CHEN-ux/00_claude_skills

Use when testing frontend applications. AI-assisted browser testing with Playwright MCP. Fast, deterministic, no vision models needed.

Testing & QA

Peer Review

5

vnovakovits/claude-skills

Review a change the way a respected colleague would — design and craft lenses applied to the diff, every finding verified in the code, and the result written as kind, specific comments anchored to lines. Loads clean-code, fractal-architecture, responsibility-driven-design and domain-driven-design for the production code; unit-testing-principles (Khorikov's four pillars, managed vs unmanaged dependencies), art-of-unit-testing, xunit-test-patterns and test-data-patterns for the tests, including a map of every promised scenario to the test that pins it and a check that no guard can be removed wit

Testing & QA

Playwright Tester

8

Freddy-CHEN-ux/00_claude_skills

Capture screenshots and run E2E tests with Playwright. Use for frontend debugging, visual inspection, or user flow validation. (project)

Testing & QA

Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.