# Playwright CLI

> Browser-automation skill for terminal-driven Playwright work. Use when Codex needs to navigate websites, inspect pages, interact with forms, capture screenshots or traces, manage browser sessions, mock requests, or generate test code through a local `playwright-cli` workflow instead of writing a full test first.

- Skill: `jovd83/playwright-cli` (Agent Skill, multi-file: 12 files)
- Install (CLI): `npx skillmds@latest add jovd83/playwright-cli`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jovd83/playwright-cli/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: jovd83 (https://skillmd.com/u/jovd83)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jovd83/playwright-cli

---


# Playwright CLI

Use this skill when terminal-driven browser automation is the fastest path.

## Assumptions

- A local `playwright-cli` installation is available.
- If command names differ by version, inspect local help output before assuming an exact subcommand shape.

## Operating Rules

1. Snapshot or inspect the page before interacting with referenced elements.
2. Prefer deterministic session naming for parallel or long-running work.
3. Save and restore auth state deliberately when login is expensive.
4. Capture traces before reproducing a failure, not after.
5. Drop into custom code only when the built-in command surface is not enough.

## Command Families

| Need | Guide |
|---|---|
| Basic browser interaction | [core-commands.md](core-commands.md) |
| Request interception and mocking | [request-mocking.md](request-mocking.md) |
| Custom Playwright API execution | [running-custom-code.md](running-custom-code.md) |
| Session and storage management | [session-management.md](session-management.md), [storage-and-auth.md](storage-and-auth.md) |
| Test generation | [test-generation.md](test-generation.md) |
| Tracing and debugging | [tracing-and-debugging.md](tracing-and-debugging.md) |
| Media capture | [screenshots-and-media.md](screenshots-and-media.md) |
| Device and environment emulation | [device-emulation.md](device-emulation.md) |
| Multi-step workflows | [advanced-workflows.md](advanced-workflows.md) |
