Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

agent-browserAgent 浏览器自动化

Agent Skill

agent-browser 用于处理浏览器自动化、网页检查和页面信息提取,适合在 Codex、Claude、Cursor、Gemini CLI 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

371

周安装

15

GitHub Stars

12

下载量

116
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-browser(Agent 浏览器自动化)
来源仓库:https://github.com/calebdane7/agent-browser
仓库路径:skills/agent-browser
安装命令:
npx skills add https://github.com/calebdane7/agent-browser --skill agent-browser
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/calebdane7/agent-browser --skill agent-browser

简介

agent-browser 提供基于 Rust 二进制文件的浏览器自动化能力,支持 Chrome 实例启动与页面交互。

  • 适用于网页检查、前端流程验证与信息提取任务。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,必须先启动 start-chrome-debug。
  • 支持 WSL 与原生 Linux 平台,使用独立配置文件保存 cookies。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Agent Browser

CLI browser automation via agent-browser (Rust binary, v0.13.0).

Step 0: Launch Chrome (MANDATORY — Run Before Anything Else)

Before ANY agent-browser command, run:

start-chrome-debug

This detects the platform (WSL or native Linux), launches Chrome with a persistent profile (saved cookies — Google, Stripe, etc.), and connects agent-browser on port 9222. If Chrome is already running correctly, it reconnects instantly.

  • WSL: Launches Windows Chrome via PowerShell with the ChromeCDP profile
  • Native Linux: Launches google-chrome/chromium with ~/.config/agent-browser-chrome profile

One-time sign-in: ChromeCDP is a dedicated automation profile (required by Chrome 136+ security — the default profile cannot use CDP). Sign in to Google/Stripe/etc. once in the CDP Chrome window. Cookies persist across all future sessions.

CRITICAL RULES:

  • NEVER launch Chrome manually (google-chrome, chromium, chrome.exe). Always use start-chrome-debug.
  • NEVER launch a separate browser instance. agent-browser manages its own CDP connection.
  • NEVER run agent-browser connect manuallystart-chrome-debug handles this.
  • If start-chrome-debug reports an error, STOP and tell the user.

Environment (Pre-configured)

Environment variables in .bashrc — do not modify:

  • AGENT_BROWSER_HEADED=1 — visible Chrome window, user can interject anytime
  • AGENT_BROWSER_AUTO_CONNECT=1 — auto-discovers running Chrome CDP
  • AGENT_BROWSER_SESSION="claude-${PPID}" — each Claude session gets its own isolated daemon/tab
  • AGENT_BROWSER_ARGS — anti-bot-detection flags

The persistent Chrome profile has saved cookies. After running start-chrome-debug, no login needed.

Phase 0: Research the UI (MANDATORY — No Exceptions)

Before opening ANY website with agent-browser open, you MUST research the current UI first. Your training data is stale. UIs change constantly. Research first, click second.

  1. WebSearch the current UI flow — search for "[site name] [task] steps [current year]" or "[site name] UI layout [current year]"

- Example: "Google Ads create conversion action steps 2026" - Example: "Stripe connect webhook endpoint setup 2026" - Example: "Amazon order flow current layout 2026" - Example: "threads.com compose new post UI 2026"

  1. Document the expected navigation path before opening the browser:

- Where target buttons/links/forms are in the CURRENT UI - What the current navigation path looks like - Any recent UI redesigns or layout changes - What form fields to fill and with what values - What confirmation screens to expect

  1. Then execute using the Core Workflow below, following the researched path step-by-step

NO EXCEPTIONS. Not for "simple" sites. Not for "your own" sites. Not for sites you "already know." Your knowledge is stale. This is a hard gate — skip it and you WILL brute-force through wrong clicks and waste tokens.

Core Workflow

# Navigate + wait + get element refs
agent-browser open URL && agent-browser wait --load networkidle && agent-browser snapshot -i --compact

# Interact using @refs from snapshot
agent-browser click @e5
agent-browser fill @e3 "text"

# Re-snapshot after DOM changes (refs become stale)
agent-browser snapshot -i --compact

Chain commands with && for speed. Use separate calls when you need to parse output before next step.

Session Isolation (Automatic)

Each Claude Code session gets its own isolated Chrome tab via AGENT_BROWSER_SESSION="claude-${PPID}". Multiple sessions NEVER share tabs — each daemon creates a fresh target on connect. No configuration needed.

Parallel Verification (Multi-Tab)

Use tab new to open multiple pages simultaneously within one session:

