/chrome-automation
网页开发工程师与运营专员在需要自动化现有 Chrome 浏览器时必用!通过 CDP 协议无缝接管当前浏览器,自动配置环境并实时可视化执行任务。完美保留登录状态,一键完成复杂网页自动化流程,让繁琐操作自动化。
Claude Code
$ npx -y skills add anbeime/skill --skill chrome-automation --agent claude-code
Codex
$ npx skills add anbeime/skill --skill chrome-automation -a codex -y
Cursor
$ npx skills add anbeime/skill --skill chrome-automation -a cursor -y
Gemini CLI
$ npx skills add anbeime/skill --skill chrome-automation -a gemini-cli -y
GitHub Copilot
$ npx skills add anbeime/skill --skill chrome-automation -a github-copilot -y
OpenCode
$ npx skills add anbeime/skill --skill chrome-automation -a opencode -y
Windsurf
$ npx skills add anbeime/skill --skill chrome-automation -a windsurf -y
SKILL.md
chrome-automation.SKILL.mdname: chrome-automation
description: 网页开发工程师与运营专员在需要自动化现有 Chrome 浏览器时必用!通过 CDP 协议无缝接管当前浏览器,自动配置环境并实时可视化执行任务。完美保留登录状态,一键完成复杂网页自动化流程,让繁琐操作自动化。
allowed-tools: Bash(*)
display_name: 浏览器自动化
version: 1.0.0
author: c3b57459-6405-4180-adea-9dcff7bb7e1c
examples:
- "把每天登录签到做成可复用的浏览器自动化"
- "录制这个表单填写流程并定时执行"
Chrome Browser Automation with Real-time Control
Control the user's Google Chrome browser using agent-browser connected via Chrome DevTools Protocol (CDP). All actions are visible in real-time in the user's browser window.
⚠️ CRITICAL: Automatic Installation & Dependency Check
**BEFORE using this skill, ALWAYS run the auto-installation check:**
This skill automatically checks and installs all required dependencies without user confirmation. The installation process verifies:
- agent-browser repository and binary
- Node.js and pnpm
- Playwright Chromium
- Rust toolchain (cargo)
- Native binary compilation
**Auto-installation workflow:**
# Mac: Run auto-install script
bash ~/.claude/skills/chrome-automation/scripts/auto-install-mac.sh
# Windows: Run auto-install script (PowerShell)
powershell -ExecutionPolicy Bypass -File "$HOME\.claude\skills\chrome-automation\scripts\auto-install-windows.ps1"
**The script will:** 1. Check if agent-browser binary exists and works 2. Install missing dependencies automatically (pnpm, Rust, etc.) 3. Clone repository if not present 4. Build native binary with proper Rust toolchain 5. Verify installation success
**Critical rules:**
- ❌ DO NOT fall back to using built-in browser tools (browser_use_desktop)
- ✅ MUST run auto-install script before any browser automation
- ✅ Only proceed with browser automation AFTER successful installation
- ✅ Script handles all dependency checks automatically
**Why agent-browser is required:**
- Provides real-time visual feedback in user's actual Chrome browser
- Allows user to see and interact with automation in progress
- Offers precise element selection and interaction capabilities
- Built-in browser tools are NOT a substitute for this skill's functionality
Quick Start
First-time setup (automatic)
**Run the auto-install script first:**
# Mac
bash ~/.claude/skills/chrome-automation/scripts/auto-install-mac.sh
# Windows (PowerShell)
powershell -ExecutionPolicy Bypass -File "$HOME\.claude\skills\chrome-automation\scripts\auto-install-windows.ps1"
The script automatically handles:
- Repository cloning
- Dependency installation (pnpm, Playwright)
- Rust toolchain setup
- Native binary compilation
Connect and control Chrome
**IMPORTANT: Use the start-chrome script to preserve login states across sessions**
# Mac: Start Chrome with persistent profile (RECOMMENDED)
# This preserves your login states, cookies, and settings
bash ~/.claude/skills/chrome-automation/scripts/start-chrome-mac.sh
# Windows: Start Chrome with persistent profile (PowerShell)
powershell -ExecutionPolicy Bypass -File "$HOME\.claude\skills\chrome-automation\scripts\start-chrome-windows.ps1"
# Use agent-browser with --cdp flag
cd /Users/jyxc-dz-0100272/Documents/agent-browser
AGENT_BROWSER_HOME=/Users/jyxc-dz-0100272/Documents/agent-browser \
./bin/agent-browser --cdp 9222 snapshot -i
**What the start-chrome script does:** 1. First run: Creates a dedicated automation profile at `~/Library/Application Support/Google/Chrome-Automation` 2. First run: Imports your existing Chrome configuration (login states, cookies, settings) 3. Subsequent runs: Uses the existing automation profile - all your logins are preserved 4. You only need to log in once - it will be remembered for future sessions
Core Workflow
**CRITICAL: Always show browser state to user after each significant action using screenshots.**
1. **Connect**: Ensure Chrome running with remote debugging port 9222 2. **Navigate**: Open pages using `--cdp 9222` flag 3. **Snapshot**: Get interactive elements with `snapshot -i` 4. **Interact**: Use element refs (@e1, @e2, etc.) 5. **Screenshot**: Capture state and show to user 6. **Report**: Describe what's visible in browser
Standard operation pattern
# Set path variables
export AB_HOME=/Users/jyxc-dz-0100272/Documents/agent-browser
cd $AB_HOME
# Navigate
AGENT_BROWSER_HOME=$AB_HOME ./bin/agent-browser --cdp 9222 open https://example.com
sleep 2
# Get interactive elements
AGENT_BROWSER_HOME=$AB_HOME ./bin/agent-browser --cdp 9222 snapshot -i
# Screenshot to show user
AGENT_BROWSER_HOME=$AB_HOME ./bin/agent-browser --cdp 9222 screenshot /tmp/state.png
# Interact
AGENT_BROWSER_HOME=$AB_HOME ./bin/agent-browser --cdp 9222 fill @e1 "text"
AGENT_BROWSER_HOME=$AB_HOME ./bin/agent-browser --cdp 9222 press Enter
# Capture result
sleep 2
AGENT_BROWSER_HOME=$AB_HOME ./bin/agent-browser --cdp 9222 screenshot /tmp/result.png
Installation & Setup
Automatic Installation (RECOMMENDED)
**Always use the auto-install script - it handles all dependencies automatically:**
Mac Installation
# Run auto-install script
bash ~/.claude/skills/chrome-automation/scripts/auto-install-mac.sh
**What it does:** 1. Checks if agent-browser binary exists and works 2. Clones repository if missing 3. Installs Node.js dependencies (pnpm) 4. Installs Playwright Chromium 5. Checks/installs Rust toolchain (cargo, rustup) 6. Sets up stable Rust toolchain if needed 7. Builds native binary with `npm run build:native` 8. Verifies installation success
**Requirements:**
- Node.js (will notify if missing)
- Git (for cloning repository)
- Internet connection
Windows Installation
# Run auto-install script (PowerShell)
powershell -ExecutionPolicy Bypass -File "$HOME\.claude\skills\chrome-automation\scripts\auto-install-windows.ps1"
**What it does:** 1. Checks if agent-browser binary exists and works 2. Clones repository if missing 3. Installs Node.js dependencies (pnpm) 4. Installs Playwright Chromium 5. Downloads and installs Rust toolchain if needed 6.
Read more
name: chrome-automation description: 网页开发工程师与运营专员在需要自动化现有 Chrome 浏览器时必用!通过 CDP 协议无缝接管当前浏览器,自动配置环境并实时可视化执行任务。完美保留登录状态,一键完成复杂网页自动化流程,让繁琐操作自动化。 allowed-tools: Bash(*) display_name: 浏览器自动化 version: 1.0.0 author: c3b57459-6405-4180-adea-9dcff7bb7e1c examples: - "把每天登录签到做成可复用的浏览器自动化" - "录制这个表单填写流程并定时执行"
Chrome Browser Automation with Real-time Control
Control the user's Google Chrome browser using agent-browser connected via Chrome DevTools Protocol (CDP). All actions are visible in real-time in the user's browser window.
⚠️ CRITICAL: Automatic Installation & Dependency Check
**BEFORE using this skill, ALWAYS run the auto-installation check:**
This skill automatically checks and installs all required dependencies without user confirmation. The installation process verifies:
- agent-browser repository and binary
- Node.js and pnpm
- Playwright Chromium
- Rust toolchain (cargo)
- Native binary compilation
**Auto-installation workflow:**
# Mac: Run auto-install script bash ~/.claude/skills/chrome-automation/scripts/auto-install-mac.sh # Windows: Run auto-install script (PowerShell) powershell -ExecutionPolicy Bypass -File "$HOME\.claude\skills\chrome-automation\scripts\auto-install-windows.ps1"
**The script will:** 1. Check if agent-browser binary exists and works 2. Install missing dependencies automatically (pnpm, Rust, etc.) 3. Clone repository if not present 4. Build native binary with proper Rust toolchain 5. Verify installation success
**Critical rules:**
- ❌ DO NOT fall back to using built-in browser tools (browser_use_desktop)
- ✅ MUST run auto-install script before any browser automation
- ✅ Only proceed with browser automation AFTER successful installation
- ✅ Script handles all dependency checks automatically
**Why agent-browser is required:**
- Provides real-time visual feedback in user's actual Chrome browser
- Allows user to see and interact with automation in progress
- Offers precise element selection and interaction capabilities
- Built-in browser tools are NOT a substitute for this skill's functionality
Quick Start
First-time setup (automatic)
**Run the auto-install script first:**
# Mac bash ~/.claude/skills/chrome-automation/scripts/auto-install-mac.sh # Windows (PowerShell) powershell -ExecutionPolicy Bypass -File "$HOME\.claude\skills\chrome-automation\scripts\auto-install-windows.ps1"
The script automatically handles:
- Repository cloning
- Dependency installation (pnpm, Playwright)
- Rust toolchain setup
- Native binary compilation
Connect and control Chrome
**IMPORTANT: Use the start-chrome script to preserve login states across sessions**
# Mac: Start Chrome with persistent profile (RECOMMENDED) # This preserves your login states, cookies, and settings bash ~/.claude/skills/chrome-automation/scripts/start-chrome-mac.sh # Windows: Start Chrome with persistent profile (PowerShell) powershell -ExecutionPolicy Bypass -File "$HOME\.claude\skills\chrome-automation\scripts\start-chrome-windows.ps1" # Use agent-browser with --cdp flag cd /Users/jyxc-dz-0100272/Documents/agent-browser AGENT_BROWSER_HOME=/Users/jyxc-dz-0100272/Documents/agent-browser \ ./bin/agent-browser --cdp 9222 snapshot -i
**What the start-chrome script does:** 1. First run: Creates a dedicated automation profile at `~/Library/Application Support/Google/Chrome-Automation` 2. First run: Imports your existing Chrome configuration (login states, cookies, settings) 3. Subsequent runs: Uses the existing automation profile - all your logins are preserved 4. You only need to log in once - it will be remembered for future sessions
Core Workflow
**CRITICAL: Always show browser state to user after each significant action using screenshots.**
1. **Connect**: Ensure Chrome running with remote debugging port 9222 2. **Navigate**: Open pages using `--cdp 9222` flag 3. **Snapshot**: Get interactive elements with `snapshot -i` 4. **Interact**: Use element refs (@e1, @e2, etc.) 5. **Screenshot**: Capture state and show to user 6. **Report**: Describe what's visible in browser
Standard operation pattern
# Set path variables export AB_HOME=/Users/jyxc-dz-0100272/Documents/agent-browser cd $AB_HOME # Navigate AGENT_BROWSER_HOME=$AB_HOME ./bin/agent-browser --cdp 9222 open https://example.com sleep 2 # Get interactive elements AGENT_BROWSER_HOME=$AB_HOME ./bin/agent-browser --cdp 9222 snapshot -i # Screenshot to show user AGENT_BROWSER_HOME=$AB_HOME ./bin/agent-browser --cdp 9222 screenshot /tmp/state.png # Interact AGENT_BROWSER_HOME=$AB_HOME ./bin/agent-browser --cdp 9222 fill @e1 "text" AGENT_BROWSER_HOME=$AB_HOME ./bin/agent-browser --cdp 9222 press Enter # Capture result sleep 2 AGENT_BROWSER_HOME=$AB_HOME ./bin/agent-browser --cdp 9222 screenshot /tmp/result.png
Installation & Setup
Automatic Installation (RECOMMENDED)
**Always use the auto-install script - it handles all dependencies automatically:**
Mac Installation
# Run auto-install script bash ~/.claude/skills/chrome-automation/scripts/auto-install-mac.sh
**What it does:** 1. Checks if agent-browser binary exists and works 2. Clones repository if missing 3. Installs Node.js dependencies (pnpm) 4. Installs Playwright Chromium 5. Checks/installs Rust toolchain (cargo, rustup) 6. Sets up stable Rust toolchain if needed 7. Builds native binary with `npm run build:native` 8. Verifies installation success
**Requirements:**
- Node.js (will notify if missing)
- Git (for cloning repository)
- Internet connection
Windows Installation
# Run auto-install script (PowerShell) powershell -ExecutionPolicy Bypass -File "$HOME\.claude\skills\chrome-automation\scripts\auto-install-windows.ps1"
**What it does:** 1. Checks if agent-browser binary exists and works 2. Clones repository if missing 3. Installs Node.js dependencies (pnpm) 4. Installs Playwright Chromium 5. Downloads and installs Rust toolchain if needed 6.
收录最全、更新最快的AI Agent技能库,涵盖文档处理、内容创作、编程开发、机器学习、自动化工作流等多个领域的精选技能包。 🎁 知易多模型知识管家 · 免费试用预约 — 20+ 模型自由切换、技能市场、四色卡片知识库,留邮箱锁定免费试用名额,每周再收一份知易AI周刊。
Other skills on skill.
More skills from other plugins.
karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
agent-builder
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…
Questions about chrome-automation.
- Which coding agents can use chrome-automation?
- chrome-automation installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

