Maintenance in progress: we are indexing a large batch of new skills. Some pages may load slowly or briefly show no results. Nothing is lost, and everything is back to normal within the hour.

Playwriter

Control the user Chrome browser via Playwriter extension with Playwright code snippets in a stateful local js sandbox. Automate web interactions, take screenshots, inspect accessibility trees, and debug web applications.

majiayu000 a2aa7b6 2 files · 1.9 KB Updated 567 repo stars

File contents

Quick Start

# Get a session ID first
playwriter session new
# => 1

# Execute code with your session
playwriter -s 1 -e "await page.goto('https://example.com')"
playwriter -s 1 -e "console.log(await accessibilitySnapshot({ page }))"
playwriter -s 1 -e "await page.screenshot({ path: 'shot.png', scale: 'css' })"

If playwriter is not found, use npx playwriter@latest or bunx playwriter@latest.

Full Documentation

Always run playwriter skill to get the complete, up-to-date skill instructions.

The skill command outputs detailed docs on:

  • Session management
  • Context variables (state, page, context)
  • Best practices and rules
  • Accessibility snapshots and screenshots
  • Selector strategies
  • Working with pages, navigation, popups, downloads
  • Utility functions (getCleanHTML, getCDPSession, createDebugger, etc.)
  • Network interception for API scraping
  • And more...
playwriter skill

majiayu000/claude-skill-registry-data/tree/main/data/playwriter commit a2aa7b6ab8

Frequently asked questions

npx skillmds add majiayu000/playwriter