1. Habit
  2. Skills
  3. Playwright Skill skill
lackeyjb · 7K installs

Playwright Skill skill
Runs by itself, every night.

Broken pages are found every night, before your visitors see them.

Install the Playwright Skill skill and make it a habit: follow https://gethabit.dev/skills/lackeyjb/playwright-skill.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

7K installs3K starsMIT licenceSource on GitHub ↗

Playwright Skill

by lackeyjb · 7K installs

The skill

Opens your site in a browser and tests it for you.

Only when you ask.

Fewer bugs

Broken pages are found every night, before your visitors see them. Fewer bugs.

↻ Runs by itselfevery night

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after 10 scripts and one retry per run.

  1. 01

    Set up once

    Your agent runs npm run setup in the skill folder to install Playwright and Chromium.

  2. 02

    Find the server

    It runs detectDevServers and uses the single result, or asks you.

  3. 03

    Run saved scripts

    It runs each script with node run.js, keeping them in PW_SCRIPT_DIR.

  4. 04

    Check responsive views

    It takes desktop and mobile screenshots into PW_ARTIFACT_DIR.

  5. 05

    Check the page

    It verifies the resulting page before calling a step passed.

  6. 06

    Report

    It logs actions, failures and artifact paths.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Playwright Skill skill helps.

Use it when

  • ✓ You want to test a local site
  • ✓ You need desktop and mobile screenshots
  • ✓ You check a login flow

Skip it when

  • – You already have a full Playwright test suite in CI
  • – You cannot install Chromium

Questions

Playwright Skill skill, answered.

Does it run headless?

Visible by default. It uses headless only on request or with no display.

Can it log in?

Yes, with test credentials you supply through TEST_EMAIL and TEST_PASSWORD.

How do I install the Playwright Skill skill?

Copy the prompt at the top into your agent. It installs the skill from lackeyjb/playwright-skill and sets up the habit. Or run npx skills add lackeyjb/playwright-skill --skill playwright-skill.

Is the Playwright Skill skill free?

Yes. It is published under MIT. Habit is free too.

Playwright Skill. Now as a habit.

Install the Playwright Skill skill and make it a habit: follow https://gethabit.dev/skills/lackeyjb/playwright-skill.md

  • Free
  • No account
  • Undo in one line

All lackeyjb skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by lackeyjb, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.