Browser automation connected to your running Chrome session, preserving logins, cookies, and extensions.
Works with
Connects to an existing Chrome browser via extension instead of spawning headless instances, enabling authenticated workflows without re-login
Exposes full Playwright API through CLI ( -e flag) and MCP integration for Claude Desktop and other AI agent platforms
Includes built-in helpers for accessibility snapshots, screenshots with element labels, network interception, and screen
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionplaywriterExecute the skills CLI command in your project's root directory to begin installation:
Fetches playwriter from supercent-io/skills-template and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate playwriter. Access via /playwriter in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
88
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
88
stars
Playwriter connects AI agents to your running Chrome browser instead of spawning a new headless instance. Your existing logins, cookies, extensions, and tab state are all preserved.
vs. agent-browser: agent-browser spawns a fresh headless browser (isolated, CI-friendly). playwriter connects to your existing Chrome session (authenticated, stateful, with your extensions).
Install the Playwriter Chrome extension from the Web Store (search "Playwriter MCP" or use extension ID jfeammnjpkecdekppnclgkkffahnhfhe).
After installing, click the extension icon on any tab you want to allow automation on. The icon turns green when a tab is enabled for control.
npm install -g playwriter
# or run without installing:
npx playwriter@latest --help
The extension auto-starts a WebSocket relay server at localhost:19988.
Always follow the Observe → Act → Observe pattern:
# 1. Create a session
playwriter session new
# 2. Navigate and observe
playwriter -s 1 -e 'await page.goto("https://example.com")'
playwriter -s 1 -e 'await snapshot({ page })'
# 3. Interact based on snapshot output
playwriter -s 1 -e 'await page.locator("aria-ref=e5").click()'
# 4. Re-observe after action
playwriter -s 1 -e 'await snapshot({ page })'
# Create a new isolated stateful session
playwriter session new
# List all active sessions (shows browser, profile, state info)
playwriter session list
# Delete a session and clear its state
playwriter session delete <sessionId>
# Reset the CDP connection and clear execution environment
playwriter session reset <sessionId>
Execute arbitrary Playwright code in a session:
# Navigate to a URL
playwriter -s 1 -e 'await page.goto("https://github.com")'
# Fill a form field
playwriter -s 1 -e 'await page.fill("#search", "playwriter"); await page.keyboard.press("Enter")'
# Get accessibility snapshot (preferred over screenshots for text content)
playwriter -s 1 -e 'await snapshot({ page })'
# Take screenshot with visual accessibility labels (color-coded by element type)
playwriter -s 1 -e 'await screenshotWithAccessibilityLabels({ page })'
# Store state between calls (state object persists within session)
playwriter -s 1 -e 'state.url = page.url(); state.title = await page.title()'
playwriter -s 1 -e 'console.log(state.url, state.title)'
Quoting rules: Wrap code in single quotes. For multiline code, use heredoc:
playwriter -s 1 -e "$(cat <<'EOF'
const text = await page.textContent('h1');
state.heading = text;
await snapshot({ page });
EOF
)"
~/.claude/settings.json or Claude Desktop MCP settings){
"mcpServers": {
"playwriter": {
"command": "npx",
"args": ["-y", "playwriter@latest"]
}
}
}
{
"mcpServers": {
"playwriter": {
"command": "npx",
"args": ["-y", "playwriter@latest"],
"env": {
"PLAYWRITER_HOST": "your-relay-host",
"PLAYWRITER_TOKEN": "your-secret-token",
"PLAYWRITER_SESSION": "1"
}
}
}
}
| Tool | Description |
|---|---|
execute |
Run arbitrary JavaScript Playwright code (code, timeout params) |
reset |
Recreate CDP connection, clear state — use after connection failures |
| Global | Description |
|---|---|
page |
Current Playwright page |
context |
Browser context |
state |
Persistent object — survives multiple -e calls in same session |
snapshot({ page }) |
Accessibility tree as text (token-efficient) |
screenshotWithAccessibilityLabels({ page }) |
Screenshot with color-coded element markers |
getPageMarkdown() |
Article text via Mozilla Readability |
waitForPageLoad() |
Smart load detection |
getLatestLogs() |
Browser console errors/logs |
getCleanHTML() |
Cleaned DOM HTML |
getLocatorStringForElement() |
Get selector for a DOM element |
getReactSource() |
React component source tree |
screenshotWithAccessibilityLabels({ page }) overlays color-coded markers on interactive elements:
| Color | Element type |
|---|---|
| Yellow | Links |
| Orange | Buttons |
| Coral | Inputs |
| Pink | Checkboxes |
| Peach | Sliders |
Click a labeled element using aria-ref:
playwriter -s 1 -e 'await page.locator("aria-ref=e5").click()'
# Intercept network requests
playwriter -s 1 -e 'state.requests = []; page.on("request", r => state.requests.push(r.url()))'
# Check collected requests later
playwriter -s 1 -e 'console.log(state.requests.slice(-5).join("\n"))'
# Screen recording
playwriter -s 1 -e 'await recording.start()'
# ... do actions ...
playwriter -s 1 -e 'const video = await recording.stop(); state.video = video'
Control Chrome on a remote machine via tunnel:
# On the machine with Chrome:
playwriter serve --token my-secret --replace
# From agent machine:
playwriter --host <ip-or-hostname> --token my-secret -s 1 -e 'await page.goto("https://example.com")'
snapshot({ page }) before and after each actionsnapshot() over screenshots for text inspection (fewer tokens, faster)aria-ref, data-testid, or accessible rolesstate: avoid repeated navigation by persisting page referencesreset on failures: CDP disconnects recover cleanly with playwriter session reset| Issue | Solution |
|---|---|
| Extension not connecting | Click extension icon on the tab; icon must be green |
connection refused :19988 |
Extension auto-starts server; check Chrome is running with extension installed |
| Code execution timeout | Increase with --timeout 30000 flag |
| Click fails silently | Use snapshot({ page }) — a modal likely intercepts the click |
| Stale session | Run playwriter session reset <id> to restore CDP connection |
| Remote access failing | Confirm playwriter serve is running and token matches |
playwriter skill — print full usage guide from CLIplaywriter logfile — view relay server + CDP log pathsMake data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
supercent-io/skills-template
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
playwriter reduced setup friction for our internal harness; good balance of opinion and flexibility.
playwriter reduced setup friction for our internal harness; good balance of opinion and flexibility.
playwriter has been reliable in day-to-day use. Documentation quality is above average for community skills.
playwriter fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
I recommend playwriter for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Keeps context tight: playwriter is the kind of skill you can hand to a new teammate without a long onboarding doc.
I recommend playwriter for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
We added playwriter from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
playwriter fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
We added playwriter from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
showing 1-10 of 34