Skip to content

Playwright browser automation

by lackeyjb

Lets the agent write and run Playwright scripts to test a site: screenshots, responsive checks, login flows and broken links.

The Playwright skill gives an agent a working browser. It writes and runs Playwright scripts to test or automate a website: taking screenshots, checking layouts at different screen sizes, walking through login and signup flows, checking links and reviewing the experience.

It looks for a local development server first, so testing your own app usually needs no setup beyond the address. Scripts and screenshots go to a temporary folder unless you choose another, and the browser is visible by default so you can watch. A one-time setup command you run yourself installs Playwright and a Chromium browser into the skill’s folder; that is the only download.

It can attach to your own Chrome instead, and warns that this browser carries your logins. Test credentials are only used if you supply them for a login flow.

What it is good for

  • Screenshot every page of your app at mobile and desktop sizes
  • Check that signup still works after a change
  • Find broken links on a staging site

Install

  1. Run this in a terminal. It adds the skill to Claude Code for every project:

    tmp=$(mktemp -d) && git -C "$tmp" init -q && git -C "$tmp" fetch -q --depth 1 https://github.com/lackeyjb/playwright-skill dd47a6a023e249eb1b36e9e943eab89d0900865d && git -C "$tmp" checkout -q FETCH_HEAD && rm -rf "$tmp/.git" && mkdir -p ~/.claude/skills && rm -rf ~/.claude/skills/playwright && mv "$tmp/skills/playwright-skill" ~/.claude/skills/playwright && rm -rf "$tmp"
  2. Start a new Claude Code session. The agent uses the skill when a request matches it, or you can ask for it by name.

  3. To share it with your team, put the folder in .claude/skills/ inside the repository instead and commit it.

Read the source on GitHub · MIT license · Reviewed by Whenever on 2026-11-20

Browse more skills

Your first workflow is one sentence away.

One workflow free. No card. Weekly AI-building limits.