Overview
Playwright Automation is lackeyjb/playwright-skill, a general-purpose, MIT-licensed Agent Skill that lets a coding agent write and execute Playwright code on the fly, from a single page check to multi-step flows. It follows the open Agent Skills specification, so it works in Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, OpenCode, and other clients, and it is also packaged as a Claude Code plugin.
The README positions it clearly: for simple interactive browsing, start with Microsoft's official @playwright/cli; for tool-based control with accessibility snapshots, use playwright-mcp. This skill is the code-first option, for when the automation script itself is the useful artifact: loops, assertions, multiple contexts, network interception, screenshots, video, or something you want to keep and rerun.
Key Features
- Custom code per request instead of a fixed set of pre-built scripts.
- Visible browser by default (
headless: false), so you can watch the run; ask for headless when needed. - Portable executor (
run.js) that runs file or inline scripts with stable module resolution. - Progressive disclosure: a short
SKILL.md, with the fullAPI_REFERENCE.md(selectors, auth, visual regression, mobile emulation, performance, debugging) loaded only when needed. - Dev-server detection and optional helpers in
lib/helpers.js. - Config via
SLOW_MOandPW_ARTIFACT_DIR(screenshots default to the OS temp directory).
Quick Start
npx skills add lackeyjb/playwright-skill --skill playwright-skill --global --yes
# then, from the installed skill directory
npm run setup # installs Playwright and Chromium
In Claude Code you can instead run /plugin marketplace add lackeyjb/playwright-skill and /plugin install playwright-skill@playwright-skill. Then ask things like "Test the homepage", "Check if the contact form works", or "Take screenshots of the dashboard in mobile and desktop".
Use Cases
- Quick end-to-end checks of a local app while developing.
- Responsive screenshots across viewports.
- Link, image, and form validation sweeps.
Limitations
- Requires Node.js and a local browser install;
npm run install-all-browsersadds Firefox and WebKit. - Generated scripts are throwaway unless you save them into your test suite.
FAQ
How is this different from Playwright MCP?
Playwright MCP exposes browser actions as tools. This skill has the agent write and run full Playwright programs.
Where do screenshots go?
To the OS temp directory by default, or to PW_ARTIFACT_DIR if set.
Alternatives
- Webapp Testing, Anthropic's Playwright-based skill for local web apps.
- Chrome DevTools MCP for tool-based browser inspection.
- Agent Browser and Browser Use for agent-driven browsing.
More in Skills and the browser automation tag.
Comments
No comments yet. Be the first to comment!
Related Tools
Related Insights

Anthropic Subagent: The Multi-Agent Architecture Revolution
Deep dive into Anthropic multi-agent architecture design. Learn how Subagents break through context window limitations, achieve 90% performance improvements, and real-world applications in Claude Code.
How to pick an AI coding CLI for your repo
Match Claude Code, Codex CLI, OpenCode, Pi, omp, DeepSeek Harness, and Grok Build to the work you actually run. Docs rechecked 2026-10-06.
Skills + Hooks + Plugins: How Anthropic Redefined AI Coding Tool Extensibility
An in-depth analysis of Claude Code's trinity architecture of Skills, Hooks, and Plugins. Explore why this design is more advanced than GitHub Copilot and Cursor, and how it redefines AI coding tool extensibility through open standards.