兼容codex@cursor一键安装技能/cursor一键安装技能/-Force/skills/playwright/SKILL.md
Use when the task requires automating a real browser from the terminal in Cursor, including navigation, form filling, snapshots, screenshots, data extraction, and UI-flow debugging via `playwright-cli` or the bundled wrapper scripts.
npx skillsauth add 6bnbn/flowpilot playwrightInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
playwright-cli or the bundled wrapper scripts."Drive a real browser from the terminal using playwright-cli. In Cursor, prefer the bundled wrapper scripts so the CLI can run even when it is not globally installed.
Treat this skill as CLI-first automation. Do not pivot to @playwright/test unless the user explicitly asks for test files.
Before proposing commands, verify that node, npm, and npx are available.
PowerShell:
node --version
npm --version
npx --version
Bash:
node --version
npm --version
npx --version
If they are missing, pause and ask the user to install Node.js first. A global install of playwright-cli is optional; the bundled wrappers use npx.
When this skill is installed as a Cursor personal skill, it lives under ~/.cursor/skills/playwright/.
Windows PowerShell:
$PWCLI = Join-Path $env:USERPROFILE ".cursor\skills\playwright\scripts\playwright_cli.cmd"
Bash:
export PWCLI="$HOME/.cursor/skills/playwright/scripts/playwright_cli.sh"
Prefer the Windows .cmd wrapper on Windows and the .sh wrapper on bash-compatible shells.
Windows PowerShell:
& $PWCLI open https://playwright.dev --headed
& $PWCLI snapshot
& $PWCLI click e15
& $PWCLI type "Playwright"
& $PWCLI press Enter
& $PWCLI screenshot
Bash:
"$PWCLI" open https://playwright.dev --headed
"$PWCLI" snapshot
"$PWCLI" click e15
"$PWCLI" type "Playwright"
"$PWCLI" press Enter
"$PWCLI" screenshot
If the user prefers a global install, this is also valid:
npm install -g @playwright/cli@latest
playwright-cli --help
Minimal loop:
& $PWCLI open https://example.com
& $PWCLI snapshot
& $PWCLI click e3
& $PWCLI snapshot
Snapshot again after:
Refs can go stale. When a command fails due to a missing ref, snapshot again.
& $PWCLI open https://example.com/form
& $PWCLI snapshot
& $PWCLI fill e1 "[email protected]"
& $PWCLI fill e2 "password123"
& $PWCLI click e3
& $PWCLI snapshot
& $PWCLI open https://example.com --headed
& $PWCLI tracing-start
# ...interactions...
& $PWCLI tracing-stop
& $PWCLI tab-new https://example.com
& $PWCLI tab-list
& $PWCLI tab-select 0
& $PWCLI snapshot
The wrapper scripts use npx --package @playwright/cli playwright-cli so the CLI can run without a global install.
Windows PowerShell:
& $PWCLI --help
Bash:
"$PWCLI" --help
Prefer the bundled wrappers unless the repository already standardizes on a global install.
Open only what you need:
references/cli.mdreferences/workflows.mde12.eval and run-code unless needed.eX and say why; do not bypass refs with run-code.--headed when a visual check will help.output/playwright/ and avoid introducing new top-level artifact folders unless the project already uses a different convention.testing
Use when creating, editing, or validating Cursor custom skills, especially when deciding where they should live, how they should be named, and how to describe when they apply.
development
Use when the user wants a written implementation plan in Cursor before editing code, especially for multi-step tasks or changes touching several files.
development
Use before claiming work is complete, fixed, or passing in Cursor. Requires fresh verification evidence such as tests, builds, lint output, or direct reproduction checks.
testing
Use when starting a task in Cursor and deciding whether to apply one of the companion skills in this pack before exploring, planning, editing, or reviewing.