Token导航 LogoToken导航

Agent Skill · 研究检索

browser-automation(浏览器自动化)

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

browser-automation 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 5,101。

总安装 27,886周安装 752GitHub Stars 公开资料未说明下载 8,622核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add browserbase/agent-browse --skill "browser-automation"

这个 Skill 是做什么的

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

browser-automation 实现基于 Browserbase 的无头浏览器自动化。适用于 Codex、Claude 等平台中需要稳定浏览器环境的抓取任务。支持页面导航、表单填写与内容提取等操作。需配置 Browserbase API 密钥以启用远程浏览器服务。按使用量计费,注意控制请求频率以降低成本。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add browserbase/agent-browse --skill "browser-automation";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

browser-automation 怎么安装?

在终端执行 npx skills add browserbase/agent-browse --skill "browser-automation"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

browser-automation 支持哪些 AI 工具?

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

browser-automation 需要什么权限?

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

browser-automation 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

browser-automation 用的人多吗?

公开数据是累计安装 27,886 次,近一周安装 752 次,下载 8,622 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

browser-automation 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 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-automation

浏览器自动化 · 本页

27,886—接触敏感数据MIT未收录

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

SKILL.md 原文

Browser Automation

Automate browser interactions using Stagehand CLI with Claude. This skill provides natural language control over a Chrome browser through command-line tools for navigation, interaction, data extraction, and screenshots.

Overview

This skill uses a CLI-based approach where Claude Code calls browser automation commands via bash. The browser stays open between commands for faster sequential operations and preserves browser state (cookies, sessions, etc.).

Setup Verification

IMPORTANT: Before using any browser commands, you MUST check setup.json in this directory.

First-Time Setup Check

  1. Read setup.json (located in .claude/skills/browser-automation/setup.json)
  2. Check setupComplete field:

- If true: All prerequisites are met, proceed with browser commands - If false: Setup required - follow the steps below

If Setup is Required (setupComplete: false)

Run these commands in the plugin directory:

# 1. Install dependencies and build (REQUIRED)
# This automatically builds TypeScript
npm install
# or: pnpm install
# or: bun install

# 2. Link the browser command globally (REQUIRED)
npm link

# 3. Configure API key (REQUIRED)
# Option 1 (RECOMMENDED): Export in your terminal
export ANTHROPIC_API_KEY="your-api-key-here"

# Option 2: Or use .env file
cp .env.example .env
# Then edit .env and add: ANTHROPIC_API_KEY="your-api-key-here"

# 4. Verify Chrome is installed
# Chrome should be at standard location for your OS

# 5. Test the installation
browser navigate https://example.com

# 6. If test succeeds, update setup.json
# Set all "installed"/"configured" fields to true
# Set "setupComplete" to true

Prerequisites Summary

  • ✅ Google Chrome installed on your system
  • ✅ Node.js dependencies installed and TypeScript built (npm install runs build automatically)
  • ✅ Browser command globally available (npm link creates the global symlink)
  • ✅ Anthropic API key configured (exported as ANTHROPIC_API_KEY environment variable or in .env file)

DO NOT attempt to use browser commands if setupComplete: false in setup.json. Guide the user through setup first.

Available Commands

Navigate to URLs

browser navigate <url>

When to use: Opening any website, loading a specific URL, going to a web page.

Example usage:

  • browser navigate https://example.com
  • browser navigate https://news.ycombinator.com

Output: JSON with success status, message, and screenshot path

Interact with Pages

browser act "<action>"

When to use: Clicking buttons, filling forms, scrolling, selecting options, typing text.

Example usage:

  • browser act "click the Sign In button"
  • browser act "fill in the email field with test@example.com"
  • browser act "scroll down to the footer"
  • browser act "type 'laptop' in the search box and press enter"

Important: Be as specific as possible - details make a world of difference. When filling fields, you don't need to combine 'click and type'; the tool will perform a fill similar to Playwright's fill function.

Output: JSON with success status, message, and screenshot path

Extract Data

browser extract "<instruction>" ['{"field": "type"}']

When to use: Scraping data, getting specific information, collecting structured content.

