# browsing-with-playwright

A Playwright MCP skill for navigating pages, submitting forms, taking screenshots, and extracting data. Use it when a task needs a real browser.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1700 installs · ★ 1
- Author: bilalmk
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/bilalmk/todo_correct/tree/HEAD/.claude/skills/mjs/browsing-with-playwright/SKILL.md
- Updated: 2026-01-27
- HTML: https://affpapa.org/en/nevibecode/skills/browsing-with-playwright

## What it does

This skill gives an agent browser control through Playwright MCP. It can navigate to a URL, inspect an accessibility snapshot, target elements by refs, enter text, submit forms, choose options, wait for page conditions, and capture screenshots. Multi-step flows can run through `browser_run_code`.

Start the server with `bash scripts/start-server.sh` or `npx @playwright/mcp@latest --port 8808 --shared-browser-context`. The `--shared-browser-context` flag is required when several calls must keep the same browser state. Check the setup with `python3 scripts/verify.py`; if verification fails, stop and restart the server. For static content, the skill directs the agent to use `curl` or `wget` instead.

## Requirements
- Works with: Playwright

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add bilalmk/todo_correct --skill browsing-with-playwright -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add bilalmk/todo_correct --skill browsing-with-playwright -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add bilalmk/todo_correct --skill browsing-with-playwright -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install bilalmk/todo_correct browsing-with-playwright
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add bilalmk/todo_correct --skill browsing-with-playwright -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/bilalmk/todo_correct --path .claude/skills/mjs/browsing-with-playwright
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add bilalmk/todo_correct --skill browsing-with-playwright -a opencode
```

### 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/bilalmk/todo_correct/tree/HEAD/.claude/skills/mjs/browsing-with-playwright/SKILL.md

## When to use it
- navigate through a website and follow links
- fill in and submit a web form
- capture a screenshot of a browser result
- extract content from a dynamic page
- test a UI flow in a browser

## Example prompts
- Open the target page, inspect its snapshot, and fill in the form fields from the task.
- Visit the page, extract the requested data, and return the result.
- Run the UI flow in a browser and save a full-page screenshot.

## 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 · 239400 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

---
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
