KS
Killer-Skills

patchright-skill — Categories.community

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

Quality Score

Top 5%
75
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add aiskillstore/marketplace/patchright-skill

Agent Capability Analysis

The patchright-skill MCP Server by aiskillstore is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion.

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 MCP Server

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
Project
SKILL.md
5.9 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
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

Related Skills

Looking for an alternative to patchright-skill or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

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
Communication

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
Communication