Skip to content
Kitbay
Submit

playwright-cli

Apache-2.0Updated on Nov 11, 202615,119GitHub stars

This is the skill that comes with Playwright CLI, Microsoft's command-line tool for driving a browser from a coding agent.

What the skill teaches

This is the skill that comes with Playwright CLI, Microsoft's command-line tool for driving a browser from a coding agent. Rather than connecting to an MCP server, the agent runs short playwright-cli commands to open pages, read element references from snapshots, click and type, manage tabs, cookies and storage, mock network requests, record traces and video, and generate test code. Running playwright-cli install --skills copies the skill into the project's .claude/skills or .agents/skills folder. It needs the @playwright/cli npm package installed and Node.js 20 or newer. Reference files cover tests, sessions, request mocking, storage state and tracing.

Capabilities

  • Open pages and act on elements by snapshot reference
  • Manage tabs, cookies, local storage and session storage
  • Mock network requests
  • Record traces and browser video
  • Generate Playwright test code
  • Run and debug Playwright tests