An agentic skills framework & software development methodology that works.
Playwright skill for Claude Code and other agents
This skill gives an agent a way to write custom Playwright scripts for the browser task you describe, then run them with a universal executor. It keeps the default browser visible, adds helpers for common actions, and loads fuller API docs only when needed.
Builders who want their agent to write and run real Playwright browser automation instead of using fixed scripts.
You can test pages, forms, and flows with fresh Playwright code that the agent generates for your exact task.
What it does
Custom Playwright automation
The agent writes code for the page or flow you asked about, instead of choosing from a fixed script list.
Visible browser by default
Automation runs with `headless: false` unless you ask otherwise, so you can watch it work.
Portable executor
`run.js` runs file and inline scripts with stable module resolution.
Progressive disclosure
`SKILL.md` stays concise, while `API_REFERENCE.md` is loaded only when the agent needs full Playwright details.
Safe cleanup
Temporary files are managed to avoid race conditions.
Helper functions
`lib/helpers.js` provides optional utilities for common browser tasks.
How to get it
- 1Install globally for your user
npx skills add lackeyjb/playwright-skill --skill playwright-skill --global --yes
- 2Install only for the current project by omitting --global
npx skills add lackeyjb/playwright-skill --skill playwright-skill --yes
- 3To target specific agents, add --agent followed by one or more agent IDs
npx skills add lackeyjb/playwright-skill --skill playwright-skill --agent claude-code cursor --global --yes
- 4After installation, run setup from the installed skill directory
npm run setup
- 5Run
"Test the homepage" "Check if the contact form works" "Verify the signup flow"
- 6Run
"Take screenshots of the dashboard in mobile and desktop" "Test responsive design across different viewports"
README
Playwright Skill
General-purpose Playwright automation for coding agents
An Agent Skill that enables coding agents to write and execute Playwright automation on the fly, from simple page tests to complex multi-step flows. It is also packaged as a Claude Code Plugin for convenient installation.
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 - Portable executor - Runs file and inline scripts with stable module resolution
- 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 contains a standard Agent Skill and a Claude Code plugin wrapper. The recommended installation method is Vercel's skills CLI, which installs skills into the native locations for supported agents.
Why this skill?
Use this skill when the agent needs to write a real Playwright program: loops, assertions, multiple contexts, network interception, screenshots, video, or a script you want to keep and rerun. It also provides dev-server detection and a small set of focused helpers.
For straightforward interactive browsing, start with Microsoft's official
@playwright/cli and install its
agent skills with playwright-cli install --skills. For tool-based browser
control with accessibility snapshots, use
playwright-mcp. This project is
the code-first option when the automation itself is the useful artifact.
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
The repository keeps the skill inside the plugin's skills/ directory. Installers handle that layout automatically; manual copying is only a fallback for clients without an installer.
Option 1: Install with skills (Recommended)
Install globally for your user:
npx skills add lackeyjb/playwright-skill --skill playwright-skill --global --yes
Install only for the current project by omitting --global:
npx skills add lackeyjb/playwright-skill --skill playwright-skill --yes
To target specific agents, add --agent followed by one or more agent IDs:
npx skills add lackeyjb/playwright-skill --skill playwright-skill --agent claude-code cursor --global --yes
After installation, run setup from the installed skill directory:
npm run setup
See the skills CLI documentation for supported agents and options.
Option 2: Claude Code Plugin
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 3: Other Agent Installations
Agent Skills are supported by Claude Code, Cursor, GitHub Copilot, Codex,
Gemini CLI, OpenCode, and other clients. Install the directory containing
SKILL.md using the client’s documented skill path. If a client has no
installer, copy skills/playwright-skill/ into its documented skill directory
and run npm run setup there.
Option 4: 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, ask your agent to test or automate a browser task. It 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
- Your agent 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:
0msby default; setSLOW_MOwhen useful - Screenshots: Helper screenshots use the OS temp directory; set
PW_ARTIFACT_DIRto choose another location
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.
Files in the repo
- .claude-plugin
- .github
- skills
- tests
- .gitignore
- CHANGELOG.md
- CONTRIBUTING.md
- LICENSE
- README.md
Discussion (0)
Ask about usage, or say what you built with itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More skills

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.
Public repository for Agent Skills
Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

Production-grade engineering skills for AI coding agents.