# Open multiple tabs for parallel checks
agent-browser tab new https://site.com/page1 && agent-browser tab new https://site.com/page2

# List all tabs (shows index numbers)
agent-browser tab list

# Switch to tab by index, then screenshot/snapshot
agent-browser tab 0 && agent-browser screenshot page1.png
agent-browser tab 1 && agent-browser screenshot page2.png

# Clean up when done
agent-browser tab close 1 && agent-browser tab close 0

Or use ab-parallel for bulk checks:

ab-parallel check https://site.com/page1 https://site.com/page2

When to use tabs vs sequential open:

  • Sequential open: Same tab, navigating through a flow (login → dashboard → settings)
  • tab new: Parallel verification — checking multiple independent pages without losing state

Testing / Verification Workflow

When user says "test" or "verify" a feature:

  1. Act as a real user — click, type, fill forms (not programmatic tests)
  2. Trigger the action — submit form, click button, complete flow
  3. Verify downstream effects:

- Check the database (SSH + SQL query) - Check other pages where the change should appear - Use ab-parallel for multi-page checks

  1. Take screenshots as evidence at each step
  2. Check consoleagent-browser errors must be clean

Example: fill checkout email + submit -> verify Purchase row in DB -> verify success page -> verify admin dashboard updated.

Gate Requirements

The hook system tracks agent-browser calls. Gate clears when ALL met:

  • Interacted (click/type/fill — not just navigate)
  • Visited 2+ pages
  • agent-browser errors returned clean
  • agent-browser screenshot taken

Key Commands

CommandPurpose
open <url>Navigate
snapshot -i --compactAccessibility tree with @refs, compact (fewer tokens)
click @e1Click element
fill @e1 "text"Clear + type
type @e1 "text"Append text
screenshot --format jpeg --quality 80Capture page (JPEG = 3-5x smaller than PNG)
errorsCheck console errors
get text @e1Extract text
get urlCurrent URL
eval <js>Run JavaScript
wait --load networkidleWait for page load
tab new [url]Open new tab (optionally navigate)
tab listList all tabs with index numbers
tab <n>Switch to tab by index
tab close [n]Close tab (current or by index)

Multi-Agent Coordination

Use ab-tasks for inter-session coordination (no daemon needed — pure file I/O):

Coordinator + Workers Pattern

CRITICAL: Each worker MUST use its own session. Without this, all workers fight over one tab.

# Coordinator creates tasks
ab-tasks create "Check Amazon seller rating for WidgetCo"
ab-tasks create "Message Alibaba supplier about bulk pricing"
ab-tasks create "Scrape competitor pricing on eBay"

Each worker agent must set a unique session before any browser commands:

# Worker sets unique session (gets its own independent Chrome tab)
export AGENT_BROWSER_SESSION="worker-1"
ab-tasks claim                                    # Claims next pending task
agent-browser open <url-from-task>                # Own tab, no conflicts
agent-browser snapshot -i --compact
# ... do the work ...
ab-tasks complete <id> "result data"              # Mark done with result
ab-tasks share worker1_finding "key insight"       # Share with other workers
agent-browser close                                # Clean up own session

Workers run in TRUE parallel — each has its own daemon, its own Chrome tab, zero interference.

Fast Execution: ab-workers

For mechanical tasks (open URL, get data, report back), use ab-workers instead of AI agents — 3x faster, zero AI overhead:

# 1. Create tasks
ab-tasks create "Get title from https://example.com/page1"
ab-tasks create "Get title from https://example.com/page2"
ab-tasks create "Get title from https://example.com/page3"

# 2. Execute all in parallel (5 workers default)
ab-workers           # Claims all pending tasks, runs in parallel bash workers
ab-workers 10        # Use up to 10 parallel workers

ab-workers auto-claims tasks, opens each URL in its own session/tab, gets the title, completes the task, and shares results. Use AI agents only when the task needs reasoning (form filling, navigation decisions, data interpretation).

# Coordinator checks progress and collects results
ab-tasks list                                      # See all tasks + status
ab-tasks shared                                    # Read results from all workers

Shared State

ab-tasks share <key> <value>    # Write (scoped to AGENT_BROWSER_SESSION)
ab-tasks shared [key]           # Read across all sessions

agent-browser connects directly to Chrome via CDP. No other browser engines.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.5%
按下载量换算38

Claude

32.65%
按下载量换算38

Cursor

17.73%
按下载量换算21

Gemini CLI

8.36%
按下载量换算10

安全审计

Gen Agent Trust Hub

未通过

Socket

可疑

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills