Skill: Web App Testing
by Anthropic
Interact with and test local web applications using Playwright — verify frontend behavior, debug UI, capture screenshots, and read browser logs.
Microsoft's official Playwright skill — drives a real browser from the command line using accessibility snapshots and element refs, and plans, generates and heals Playwright tests.
Add this skill to your favorite AI agent in a few steps.
Learn how to use this skill with different AI agents.
playwright-cli open https://example.com/form
playwright-cli snapshot
playwright-cli fill e1 "user@example.com"
playwright-cli fill e2 "password123"
playwright-cli click e3
playwright-cli snapshot
playwright-cli closeThe Playwright CLI skill is Microsoft's official Agent Skill for playwright-cli, the command-line front end to Playwright. It is aimed at coding agents that need to actually drive a browser — fill a form, check that a fix renders, generate a test — rather than reason about a page they have never loaded.
The design choice that matters is that the agent works from accessibility snapshots rather than screenshots. After every command the CLI prints the page's state as a YAML tree in which each element carries a short ref (e15), and the agent clicks, fills and hovers by ref. That keeps the loop cheap in tokens compared with sending images, and it makes the interaction deterministic. CSS selectors and Playwright locators such as getByRole('button', { name: 'Submit' }) work too, and find greps a large snapshot with surrounding context instead of capturing the whole thing.
The command surface is wide: navigation and tabs, keyboard and mouse primitives, file upload and drag-and-drop, dialogs, cookie/localStorage/sessionStorage inspection and state-save/state-load for reusing an authenticated session, network routing for mocking responses, and emulation of colour scheme, reduced motion, forced colors, contrast and print media. On the debugging side it exposes console output, a request log, Playwright traces, video recording with chapter markers, and run-code for arbitrary Playwright script. show --annotate opens a dashboard where a human draws boxes on the live page and types comments, and the agent receives the annotated screenshot plus the user's notes — a genuine review loop rather than a one-way capture.
Two details are worth calling out. It supports the experimental WebMCP API, where a page registers its own tools for agents; the skill instructs the agent to prefer those calls over driving the UI, while treating the page-supplied names, schemas and results as untrusted input. And it documents attaching screenshots and short videos to pull requests through gh --attach, which is the difference between a reviewer trusting a UI fix and having to check it out.
Bundled reference files cover running and debugging Playwright test suites, request mocking, session management, storage state, test generation (plan / generate / heal), tracing, video recording, PR attachments and element attributes. Installation is playwright-cli install --skills for the Claude Code layout, --skills=agents for .agents/skills, or -g to install into the home directory; it works with Claude Code, GitHub Copilot, Cursor and any agent that reads locally installed skills. Apache-2.0.
Covered in the Weekly
by Anthropic
Interact with and test local web applications using Playwright — verify frontend behavior, debug UI, capture screenshots, and read browser logs.
by TestMu AI
TestMu AI's official skill for generating production-grade Playwright suites in TypeScript, JavaScript, Python, Java or C#, locally or on a 3,000-combination browser cloud.
by PostHog
PostHog's official skill for auditing a live analytics implementation — scripts, network calls, and window state — read-only, via browser automation.
by Browserbase
Browserbase's official skill for driving a real browser from an agent via the browse CLI - navigate, snapshot, fill forms and click, locally or in a cloud session.