# playwright

Automates a real browser from your terminal using playwright-cli. Helps navigate pages, fill forms, take screenshots, and inspect DOM snapshots during CLI tasks.

- skill · `type=skill` · Claude Code · 466 installs
- Author: openai
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/playwright
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/playwright

## What it does

This skill integrates browser automation into terminal sessions through `playwright-cli` and an internal wrapper script. It prioritizes ad-hoc CLI commands over building full `@playwright/test` suites, focusing on direct navigation, clicks, and multi-tab workflows.

Interactions depend on page snapshots. Running `snapshot` extracts visible nodes and assigns short identifiers like `e1` or `e15`. The agent sends keystrokes or click events to these specific keys. Whenever a modal opens or navigation occurs, references expire, requiring a fresh snapshot step.

Execution depends on `npx`, making a local Node.js setup mandatory before running commands. A global package install remains optional because the wrapper handles execution directly, writing captured artifacts to `output/playwright/`.

## Requirements
- Works with: Playwright

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill development/playwright
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill playwright -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/playwright/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/playwright/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/playwright/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/playwright/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates playwright
```

2. **Manually: put the files in place**
- File: `.github/skills/playwright/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/playwright
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/playwright/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/playwright

## When to use it
- automate form submissions and text input in a real browser
- capture full-page screenshots and UI traces during troubleshooting
- inspect interactive DOM elements using stable snapshot references
- switch between multiple open browser tabs in the console

## Example prompts
- Open `https://example.com/form`, take a snapshot, and fill out the form fields.
- Launch `https://playwright.dev` with `--headed` mode and capture a screenshot.
- Start tracing, interact with the page, and save artifacts to `output/playwright/`.

## Similar
- [agent-browser](https://affpapa.org/en/nevibecode/skills/vercel-labs-agent-browser.md) — skill · 1200000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs
- [computer-use](https://affpapa.org/en/nevibecode/skills/computer-use.md) — skill · 239600 installs
- [browser-use](https://affpapa.org/en/nevibecode/skills/browser-use.md) — skill · 98200 installs
- [playwright-cli](https://affpapa.org/en/nevibecode/skills/playwright-cli.md) — skill · 195700 installs
- [last30days](https://affpapa.org/en/nevibecode/skills/last30days.md) — skill · 53000 installs

## Other versions with the same name
- [playwright · pymodel](https://affpapa.org/en/nevibecode/skills/pymodel-playwright.md) — 485 installs
- [playwright · mindrally](https://affpapa.org/en/nevibecode/skills/mindrally-playwright.md) — 1100 installs
- [playwright · secondsky](https://affpapa.org/en/nevibecode/skills/secondsky-playwright.md) — 1000 installs
- [playwright · bobmatnyc](https://affpapa.org/en/nevibecode/skills/bobmatnyc-playwright.md) — 879 installs
- [playwright · oakoss](https://affpapa.org/en/nevibecode/skills/oakoss-playwright.md) — 452 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
