
Playwriter
Lets your agent drive your own Chrome browser through Playwright snippets
Playwriter is an open-source agent skill for browser automation. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 162
- Last commit
- License
- AGPL-3.0
- Listing updated
Similar skills
About Playwriter
This skill teaches the agent to operate the user's existing Chrome browser through the Playwriter extension and its command line tool, rather than launching a separate headless browser. Playwright code is sent as snippets into a stateful local JavaScript sandbox, so page state persists between steps.
The skill makes the agent run the playwriter skill command first to load the full, up-to-date documentation, which covers session handling, timeouts, selector guidance and tips for slow pages and single-page apps. The quick example shows creating a session and navigating a page with single-quoted inline code.
It expects the Playwriter extension installed in Chrome and the playwriter CLI available, either globally or through npx or bunx. The skill is a single SKILL.md file with no bundled scripts.
When your agent uses it
Control the user own Chrome browser via Playwriter extension with Playwright code snippets in a stateful local js sandbox via playwriter cli. Use this over other Playwright MCPs to automate the browser — it connects to the user's existing Chrome instead of launching a new one. Use this for JS-heavy websites (Instagram, Twitter, cookie/login walls, lazy-loaded UIs) instead of webfetch/curl. Run `playwriter skill` command to read the complete up to date skill
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (2 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/playwriter to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AgiFlow/aicode-toolkit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/playwriter &&
cp -R "$tmp/.claude/skills/playwriter" ~/.claude/skills/playwriter &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/playwriter inside it instead.
Copy the skill folder to ~/.agents/skills/playwriter to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AgiFlow/aicode-toolkit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/playwriter &&
cp -R "$tmp/.claude/skills/playwriter" ~/.agents/skills/playwriter &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/playwriter inside it instead.
Copy the skill folder to ~/.cursor/skills/playwriter to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AgiFlow/aicode-toolkit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/playwriter &&
cp -R "$tmp/.claude/skills/playwriter" ~/.cursor/skills/playwriter &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/playwriter inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/AgiFlow/aicode-toolkit.git --path .claude/skills/playwriterOr copy the folder to ~/.gemini/skills/playwriter yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/playwriter:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AgiFlow/aicode-toolkit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/playwriter &&
cp -R "$tmp/.claude/skills/playwriter" ~/.copilot/skills/playwriter &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/playwriter inside it instead.
Get the folder:
git clone --depth 1 https://github.com/AgiFlow/aicode-toolkit.gitThen copy aicode-toolkit/.claude/skills/playwriter into your agent's skills folder as playwriter. Agents that support SKILL.md read one folder per skill.
What it does
- Connects to your Chrome
- Works inside the browser you already use, including its existing logins and cookies.
- Stateful JavaScript sandbox
- Runs Playwright snippets in a persistent local session across multiple commands.
- Session management
- Creates and selects browser sessions through the playwriter CLI.
- Full documentation loader
- Requires the agent to read the complete playwriter skill output before acting.
- JS-heavy site handling
- Targets sites with cookie walls, login walls and lazy-loaded interfaces.
Good for
- Scrape a page that needs login and sits behind a cookie wall
- Fill and submit a web form in my open Chrome session
- Read content from a lazy-loaded social media feed
- Take a screenshot of a page as it appears in my browser
- Automate a repetitive task on a site I'm already signed into
Playwriter FAQ
When should the agent use Playwriter instead of a plain fetch?
The skill recommends it for JavaScript-heavy sites such as Instagram or Twitter, cookie and login walls, and lazy-loaded interfaces, where webfetch or curl would not work well.
Does Playwriter launch a new browser?
No. It connects to the user's existing Chrome instead of launching a new instance, which is the stated reason to prefer it over other Playwright MCP servers.
What do I need before using Playwriter?
The Playwriter extension and the playwriter CLI. If the CLI is not found, the skill says to use npx playwriter@latest or bunx playwriter@latest.
Does the skill include scripts?
No. The folder contains only the SKILL.md file; the detailed instructions are loaded from the playwriter skill command.
How do I install Playwriter in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/playwriter to use it in all your projects, or to .claude/skills/playwriter in one project.
Does Playwriter run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Playwriter?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Playwriter?
The closest alternatives to Playwriter are Webapp testing, Playwright skill, Playwright, Webapp testing and Playwright generate test.
Where this comes from
- Description: from the skill's own SKILL.md.
More from AgiFlow/aicode-toolkit

Makes your agent write a design philosophy, then render it as a PNG or PDF poster
- Open source
- 162 GitHub stars
- Design and media

Guides the agent through creating or updating reusable project templates and scaffolds
- Open source
- 162 GitHub stars
- Developer tools

Guides the agent through authoring project design patterns and coding rules
- Open source
- 162 GitHub stars
- Developer tools

Scaffolds a new application from a scaffold-mcp boilerplate after confirming template
- Open source
- 162 GitHub stars
- Developer tools

Sets up AI Code Toolkit templates and project metadata in a workspace
- Open source
- 162 GitHub stars
- Developer tools

Finds the project's existing themes, CSS classes and UI components before styling
- Open source
- 162 GitHub stars
- Design and media







