agentleFS
vibe-cokitvibe-cokit/claude-code/skills/playwright/SKILL.md

playwright

Skill1 starsChanged 4 months agoApache-2.0View on GitHub

Drive real browsers with Playwright for cross-browser E2E tests and scripted UI flows. Triggers on: "write an E2E test", filling a form in a test, waiting on elements/navigation, multi-tab flows, page-to-PDF. Live-page debugging is `chrome-devtools`.

  • Reads credentials

94 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use develop-web-game, msw and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • hebertzhuSkill

    develop-web-game

    Use when building or iterating on a web game and you need a tight implement-test-observe loop; prefer the bundled Playwright client, inspect screenshots and text state, and validate every meaningful change before moving on.

    Also in 4 projects that use this

  • thongdn-itSkill

    msw

    MSW (Mock Service Worker) best practices for API mocking in tests (formerly test-msw). This skill should be used when setting up MSW, writing request handlers, or mocking HTTP APIs. This skill does NOT cover general testing patterns (use test-vitest or test-tdd skills) or test methodology.

    Also in 3 projects that use this

  • SupabaseSkill

    react-hook-form

    Correct React Hook Form usage anywhere in the monorepo — data flow, subscriptions,

    Also in 3 projects that use this

  • thongdn-itSkill

    tailwind

    Tailwind CSS v4 performance optimization and best practices guidelines (formerly tailwindcss-v4-style). This skill should be used when writing, reviewing, or refactoring Tailwind CSS v4 code to ensure optimal build performance, minimal CSS output, and correct usage of v4 features. Triggers on tasks involving Tailwind configuration, @theme directive, utility classes, responsive design, dark mode, container queries, or CSS generation optimization.

    Also in 5 projects that use this

  • VercelSkill

    react

    React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.

    Also in 6 projects that use this

  • OpenAISkill

    web-perf

    Analyzes web performance using Chrome DevTools MCP. Measures Core Web Vitals (FCP, LCP, TBT, CLS, Speed Index), identifies render-blocking resources, network dependency chains, layout shifts, caching issues, and accessibility gaps. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed. Biases towards retrieval from current documentation over pre-trained knowledge.

    Also in 5 projects that use this

  • +1 more from thongdn-it

The file

Files
SKILL.md

Playwright Browser Automation

Script-based browser automation across chromium, firefox and webkit: navigate, interact, wait, assert, capture.

Scope: cross-browser E2E flows and UI test scripts. For debugging a live page — console/JS errors, failed requests, Core Web Vitals, WebSocket frames, CDP domains — use chrome-devtools instead.

Quick Start

# Navigate and screenshot
node scripts/playwright.js navigate "https://example.com"
node scripts/playwright.js screenshot "https://example.com" --output page.png

# Interact with elements
node scripts/playwright.js click "https://example.com" --selector "button.submit"
node scripts/playwright.js type "https://example.com" --selector "input#search" --text "hello"
node scripts/playwright.js scroll "https://example.com" --direction down --amount 500

# Extract content
node scripts/playwright.js content "https://example.com"
node scripts/playwright.js evaluate "https://example.com" --expression "document.title"

# Generate PDF
node scripts/playwright.js pdf "https://example.com" --output page.pdf

Commands

CommandPurpose
navigateOpen URL, return page title + metadata
screenshotCapture full page or element screenshot
clickClick element by selector
typeType text into input (appends)
fillFill form field (clears first)
scrollScroll page in any direction
contentExtract page text content
evaluateRun JavaScript in browser context
pdfGenerate PDF from page
waitWait for selector/navigation/timeout
selectSelect dropdown option
hoverHover over element
linksExtract all links from page

Global Options

FlagDefaultPurpose
--browserchromiumEngine: chromium firefox webkit
--headlesstrueHeadless mode
--timeout30000Operation timeout (ms)
--viewport1280x720Viewport size (WxH)
--wait-untilloadNav wait: load domcontentloaded networkidle
--user-agentdefaultCustom user agent

References

  • commands-reference.md — Detailed command docs, all options, examples
  • workflow-patterns.md — Multi-step automation, scraping, form filling
  • selectors-guide.md — CSS/XPath/text selectors, best practices

Setup

Requires playwright npm package. Install: cd playwright && npm install Scripts auto-detect Playwright location. See .env.example for config.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.