Schema format (optional): JSON object where keys are field names and values are types:

  • "string" for text
  • "number" for numeric values
  • "boolean" for true/false values

Note: The schema parameter is optional. If omitted or if schema validation fails, extraction will proceed without type validation.

Example usage:

  • browser extract "get the product title and price" '{"title": "string", "price": "number"}'
  • browser extract "get all article headlines" '{"headlines": "string"}'
  • browser extract "get the page title" (no schema)

Output: JSON with success status, extracted data, and screenshot path

Discover Elements

browser observe "<query>"

When to use: Understanding page structure, finding what's clickable, discovering form fields.

Example usage:

  • browser observe "find all clickable buttons"
  • browser observe "find all form fields"
  • browser observe "find all navigation links"

Output: JSON with success status, discovered elements, and screenshot path

Take Screenshots

browser screenshot

When to use: Visual verification, documenting page state, debugging, creating records.

Notes:

  • Screenshots are saved to the plugin directory's agent/browser_screenshots/ folder
  • Images larger than 2000x2000 pixels are automatically resized
  • Filename includes timestamp for uniqueness

Output: JSON with success status and screenshot path

Clean Up

browser close

When to use: After completing all browser interactions, to free up resources.

Output: JSON with success status and message

Browser Behavior

Persistent Browser: The browser stays open between commands for faster sequential operations and to preserve browser state (cookies, sessions, etc.).

Reuse Existing: If Chrome is already running on port 9222, it will reuse that instance.

Minimized Launch: Chrome opens off-screen (position -9999,-9999) to avoid disrupting workflow.

Safe Cleanup: The browser only closes when you explicitly call the close command.

Best Practices

  1. Always navigate first: Before interacting with a page, navigate to the URL
  2. 📸 Always view screenshots: After each command (navigate, act, extract, observe), use the Read tool to view the screenshot and verify the command worked correctly
  3. Use natural language: Describe actions as you would instruct a human
  4. Extract with clear schemas: Define field names and types explicitly in JSON
  5. Handle errors gracefully: Check the success field in JSON output; if an action fails, view the screenshot and try using observe to understand the page better
  6. Close when done: Always clean up browser resources after completing tasks
  7. Be specific: Use precise selectors in natural language ("the blue Submit button" vs "the button")
  8. Chain commands: Run multiple commands sequentially without reopening the browser

Common Patterns

Simple browsing task

browser navigate https://example.com
browser act "click the login button"
browser screenshot
browser close

Data extraction task

browser navigate https://example.com/products
browser act "wait for page to load"
browser extract "get all products" '{"name": "string", "price": "number"}'
# Or without schema:
# browser extract "get the page content"
browser close

Multi-step interaction

browser navigate https://example.com/login
browser act "fill in email with user@example.com"
browser act "fill in password with mypassword"
browser act "click the submit button"
browser screenshot
browser close

Debugging workflow

browser navigate https://example.com
browser screenshot
browser observe "find all buttons"
browser act "click the specific button"
browser screenshot
browser close

Troubleshooting

Page not loading: Wait a few seconds after navigation before acting. You can explicitly: browser act "wait for the page to fully load"

Element not found: Use observe to discover what elements are actually available on the page

Action fails: Be more specific in natural language description. Instead of "click the button", try "click the blue Submit button in the form"

Screenshots missing: Check the plugin directory's agent/browser_screenshots/ folder for saved files

Chrome not found: Install Google Chrome or the CLI will show an error with installation instructions

Port 9222 in use: Another Chrome debugging session is running. Close it or wait for timeout

For detailed examples, see EXAMPLES.md. For API reference and technical details, see REFERENCE.md.

Dependencies

To use this skill, install these dependencies only if they aren't already present:

npm install
# or
pnpm install
# or
bun install

平台分布

Claude Code

28.21%
按下载量换算2,432

Cursor

25.32%
按下载量换算2,183

OpenCode

20.01%
按下载量换算1,725

Gemini CLI

11.78%
按下载量换算1,016

Codex

7.98%
按下载量换算688

Antigravity

3.44%
按下载量换算297

安全审计

暂无安全审计结果可展示。

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills