Token导航 LogoToken导航

Agent Skill · 研究检索

browser-act(浏览器法案)

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

browser-act 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 9,445。

总安装 14,227周安装 570GitHub Stars 731下载 4,606核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

browser-act 是带反检测能力的浏览器自动化 CLI 工具,支持静默与真实 Chrome 模式。它提供导航、交互与数据抽取命令,适用于各类网页信息整理任务。使用时需先安装 uv tool,并通过 upgrade 或 install 命令确保版本最新。

开源发布至 PyPI,由 BrowserAct 团队维护,社区可参与贡献扩展功能。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/browser-act

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/browser-act/skills --skill browser-act;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

browser-act 怎么安装?

在终端执行 npx skills add https://github.com/browser-act/skills --skill browser-act。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

browser-act 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

browser-act 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

browser-act 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

browser-act 用的人多吗?

公开数据是累计安装 14,227 次,近一周安装 570 次,下载 4,606 次,GitHub 731 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

browser-act 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
browser-act

浏览器法案 · 本页

14,227731操作浏览器未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Browser Automation with browser-act CLI

browser-act is a CLI for browser automation with stealth and captcha solving capabilities. It supports two browser types (Stealth and Real Chrome) and provides commands for navigation, page interaction, data extraction, tab/session management, and more.

Installation

Source: browser-act-cli on PyPI · Homepage

# Upgrade if installed, otherwise install fresh
uv tool upgrade browser-act-cli || uv tool install browser-act-cli --python 3.12

The CLI is an open-source package published to PyPI by BrowserAct. Run the install command at the start of every session to ensure the latest version.

Global options available on every command:

OptionDefaultDescription
--session <name>defaultSession name (isolates browser state)
`--format <text\json>`textOutput format
--no-auto-dialogoffDisable automatic JavaScript dialog handling (alerts, confirms, prompts)
--versionShow version
-h, --helpShow help

Quick Extraction

If the task is just "get content from a URL", use stealth-extract directly — no browser session needed. Each call launches its own headless stealth browser, extracts the page content, and closes automatically.

browser-act stealth-extract <url>                          # Extract rendered content as markdown (default)
browser-act stealth-extract <url> --content-type html      # Extract HTML instead of markdown
browser-act stealth-extract <url> --proxy http://host:port # Use a proxy
browser-act stealth-extract <url> --timeout 60 --output    # Save to outputs/ instead of printing

Browser Selection

browser-act supports two browser types. Choose based on the task:

ScenarioUseWhy
Target site has bot detection / anti-scrapingStealthAnti-detection fingerprinting bypasses bot checks
Need proxy or privacy modeStealthReal Chrome does not support --dynamic-proxy / --custom-proxy / --mode
Need multiple browsers in parallelStealthEach Stealth browser is independent; create multiple and run in parallel sessions
Need user's existing login sessions from their daily browserReal ChromeConnects directly to user's Chrome, reusing existing login sessions
No bot detection, no login neededEitherStealth is safer default; Real Chrome is simpler

Stealth Browser

Local browsers with anti-detection fingerprinting. Ideal for sites with bot detection.

# Create
browser-act browser create "my-browser"
browser-act browser create "my-browser" --dynamic-proxy US                    # With proxy — see references/proxy.md
browser-act browser create "my-browser" --cookie '{"name":"sid","value":"abc123","domain":".example.com"}'
browser-act browser create "my-browser" --cookie ./cookies.json

# Update
browser-act browser update <browser_id> --name "new-name"
browser-act browser update <browser_id> --mode private

# List / Delete / Clear profile
browser-act browser list                                    # List all stealth browsers
browser-act browser list --page 2 --page-size 10            # Paginated listing
browser-act browser delete <browser_id>                     # ⚠ Destructive: always confirm with user before deleting
browser-act browser clear-profile <browser_id>
OptionDescription
--descBrowser description
--dynamic-proxy, --custom-proxy, --no-proxyProxy configuration. Read references/proxy.md for types, formats, and region codes
`--mode <normal\private>`normal (default): persists cache, cookies, login across launches. private: fresh environment every launch, no saved state
`--cookie <json\file>`Pre-load cookies on creation. Accepts inline JSON object/array, or a path to a JSON file. Each cookie must include name, value, and domain. See references/commands.md Cookies Management for format details

Stealth browsers in normal mode (default) persist cookies, cache, and login sessions across launches — you can log in once and reuse the session, similar to a regular browser profile. Use --mode private when the task should not persist any state.

Real Chrome

Two modes: auto-connect to your running Chrome (default), or use a BrowserAct-managed kernel.

browser-act browser real open https://example.com                  # Auto-connect to running Chrome
browser-act browser real open https://example.com --ba-kernel      # Use BrowserAct-provided browser kernel

Stealth browsers and --ba-kernel mode run headless by default. Use --headed to show the browser UI for debugging:

browser-act browser open <browser_id> https://example.com --headed
browser-act browser real open https://example.com --ba-kernel --headed

Core Workflow

