playwrightlisted
Install: claude install-skill mblauberg/provenant
# Playwright CLI Skill
Drive a real browser from the terminal with `playwright-cli` and the bundled
wrapper. Do not pivot to `@playwright/test` unless explicitly asked for tests.
## Prerequisite check (required)
Prefer an existing `playwright-cli`. The wrapper fails closed rather than
installing from the network unless the user authorises package retrieval:
```bash
command -v playwright-cli || command -v npx
```
If both are absent, report the missing capability. Do not install Node or a CLI
without authority. For an authorised one-run npx resolution, set:
```bash
PLAYWRIGHT_CLI_ALLOW_NPX_INSTALL=1 "$PWCLI" --help
```
An existing PATH binary is used as installed; the wrapper does not attest its
version. When lineage matters, record `command -v playwright-cli` and
`playwright-cli --version`. Only the authorised `npx` fallback is package-pinned;
`--help` proves available commands, not version identity.
## Skill path (set once)
```bash
export AGENTS_HOME="${AGENTS_HOME:-$HOME/.agents}"
export PWCLI="$AGENTS_HOME/skills/playwright/scripts/playwright_cli.sh"
```
## Core workflow
1. Open the page.
2. Snapshot to get stable element refs.
3. Interact using refs from the latest snapshot.
4. Re-snapshot after navigation or significant DOM changes.
5. Capture only assigned artifacts; close the run-owned session.
Minimal loop:
```bash
"$PWCLI" open https://example.com
"$PWCLI" snapshot
"$PWCLI" click e3
"$PWCLI" snapshot
```
## References
Open only what you need:
- CLI com