mk:playwright-cli — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited mk:playwright-cli (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Use playwright-cli when: DOM interaction, navigation, data extraction, or generating reusable .spec.ts E2E test code. Use `mk:agent-browser` instead when: session persistence (auth flows, MFA, cookie import) is required.playwright-cli open https://playwright.dev
playwright-cli snapshot # Get element refs (e1, e2, ...)
playwright-cli click e15
playwright-cli type "page.click"
playwright-cli press Enter
playwright-cli screenshot
playwright-cli closeopen <url> — navigate to pagesnapshot — get accessibility tree with element refs (e1, e2, ...)click, fill, type, select, checkclose when doneplaywright-cli open https://example.com/form
playwright-cli snapshot
playwright-cli fill e1 "[email protected]"
playwright-cli fill e2 "password123"
playwright-cli click e3
playwright-cli snapshot
playwright-cli close# Navigation
playwright-cli goto <url>
playwright-cli go-back / go-forward / reload
# Interaction
playwright-cli click e3
playwright-cli fill e5 "text" # Clear and type
playwright-cli type "text" # Type at current focus
playwright-cli press Enter
playwright-cli select e9 "option-value"
playwright-cli check e12 / uncheck e12
# Snapshot & capture
playwright-cli snapshot
playwright-cli snapshot --filename=after-click.yaml
playwright-cli screenshot
playwright-cli screenshot --filename=page.png
playwright-cli pdf --filename=page.pdf
# Auth state
playwright-cli state-save auth.json
playwright-cli state-load auth.jsonFull command listing: references/command-reference.md
After each command, playwright-cli writes a snapshot YAML of the current browser state. Use --filename= when the artifact is a workflow result; omit for auto-timestamped files.
.playwright-cli/page-2026-02-14T19-22-42-679Z.ymlplaywright-cli -s=mysession open example.com --persistent
playwright-cli -s=mysession click e6
playwright-cli -s=mysession close
playwright-cli list # List all active sessions
playwright-cli close-all # Close all browsers
playwright-cli kill-all # Force kill stale processesNamed sessions run isolated contexts (separate cookies, storage, history). Full session patterns: references/session-management.md
# Cookies / localStorage / sessionStorage
playwright-cli cookie-list / cookie-set / cookie-delete / cookie-clear
playwright-cli localstorage-get theme / localstorage-set theme dark
# Request mocking
playwright-cli route "**/*.jpg" --status=404
playwright-cli route "https://api.example.com/**" --body='{"mock": true}'
playwright-cli unrouteplaywright-cli console # View console output
playwright-cli network # View network requests
playwright-cli tracing-start / tracing-stop
playwright-cli video-start / playwright-cli video-stop video.webm
playwright-cli run-code "async page => await page.context().grantPermissions(['geolocation'])"Requires Playwright MCP server. Configure in .mcp.json:
{ "playwright": { "command": "npx", "args": ["@playwright/mcp@latest"] } }Copy from .claude/mcp.json.example if not configured. If global binary unavailable: npx playwright-cli <command>
data-testid changes between renders → prefer role-based selectors (getByRole) over CSS selectorsstate-save / state-load to persist auth cookies across runs| Reference | When to Use |
|---|---|
| references/command-reference.md | Full command listing (core, tabs, storage, network, DevTools, open params) |
| references/session-management.md | Named sessions, concurrent scraping, persistent profiles, cleanup |
| references/request-mocking.md | Request mocking patterns |
| references/storage-state.md | Storage state (cookies, localStorage) |
| references/test-generation.md | Test generation |
| references/tracing.md | Tracing |
| references/video-recording.md | Video recording |
| references/running-code.md | Running Playwright code |
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.