Agent skill · software engineering · secondsky
playwright
Browser automation and E2E testing with Playwright. Auto-detects dev servers, writes clean test scripts. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use for cross-browser testing, visual regression, API testing, component testing in TypeScript/JavaScript and Python projects.
Why this skill is useful
Adds specific Playwright automation patterns and configuration scripts that enhance browser testing capabilities beyond generic knowledge.
What it needs
Requires bun, npm installed locally. About 7k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
Playwright - Browser Automation & E2E Testing Expert knowledge for browser automation and end-to-end testing with Playwright - a modern cross-browser testing framework. IMPORTANT - Path Resolution: This skill can be installed in different locations. Before executing commands, determine the skill directory based on where you loaded this SKILL.md file, and use that path in all commands. Replace $SKILLDIR with the actual discovered path. Common installation paths: Plugin system: ~/.claude/plugins//playwright/skills/playwright Manual global: ~/.claude/skills/playwright Project-specific: <project>/.claude/skills/playwright CRITICAL WORKFLOW - Follow These Steps When automating browser tasks: 1. Auto-detect dev servers - For localhost testing, ALWAYS run server detection FIRST: If 1 server found: Use it automatically, inform user If multiple servers found: Ask user which one to test If no servers found: Ask for URL or offer to help start dev server 2. Write scripts to /tmp - NEVER write test files to skill directory; always use /tmp/playwright-test-.js 3. Use visible browser by default - Always use headless: false unless user specifically requests headless mode 4. Parameterize URLs - Always make URLs configurable via constant at top of script 5. Execute via run.js - Always run: cd $SKILLDIR && node run.js /tmp/playwright-test-.js Quick Start First-Time Setup This installs Playwright and Chromium browser. Only needed once. Installation (For E2E Testing Projects) Configuration Browser Automation Patterns How It Works 1. You describe what you want to test/automate 2. I auto-detect running dev servers (or ask for URL) 3. I write custom Playwright code in /tmp/playwright-test-.js 4. I execute it via: cd $SKILLDIR && node run.js /tmp/playwright-test-.js 5. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/playwright