patchright-skill — community patchright-skill, marketplace, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Web Automation Agents needing secure and verified browser interactions with localhost and dev servers. Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified.

aiskillstore aiskillstore
[0]
[0]
Updated: 2/20/2026

Agent Capability Analysis

The patchright-skill skill by aiskillstore is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Web Automation Agents needing secure and verified browser interactions with localhost and dev servers.

Core Value

Empowers agents to bypass bot detection and perform UI interactions, web app testing, and screenshot captures using HTTP and localhost protocols, leveraging quality-verified and security-audited skills for Claude, Codex, and Claude Code.

Capabilities Granted for patchright-skill

Automating web app testing on localhost and dev servers
Generating screenshots of web applications for debugging purposes
Interacting with UI elements on local IPs and dev server ports

! Prerequisites & Limits

  • Requires localhost or local IP access
  • Limited to specific dev server ports
  • May require additional configuration for bot detection bypass
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

patchright-skill

Install patchright-skill, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Patchright - Browser Automation Skill

Patchright-based browser automation with bot detection bypass. Use for localhost, dev servers, web app testing, screenshots, and UI interactions.

Triggers

URL/Network:

Web App Testing:

  • "test the app", "check the site"
  • "open localhost", "view in browser"
  • "take screenshot", "capture screen"
  • "check UI", "view page"
  • QA, E2E testing, dev build verification

Browser Interaction:

  • "click", "press button"
  • "type", "fill form"
  • "login", "sign up"
  • "open menu", "click tab"
  • "scroll", "navigate"

Visual Verification:

  • "how does it look?", "is it working?"
  • "check design", "verify layout"
  • "responsive test", "screen size"
  • "check rendering", "verify component"

Development Workflow:

  • Verify changes after code edits
  • Frontend debugging
  • Real-time dev feedback
  • Pre-deployment checks

Core: Server Mode (Session Persistence!)

Problem: scripts/executor.py terminates process on each call -> browser session lost Solution: scripts/server.py runs background server -> session persists

Start Server (Required!)

bash
1cd ~/.claude/skills/patchright-skill 2python scripts/server.py start &

Server Commands

bash
1# Check status 2python scripts/server.py status 3 4# Stop server 5python scripts/server.py stop 6 7# Call tool 8python scripts/server.py call '{"tool": "...", "args": {...}}'

Usage

1. Navigate + Screenshot (Most Common Pattern)

bash
1cd ~/.claude/skills/patchright-skill 2 3# Start server (if not running) 4python scripts/server.py start & 5sleep 2 6 7# Navigate to page 8python scripts/server.py call '{"tool": "navigate", "args": {"url": "http://localhost:3000"}}' 9 10# Take screenshot 11python scripts/server.py call '{"tool": "screenshot", "args": {"path": "screenshot.png", "full_page": true}}'

2. Click + Interaction

bash
1# Click element 2python scripts/server.py call '{"tool": "click", "args": {"selector": "button.submit"}}' 3python scripts/server.py call '{"tool": "click", "args": {"selector": "#menu-btn"}}' 4python scripts/server.py call '{"tool": "click", "args": {"selector": "body"}}' # Click anywhere 5 6# Type text 7python scripts/server.py call '{"tool": "type", "args": {"selector": "#email", "text": "test@test.com"}}' 8python scripts/server.py call '{"tool": "type", "args": {"selector": "input[name=password]", "text": "password123"}}'

3. Get Information

bash
1# Current URL 2python scripts/server.py call '{"tool": "get_url"}' 3 4# Page title 5python scripts/server.py call '{"tool": "get_title"}' 6 7# Element text 8python scripts/server.py call '{"tool": "get_text", "args": {"selector": ".error-message"}}'

4. Wait

bash
1# Wait for element to appear 2python scripts/server.py call '{"tool": "wait_for", "args": {"selector": ".loading-complete", "timeout": 10000}}'

Tool Reference

ToolDescriptionArgs
launchStart browserheadless: bool (default: false)
closeClose browser-
navigateGo to URLurl: string (required)
screenshotSave to filepath: string, full_page: bool
clickClick elementselector: string (required)
typeType textselector: string, text: string
get_textGet element textselector: string
wait_forWait for elementselector: string, timeout: int
get_urlGet current URL-
get_titleGet page title-

Examples

Login Test

bash
1cd ~/.claude/skills/patchright-skill 2python scripts/server.py start & 3sleep 2 4 5# Navigate to login page 6python scripts/server.py call '{"tool": "navigate", "args": {"url": "http://localhost:3000/login"}}' 7python scripts/server.py call '{"tool": "screenshot", "args": {"path": "login_page.png"}}' 8 9# Fill form 10python scripts/server.py call '{"tool": "type", "args": {"selector": "#email", "text": "admin@test.com"}}' 11python scripts/server.py call '{"tool": "type", "args": {"selector": "#password", "text": "admin123"}}' 12python scripts/server.py call '{"tool": "screenshot", "args": {"path": "login_filled.png"}}' 13 14# Submit 15python scripts/server.py call '{"tool": "click", "args": {"selector": "button[type=submit]"}}' 16sleep 2 17python scripts/server.py call '{"tool": "screenshot", "args": {"path": "login_result.png"}}'

App Navigation

bash
1# Enter app 2python scripts/server.py call '{"tool": "navigate", "args": {"url": "http://localhost:3000"}}' 3python scripts/server.py call '{"tool": "click", "args": {"selector": "body"}}' # Click to enter 4sleep 2 5python scripts/server.py call '{"tool": "screenshot", "args": {"path": "app_main.png", "full_page": true}}' 6 7# Explore features 8python scripts/server.py call '{"tool": "click", "args": {"selector": ".create-btn"}}' 9python scripts/server.py call '{"tool": "screenshot", "args": {"path": "after_action.png"}}'

Selector Tips

css
1/* ID */ 2#submit-btn 3 4/* Class */ 5.nav-menu 6button.primary 7 8/* Attribute */ 9input[type=email] 10button[data-testid="login"] 11a[href="/about"] 12 13/* Text content */ 14text=Login 15text=Submit 16 17/* Combined */ 18form#login button[type=submit] 19.sidebar .menu-item:first-child

Technical Specs

  • Engine: patchright (undetected playwright fork)
  • Browser: Google Chrome (channel: 'chrome')
  • Bot Detection Bypass: YES (Cloudflare, reCAPTCHA, etc.)
  • Localhost Support: YES
  • Private IP Support: YES
  • Server Port: 9222

Troubleshooting

"Server not running" error:

bash
1python scripts/server.py start & 2sleep 2

Browser not visible:

  • headless=False is default, browser window should appear
  • In server mode, browser persists in background

Session disconnected:

  • Use scripts/server.py instead of scripts/executor.py
  • Server keeps session alive once started

Element not found:

  • Use wait_for to wait first
  • Verify selector in DevTools

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is patchright-skill?

Perfect for Web Automation Agents needing secure and verified browser interactions with localhost and dev servers. Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified.

How do I install patchright-skill?

Run the command: npx killer-skills add aiskillstore/marketplace/patchright-skill. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for patchright-skill?

Key use cases include: Automating web app testing on localhost and dev servers, Generating screenshots of web applications for debugging purposes, Interacting with UI elements on local IPs and dev server ports.

Which IDEs are compatible with patchright-skill?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for patchright-skill?

Requires localhost or local IP access. Limited to specific dev server ports. May require additional configuration for bot detection bypass.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add aiskillstore/marketplace/patchright-skill. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use patchright-skill immediately in the current project.

Related Skills

Looking for an alternative to patchright-skill or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI