playwright-skill
Skill by lackeyjb
Runs Playwright browser automation for testing websites and automating browser tasks. It detects local dev servers, writes reusable test scripts, and captures screenshots. Built for developers and QA work that needs browser-based checks.
Install playwright-skill
Built from the published package, never by AI.
git clone --depth 1 https://github.com/lackeyjb/playwright-skill /tmp/playwright-skill && mkdir -p ~/.claude/skills && cp -r /tmp/playwright-skill/skills/playwright-skill ~/.claude/skills/playwright-skillRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/lackeyjb/playwright-skill /tmp/playwright-skill && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/playwright-skill/skills/playwright-skill ~/.gemini/antigravity-cli/skills/playwright-skillAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
playwright-skill is an agent skill that gives an AI assistant a Playwright workflow for testing websites and automating browser interactions. The assistant can detect running local dev servers, write focused scripts to a temporary directory or a chosen folder, and run them with a bundled executor. It can take screenshots, run responsive checks at desktop and mobile sizes, and work through login flows using test credentials the user supplies.
The skill uses a visible browser by default and asks which URL to use when several dev servers are found. It can also connect to an existing Chrome session over CDP, which reuses that session's cookies and access. The skill is aimed at developers and QA work that need to test a website, validate web functionality, or automate browser tasks. The source is MIT licensed.
Written from the project's SKILL.md and checked against it.
What it can do
- Dev server detectionFinds running local dev servers before the assistant writes a URL for localhost work.
- Reusable test scriptsWrites Playwright scripts to a temp directory, or to PW_SCRIPT_DIR when set.
- Responsive checksLoads a page at desktop and mobile viewport sizes and saves full-page screenshots.
- Login flowsFills in user-supplied test credentials and checks for a post-login element.
- ScreenshotsCaptures page screenshots with the takeScreenshot helper and artifact directory settings.
- Existing Chrome sessionConnects to a Chrome instance started with remote debugging using connectOverCDP.
- Cookie banner handlingDismisses cookie banners with the handleCookieBanner helper.
- Script executorRuns scripts through run.js so results, failures and artifact paths can be reported.
What you need
- Node.js 20+
- npm
- Network access on first setup to install Playwright and Chromium
Try asking
- Detect my running dev server and test the contact form on it
- Take desktop and mobile screenshots of my homepage
- Test the login flow on localhost with these test credentials
Good to know
- Requires network access on first setup to install Playwright and Chromium.
- Firefox and WebKit need a separate install-all-browsers step.
- A connected Chrome session has the user's access, so avoid secrets unless asked.
- The browser runs visibly by default unless headless mode is requested or no display exists.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/playwright-skill/SKILL.md, skills/playwright-skill/lib/helpers.js, skills/playwright-skill/run.js. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(node:*) Bash(npm:*) Read Write
-
API_REFERENCE.md16 KB -
SKILL.md8 KB -
lib/helpers.js4 KB -
package-lock.json2 KB -
package.json699 B
Show all 6 files
-
run.js4 KB
Alternatives to playwright-skill
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
playwright-skill: common questions
Does it need a dev server running?
For localhost work it detects running servers. If none exist, it asks for a URL or offers to start a server.
Which browsers does it support?
Chromium is installed by setup. The source also lists Firefox and WebKit as options, with Firefox and WebKit requiring a separate install command.
Where are the test scripts saved?
They are written to a temp directory unless the user asks to save them in the project. PW_SCRIPT_DIR preserves file-based scripts.
How do I install playwright-skill?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is playwright-skill free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is playwright-skill safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to playwright-skill?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
