AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Playwright

skill-stuartshields-claude-setup-playwright · by stuartshields

Playwright MCP browser automation workflow. Snapshot-first approach for page interaction, visual verification, form filling, and debugging.

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-stuartshields-claude-setup-playwright

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-stuartshields-claude-setup-playwright)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Playwright? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Skill: playwright

When to Use

Use this skill for browser automation tasks: visual testing, page interaction, form filling, screenshot comparison, and debugging rendered pages. Invoke with /playwright [URL] to navigate to a specific page, or /playwright to start without a URL.

Use $ARGUMENTS as the URL to navigate to. If empty, ask the user what page to work with.

Do NOT use this skill for writing test files or test code. This is for live browser interaction via MCP tools.

Snapshot First, Screenshot Second

The Playwright MCP provides two ways to see page state. Use the right one:

  • browser_snapshot - Returns the accessibility tree. Use this for planning actions, finding interactive elements, and understanding page structure. Fast, deterministic, token-efficient. Always start here.
  • browser_take_screenshot - Returns a visual image. Use this for visual verification, layout debugging, comparing against Figma designs, and documentation. You cannot perform actions based on screenshots alone. Use browser_snapshot for that.

Default workflow:

  1. browser_snapshot to understand what's on the page
  2. Perform actions (browser_click, browser_type, browser_fill_form, etc.)
  3. browser_snapshot again to verify the action worked
  4. browser_take_screenshot only when visual verification is needed

Visual Verification with Figma

When comparing implementation against Figma designs:

  1. Call get_screenshot from the Figma MCP for the design reference
  2. Navigate to the implementation with browser_navigate
  3. Match viewport dimensions to the Figma frame with browser_resize
  4. Call browser_take_screenshot to capture the current state
  5. Compare the two images. If they don't match, identify the specific deltas and fix them
  6. Repeat until visual parity is achieved

Don't declare "looks good" after a single screenshot. Compare carefully. If you can't tell, use browser_evaluate to measure computed styles and compare against the Figma spec values.

Be Specific with Actions

Vague instructions lead to wrong element clicks. When interacting with elements:

  • Reference elements by their accessibility role and name from browser_snapshot output (e.g., "Submit button in the login form", not just "the button")
  • If multiple elements share the same label, provide context: parent container, position, or surrounding text
  • After every action, take a snapshot to confirm the expected state change happened. Don't assume it worked.

Form Interactions

  • Use browser_fill_form to populate multiple fields at once instead of individual browser_type calls when possible
  • For dropdowns, use browser_select_option rather than clicking and typing
  • After form submission, use browser_wait_for to confirm the expected result (success message, redirect, etc.)
  • Check browser_console_messages if something fails silently

Debugging

When something goes wrong:

  1. browser_console_messages - Check for JavaScript errors
  2. browser_network_requests - Look for failed API calls (4xx, 5xx)
  3. browser_evaluate - Inspect DOM state, computed styles, or run diagnostic JS
  4. browser_take_screenshot - See what the user would actually see

Don't guess at the problem. Use these tools to gather evidence first.

Token Efficiency

Large DOM trees consume significant tokens per browser_snapshot. Keep context manageable:

  • Target specific sections of a page rather than full-page snapshots when possible
  • For very large pages, use browser_evaluate to query specific elements instead of snapshotting the entire tree
  • Close tabs and pages you're done with using browser_close

Authentication

The Playwright MCP browser is visible. For authenticated pages:

  • Navigate to the login page and let the user log in manually with their own credentials
  • Cookies persist for the session duration, so you only need to do this once
  • Don't attempt to script login with hardcoded credentials

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.