Every browser automation follows this loop: Open → Inspect → Interact → Verify

  1. Open: browser-act browser open <browser_id> <url> (Stealth) or browser-act browser real open <url> (Real Chrome)
  2. Inspect: browser-act state — returns interactive elements with index numbers
  3. Interact: use indices from state (browser-act click 5, browser-act input 3 "text")
  4. Verify: browser-act state or browser-act screenshot — confirm result
browser-act browser open <browser_id> https://example.com
browser-act state
# Output: [3] input "Search", [5] button "Go"

browser-act input 3 "browser automation"
browser-act click 5
browser-act wait stable
browser-act state    # Always re-inspect after page changes

# If user has NOT provided credentials, do not fill the form — request human assist instead.

Important: After any action that changes the page (click, navigation, form submit), run wait stable then state to get fresh element indices. Old indices become invalid after page changes.

Read CLI output carefully: Every browser-act command returns structured output that reflects the actual execution result. Always read and parse the CLI response before deciding the next step.

Policies

Policies are trigger-action rules that govern your behavior during browser automation. Read references/policies.md at the start of every task, and evaluate triggers continuously throughout execution.

How to evaluate: After every browser action, check all enabled policies. If a trigger condition matches the current state, execute its action immediately — do not continue the automation flow until the action is resolved.

