playwright-skill

Community

Automate browser tasks and tests.

Authorlackeyjb
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates browser tasks and web UI testing with Playwright. It auto-detects dev servers, writes deterministic scripts to /tmp, and executes them via a universal executor, saving you time and reducing setup friction.

Core Features & Use Cases

  • Auto-detect dev servers: For localhost testing, automatically detects available servers and tests against them.
  • Deterministic script output: Writes test scripts to /tmp/playwright-test-*.js to avoid cluttering your project.
  • Live, visible browser: Runs with a visible browser by default for debugging and faster iteration.
  • Parameterizable URLs: URLs configurable via environment variables for reuse across environments.
  • Universal executor: Accepts file paths, inline code, or stdin to run Playwright commands quickly.

Quick Start

  1. Install the skill: cd skills/playwright-skill && npm install && npm run setup
  2. Create or supply a test script. Then run: node run.js /tmp/playwright-test-page.js
  3. Or run inline: node run.js "await page.goto('https://example.com')"

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: playwright-skill
Download link: https://github.com/lackeyjb/playwright-skill/archive/main.zip#playwright-skill

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository