Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 94
  • 3.3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-skill

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install playwright-skill in Claude Code

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

A

No 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 →

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.

playwright-skill Install

Add to stack

Loading.