playwright-skill
Claude Code Skill for general-purpose browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp, and autonomously handles any browser automation task.
pinned to #bb7e920updated 3 weeks ago
Ask your AI client: “install plugins/playwright-skill”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install plugins/playwright-skillmetahub onboarded this repo on the author's behalf.
If you own github.com/lackeyjb/playwright-skill on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
2,879
Last commit
3 weeks ago
Latest release
published
- #ai-tools
- #automation
- #browser-automation
- #claude
- #claude-code
- #claude-plugin
- #claude-skills
- #developer-tools
- #e2e-testing
- #model-invoked
- #nodejs
- #playwright
- #web-testing
What's bundled
Items extracted from this plugin's manifest + directory tree.
Skills (1)
skills/playwright-skillComplete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login …
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.bb7e920· 3 weeks ago
Maintenance
3Recent activitywarn
last push 7 months ago — looks slowing down
Consumers prefer artifacts that are actively maintained (threshold: 90 days, configurable via EVAL_RECENCY_PASS_DAYS).
Tests detectedwarn
no test/tests/__tests__/spec/t/ dirs, no JVM src/test/, and no JS/TS/Python/Go/Ruby/Elixir test files
Add tests (even a smoke test). Consumers gauge maintenance quality by their presence.
CI configuration detectedwarn
no CI config found (looked for GitHub Actions, CircleCI, GitLab CI, etc.)
Add a simple workflow (lint + test on PR) — it tells consumers the artifact is built reproducibly.
Release history
1- releasecurrentbb7e920warn3 weeks ago
Contents
General-purpose browser automation as a Claude Skill
A Claude Skill that enables Claude to write and execute any Playwright automation on-the-fly - from simple page tests to complex multi-step flows. Packaged as a Claude Code Plugin for easy installation and distribution.
Claude autonomously decides when to use this skill based on your browser automation needs, loading only the minimal information required for your specific task.
Made using Claude Code.
Features
- Any Automation Task - Claude writes custom code for your specific request, not limited to pre-built scripts
- Visible Browser by Default - See automation in real-time with
headless: false - Zero Module Resolution Errors - Universal executor ensures proper module access
- Progressive Disclosure - Concise SKILL.md with full API reference loaded only when needed
- Safe Cleanup - Smart temp file management without race conditions
- Comprehensive Helpers - Optional utility functions for common tasks
Installation
This repository is structured as a Claude Code Plugin containing a skill. You can install it as either a plugin (recommended) or extract it as a standalone skill.
Understanding the Structure
This repository uses the plugin format with a nested structure:
playwright-skill/ # Plugin root
├── .claude-plugin/ # Plugin metadata
└── skills/
└── playwright-skill/ # The actual skill
└── SKILL.md
Claude Code expects skills to be directly in folders under .claude/skills/, so manual installation requires extracting the nested skill folder.
Option 1: Plugin Installation (Recommended)
Install via Claude Code's plugin system for automatic updates and team distribution:
# Add this repository as a marketplace
/plugin marketplace add lackeyjb/playwright-skill
# Install the plugin
/plugin install playwright-skill@playwright-skill
# Navigate to the skill directory and run setup
cd ~/.claude/plugins/marketplaces/playwright-skill/skills/playwright-skill
npm run setup
Verify installation by running /help to confirm the skill is available.
Option 2: Standalone Skill Installation
To install as a standalone skill (without the plugin system), extract only the skill folder:
Global Installation (Available Everywhere):
# Clone to a temporary location
git clone https://github.com/lackeyjb/playwright-skill.git /tmp/playwright-skill-temp
# Copy only the skill folder to your global skills directory
mkdir -p ~/.claude/skills
cp -r /tmp/playwright-skill-temp/skills/playwright-skill ~/.claude/skills/
# Navigate to the skill and run setup
cd ~/.claude/skills/playwright-skill
npm run setup
# Clean up temporary files
rm -rf /tmp/playwright-skill-temp
Project-Specific Installation:
# Clone to a temporary location
git clone https://github.com/lackeyjb/playwright-skill.git /tmp/playwright-skill-temp
# Copy only the skill folder to your project
mkdir -p .claude/skills
cp -r /tmp/playwright-skill-temp/skills/playwright-skill .claude/skills/
# Navigate to the skill and run setup
cd .claude/skills/playwright-skill
npm run setup
# Clean up temporary files
rm -rf /tmp/playwright-skill-temp
Why this structure? The plugin format requires the skills/ directory for organizing multiple skills within a plugin. When installing as a standalone skill, you only need the inner skills/playwright-skill/ folder contents.
Option 3: Download Release
- Download and extract the latest release from GitHub Releases
- Copy only the
skills/playwright-skill/folder to:- Global:
~/.claude/skills/playwright-skill - Project:
/path/to/your/project/.claude/skills/playwright-skill
- Global:
- Navigate to the skill directory and run setup:
cd ~/.claude/skills/playwright-skill # or your project path npm run setup
Verify Installation
Run /help to confirm the skill is loaded, then ask Claude to perform a simple browser task like "Test if google.com loads".
Quick Start
After installation, simply ask Claude to test or automate any browser task. Claude will write custom Playwright code, execute it, and return results with screenshots and console output.
Usage Examples
Test Any Page
"Test the homepage"
"Check if the contact form works"
"Verify the signup flow"
Visual Testing
"Take screenshots of the dashboard in mobile and desktop"
"Test responsive design across different viewports"
Interaction Testing
"Fill out the registration form and submit it"
"Click through the main navigation"
"Test the search functionality"
Validation
"Check for broken links"
"Verify all images load"
"Test form validation"
How It Works
- Describe what you want to test or automate
- Claude writes custom Playwright code for the task
- The universal executor (run.js) runs it with proper module resolution
- Browser opens (visible by default) and automation executes
- Results are displayed with console output and screenshots
Configuration
Default settings:
- Headless:
false(browser visible unless explicitly requested otherwise) - Slow Motion:
100msfor visibility - Timeout:
30s - Screenshots: Saved to
/tmp/
Project Structure
playwright-skill/
├── .claude-plugin/
│ ├── plugin.json # Plugin metadata for distribution
│ └── marketplace.json # Marketplace configuration
├── skills/
│ └── playwright-skill/ # The actual skill (Claude discovers this)
│ ├── SKILL.md # What Claude reads
│ ├── run.js # Universal executor (proper module resolution)
│ ├── package.json # Dependencies & setup scripts
│ └── lib/
│ └── helpers.js # Optional utility functions
│ └── API_REFERENCE.md # Full Playwright API reference
├── README.md # This file - user documentation
├── CONTRIBUTING.md # Contribution guidelines
└── LICENSE # MIT License
Advanced Usage
Claude will automatically load API_REFERENCE.md when needed for comprehensive documentation on selectors, network interception, authentication, visual regression testing, mobile emulation, performance testing, and debugging.
Dependencies
- Node.js
- Playwright (installed via
npm run setup) - Chromium (installed via
npm run setup)
Troubleshooting
Playwright not installed?
Navigate to the skill directory and run npm run setup.
Module not found errors?
Ensure automation runs via run.js, which handles module resolution.
Browser doesn't open?
Verify headless: false is set. The skill defaults to visible browser unless headless mode is requested.
Install all browsers?
Run npm run install-all-browsers from the skill directory.
What is a Skill?
Agent Skills are folders of instructions, scripts, and resources that agents can discover and use to do things more accurately and efficiently. When you ask Claude to test a webpage or automate browser interactions, Claude discovers this skill, loads the necessary instructions, executes custom Playwright code, and returns results with screenshots and console output.
This Playwright skill implements the open Agent Skills specification, making it compatible across agent platforms.
Contributing
Contributions are welcome. Fork the repository, create a feature branch, make your changes, and submit a pull request. See CONTRIBUTING.md for details.
Learn More
- Agent Skills Specification - Open specification for agent skills
- Claude Code Skills Documentation
- Claude Code Plugins Documentation
- Plugin Marketplaces
- API_REFERENCE.md - Full Playwright documentation
- GitHub Issues
License
MIT License - see LICENSE file for details.
Reviews
No reviews yet. Be the first.
Related
claude-magic-compact
Lossless context compression for Claude Code.
superloopy
Lightweight loop harness with strict evidence gates — Claude Code edition.
agents-research
Agents for academic, market, and technical research, synthesis, and reporting
mh install plugins/playwright-skill