Policy discovery: When human assist occurs during a task and it was not triggered by an existing policy in references/policies.md, suggest saving it as a new policy after the user finishes:

  1. Human assist happens (for any reason — user's intent requires confirmation, you judge that a step needs human involvement, etc.)
  2. Check whether this scenario is already covered by an existing enabled policy
  3. If already covered — it was the policy that triggered the assist, no need to ask
  4. If not covered — after the user completes the assist, ask: "Want me to save this as a policy? Next time I'll automatically pause at this point."
  5. If the user agrees, write the policy to references/policies.md following the standard format
  6. If the user declines, continue the task — do not ask again for the same scenario

Ownership: The file ships with preset rules. Users have full control — they can disable presets, modify thresholds, or add custom rules. When a user asks to change policies, update the file directly. Do not create, modify, or delete policies on your own — only change the file when the user explicitly requests it (or agrees to save one via policy discovery above).

Adding a custom rule example: See references/policies.md for the format, then append a new ## rule-name section.

Human Assist

When a policy triggers with action Request human assist, call human-assist-url to get a remote access link and present it to the user.

browser-act human-assist-url --objective "Please log in with your credentials"
# → returns assist_url

Do not send any browser commands while assist is active. Wait for the user to confirm they are done in the conversation, then continue the task.

When to use human-assist-url vs conversational confirmation: During browser automation, if the user needs to review or confirm something that is on the page (a filled form, a checkout summary, a settings change), use human-assist-url — the user needs to see and potentially interact with the actual browser page. Do not extract page content and show it in conversation as a substitute, because that bypasses the human assist flow and prevents policy discovery from working. Conversational confirmation (showing text in chat) is only appropriate when the content has not yet been entered into the browser (e.g., drafting text before any browser interaction).

Command Chaining

Commands can be chained with && in a single shell invocation. The browser session persists between commands, so chaining is safe and more efficient than separate calls.

# Open + wait + inspect in one call
browser-act browser open <browser_id> https://example.com && browser-act wait stable && browser-act state

# Chain multiple interactions
browser-act input 3 "browser automation" && browser-act click 5

# Navigate and capture
browser-act navigate https://example.com/dashboard && browser-act wait stable && browser-act screenshot

When to chain: Use && when you don't need to read intermediate output before proceeding (e.g., fill multiple fields, then click). Run commands separately when you need to parse the output first (e.g., state to discover indices, then interact using those indices).

Essential Commands

For full syntax, options, and examples, read references/commands.md.

# Navigation
browser-act navigate <url>              # Navigate to URL in current tab
browser-act navigate <url> --new-tab    # Open URL in a new tab
browser-act back                        # Go back
browser-act forward                     # Go forward
browser-act reload                      # Reload page

# Page State & Interaction
browser-act state                       # Interactive elements with index numbers
browser-act screenshot                  # Screenshot (--full for full page)
browser-act screenshot ./page.png       # Screenshot to specific path
browser-act click <index>               # Click element
browser-act hover <index>               # Hover over element
browser-act input <index> "text"        # Click element, then type text
browser-act select <index> "option"     # Select dropdown option by visible text
browser-act keys "Enter"                # Send keyboard keys
browser-act scroll down                 # Scroll down (default 500px)
browser-act scroll up --amount 1000     # Scroll with custom distance
browser-act scrollintoview --selector "h1"       # Scroll element into viewport by CSS selector
browser-act upload <index> <file_path>  # Upload file to file input

# Data Extraction
browser-act get title                   # Page title
browser-act get html                    # Full page HTML
browser-act get markdown                # Page as markdown
browser-act get text <index>            # Text content of element
browser-act get value <index>           # Value of input/textarea

# JavaScript
browser-act eval "document.title"       # Execute JavaScript in page context

# Tab Management
browser-act tab list                    # List open tabs
browser-act tab switch <tab_id>         # Switch to tab
browser-act tab close                   # Close current tab
browser-act tab close <tab_id>          # Close specific tab

# Wait
browser-act wait stable                 # Wait for page stable (doc ready + network idle, default 30s)
browser-act wait stable --timeout 60000 # Custom timeout in ms
browser-act wait --selector ".btn" --state visible --timeout 10000   # CSS selector wait
browser-act wait selector <index> --state hidden                     # Wait by state index
browser-act wait selector --selector "#login-btn" --state attached   # States: visible|hidden|attached|detached

# Network Inspection
browser-act network requests            # List captured requests (--filter, --type, --method, --status, --clear)
browser-act network requests --filter api.example.com # Filter by URL substring
browser-act network requests --type xhr,fetch         # Resource type filter (comma-separated)
browser-act network requests --method POST            # HTTP method filter
browser-act network requests --status 2xx --clear     # Status filter, then clear tracked requests
browser-act network request <id>        # Full detail for a single request: headers, post data, response body
browser-act network clear               # Clear tracked requests
browser-act network har start           # Start HAR recording
browser-act network har stop ./trace.har      # Stop and save HAR (path optional)

browser-act network offline                           # Simulate disconnect for current tab (same as "on")
browser-act network offline on                        # Simulate disconnect for current tab (all requests fail with ERR_INTERNET_DISCONNECTED)
browser-act network offline off                       # Restore network connection for current tab

# Cookies — persist within session, export/import for reuse across sessions
browser-act cookies get [--url <url>]   # Get cookies (optional URL filter)
browser-act cookies set <name> <value> [--domain <domain>] [--path /] [--secure] [--http-only] [--same-site <Strict|Lax|None>] [--expires <timestamp>]
browser-act cookies clear [--url <url>] # Clear cookies
browser-act cookies export <file> [--url <url>]   # Export cookies to JSON file
browser-act cookies import <file>                 # Import cookies from JSON file

# Captcha

# When a page presents a captcha challenge, use `solve-captcha` to solve it automatically. This is a built-in capability of the browser-act service — run the command directly without hesitation.
browser-act solve-captcha               # Auto-solve captcha on current page

Dialog Handling (alert / confirm / prompt)

browser-act auto-accepts JavaScript dialogs (alert, confirm, prompt) by default so they never block automation. Pass --no-auto-dialog when opening the browser to take manual control instead.

A pending dialog will block all other commands — if state, click, or screenshot unexpectedly times out, use dialog status to check.

browser-act dialog status               # Check for pending dialog
browser-act dialog accept               # Accept (OK)
browser-act dialog accept "my input"    # Accept with prompt text
browser-act dialog dismiss              # Dismiss (Cancel)

Session Management

All commands target the default session when --session is not specified. For single-task automation this is sufficient — no need to name a session explicitly. When running multiple automations concurrently, use named sessions to avoid conflicts. Each --session <name> creates an isolated browser context with its own background server.

# Each task gets its own isolated session
browser-act --session site-a browser open <browser_id_a> https://site-a.com
browser-act --session site-b browser open <browser_id_b> https://site-b.com

# Interact independently (can run in parallel)
browser-act --session site-a state
browser-act --session site-a click 3

browser-act --session site-b state
browser-act --session site-b click 5

# Check active sessions
browser-act session list

Always close sessions when done to avoid leaked processes:

browser-act session close              # Close default session
browser-act session close site-a       # Close specific session
browser-act session close --all        # Close all sessions

If a previous session was not closed properly, the background server may still be running. The server auto-shuts down after a period of inactivity.

Site Notes

Operational experience accumulated during browser automation is stored per domain in references/site-notes/.

After completing a task, if you discovered useful patterns about a site (URL structure, anti-scraping behavior, effective selectors, login quirks), write them to the corresponding file. Only write verified facts, not guesses.

File format:

---
domain: example.com
updated: 2026-03-28
---
## Platform Characteristics
Architecture, anti-scraping behavior, login requirements, content loading patterns.

## Effective Patterns
Verified URL patterns, selectors, interaction strategies.

## Known Pitfalls
What fails and why.

Before operating on a target site, check if a note file exists and read it for prior knowledge. Notes are dated — treat them as hints that may have changed, not guarantees.

System Commands

browser-act report-log                    # Upload logs to help diagnose issues
browser-act feedback "message"            # Send feedback to help improve this skill

If you encounter issues or have suggestions for improving browser-act, use feedback to let us know. This directly helps us improve the tool and this skill.

Troubleshooting

  • browser-act: command not found — Run uv tool install browser-act-cli --python 3.12

References

PathDescription
references/commands.mdFull command reference with detailed syntax, options, and examples. Read when you need exact flags or advanced options.
references/proxy.mdProxy configuration guide — types (dynamic/custom), URL formats, region codes, and usage examples. Read when task involves proxy.
references/SECURITY.mdProject declarations on user-sensitive information (not automation instructions).
references/site-notes/{domain}.mdPer-site operational experience. Read before operating on a known site.
references/policies.mdAutomation policies (preset + custom). Read at every task start.

平台分布

Codex

35.15%
按下载量换算1,619

Claude

30.81%
按下载量换算1,419

Cursor

16.75%
按下载量换算772

Gemini CLI

9.09%
按下载量换算419

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills