Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add ZenoWangzy/agent-browser-skill
Or install specific skill: npx add-skill https://github.com/ZenoWangzy/agent-browser-skill
# Description
Browser automation CLI for AI agents with Rust + Node.js architecture. Use when ANY browser/web automation is needed: (1) Web scraping & data extraction, (2) Form filling & submission, (3) Screenshot & PDF generation, (4) Testing web applications (E2E, forms, navigation), (5) Cookie/storage management, (6) Multi-tab/window operations, (7) Element interaction (click, type, hover, drag), (8) Waiting & state verification, (9) Page navigation & history, (10) Network request mocking, (11) Browser automation coding (understanding architecture, API patterns, test examples, navigating codebase). Ideal for contributors, developers, and ANYONE automating browser interactions.
# SKILL.md
name: agent-browser
description: Browser automation CLI for AI agents with Rust + Node.js architecture. Use when ANY browser/web automation is needed: (1) Web scraping & data extraction, (2) Form filling & submission, (3) Screenshot & PDF generation, (4) Testing web applications (E2E, forms, navigation), (5) Cookie/storage management, (6) Multi-tab/window operations, (7) Element interaction (click, type, hover, drag), (8) Waiting & state verification, (9) Page navigation & history, (10) Network request mocking, (11) Browser automation coding (understanding architecture, API patterns, test examples, navigating codebase). Ideal for contributors, developers, and ANYONE automating browser interactions.
agent-browser Codebase
Fast headless browser automation CLI for AI agents. Rust CLI with Node.js fallback, built on Playwright.
Architecture Overview
โโโโโโโโโโโโโโโโโโโโโโโ
โ Rust CLI โ โ Fast native binary (commands.rs, main.rs)
โ (Fast parsing) โ
โโโโโโโโโโโโฌโโโโโโโโโโโ
โ
โ
โโโโโโโโโโโโโโโโโโโโโโโ
โ Node.js Daemon โ โ Playwright browser management
โ (Browser control) โ
โโโโโโโโโโโโโโโโโโโโโโโ
Languages: TypeScript 72.7% | Rust 21.2% | JavaScript 6.1%
When to Use This Skill
Browser Automation Usage (ๆฅๅธธไฝฟ็จ)
| ๅบๆฏ | ๅ่ๆๆกฃ |
|---|---|
| ็ฝ้กต็ฌๅ/ๆฐๆฎๆๅ | references/examples/workflows.md - Web Scraping Workflow |
| ่กจๅๅกซๅ/ๆไบค | references/examples/workflows.md - Form Testing Workflow |
| ๆชๅพ/PDF็ๆ | references/examples/quick-start.md - Screenshot & PDF |
| ็ฝ้กตๆต่ฏ (E2E) | references/examples/workflows.md - E2E Testing Workflow |
| Cookie/Storage็ฎก็ | references/examples/quick-start.md - Cookie & Storage |
| ๅคๆ ็ญพ้กตๆไฝ | references/examples/workflows.md - Multi-Tab Workflow |
| ๅ ็ด ไบคไบ | references/examples/quick-start.md - Common Commands |
| ็ญๅพ /็ถๆ้ช่ฏ | references/examples/workflows.md - Wait Strategies |
| ้กต้ขๅฏผ่ช | references/examples/quick-start.md - Navigation |
| ็ฝ็ป่ฏทๆฑๆจกๆ | references/examples/workflows.md - Network Mocking |
Codebase Analysis (ไปฃ็ ๅๆ)
| ไปปๅก | ๅ่ๆๆกฃ |
|---|---|
| API ๅฎ็ฐ | references/api_reference/actions.ts - 100+ ๅฝไปคๅค็ๅจ |
| CLI ๅฝไปค่งฃๆ | references/api_reference/commands.rs - Rust ่งฃๆๅจ |
| ๆต่งๅจ็ฎก็ | references/api_reference/browser.ts |
| ๆต่ฏๆจกๅผ | references/api_reference/*.test.ts - ๆต่ฏ็คบไพ |
| ้ ็ฝฎๅๆ | references/config_patterns/ - 15 ไธช้
็ฝฎๆไปถ |
Quick Links
- All Commands:
references/api_reference/actions.md(click, fill, screenshot, etc.) - Design Patterns:
references/patterns/detected_patterns.json(Factory Pattern) - Dependencies:
references/dependencies/dependency_graph.mmd(44 nodes, 0 cycles) - Usage Examples:
references/examples/quick-start.md- Real workflows from README
Code Navigation
cli/src/ โ Rust CLI (commands, flags, output)
src/ โ TypeScript daemon (browser, actions, protocol)
docs/src/app/ โ Next.js documentation site
test/ โ Test suites
Generated by Skill Seeker | Enhanced with skill-creator best practices
# README.md
agent-browser Skill
Fast headless browser automation CLI for AI agents - Claude Code Skill
๐ Quick Install
claude add ZenoWangzy/agent-browser-skill
Or download manually:
# Clone this repository
git clone https://github.com/ZenoWangzy/agent-browser-skill.git ~/.claude/skills/agent-browser
๐ What is this?
This is a Claude Code Skill for the agent-browser project - a fast headless browser automation CLI built with Rust and Node.js (Playwright).
Architecture
โโโโโโโโโโโโโโโโโโโโโโโ
โ Rust CLI โ โ Fast native binary (commands.rs, main.rs)
โ (Fast parsing) โ
โโโโโโโโโโโโฌโโโโโโโโโโโ
โ
โ
โโโโโโโโโโโโโโโโโโโโโโโ
โ Node.js Daemon โ โ Playwright browser management
โ (Browser control) โ
โโโโโโโโโโโโโโโโโโโโโโโ
Languages: TypeScript 72.7% | Rust 21.2% | JavaScript 6.1%
๐ฏ Use Cases
Browser Automation
| Scenario | Reference |
|---|---|
| ๐ท๏ธ Web Scraping | references/examples/workflows.md |
| ๐ Form Filling | references/examples/workflows.md |
| ๐ธ Screenshots/PDF | references/examples/quick-start.md |
| ๐งช E2E Testing | references/examples/workflows.md |
| ๐ช Cookie/Storage | references/examples/quick-start.md |
| ๐ Multi-tab Operations | references/examples/workflows.md |
| ๐ฑ๏ธ Element Interaction | references/examples/quick-start.md |
| โณ Wait Strategies | references/examples/workflows.md |
| ๐ Page Navigation | references/examples/quick-start.md |
| ๐ Network Mocking | references/examples/workflows.md |
Codebase Analysis
| Task | Reference |
|---|---|
| API Implementation | references/api_reference/actions.md |
| CLI Command Parsing | references/api_reference/commands.md |
| Browser Management | references/api_reference/browser.md |
| Test Patterns | references/api_reference/*.test.md |
| Configuration | references/config_patterns/ |
๐ Documentation Structure
.
โโโ SKILL.md # Main skill file for Claude Code
โโโ README.md # This file
โโโ references/
โโโ examples/
โ โโโ quick-start.md # Quick start guide with examples
โ โโโ workflows.md # Common workflows
โ โโโ integration.md # Integration guide
โโโ api_reference/ # API documentation (25+ files)
โโโ config_patterns/ # Configuration analysis
โโโ dependencies/ # Dependency graphs
โโโ patterns/ # Design patterns
๐ง Quick Links
- All Commands:
references/api_reference/actions.md(click, fill, screenshot, etc.) - Design Patterns:
references/patterns/detected_patterns.json - Dependencies:
references/dependencies/dependency_graph.mmd - Usage Examples:
references/examples/quick-start.md
๐ก Usage Example
After installing this skill, Claude Code will automatically use it when you need browser automation tasks. Example:
You: Take a screenshot of https://example.com
Claude: I'll use agent-browser to take a screenshot...
[Uses the skill to navigate and capture the page]
๐ค Contributing
This skill is generated from the agent-browser codebase. To update:
- Update the agent-browser codebase
- Re-run the skill generation
- Submit a PR to this repository
๐ License
Same as the agent-browser project.
๐ Related Links
Made with โค๏ธ for the Claude Code community
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.