browserbase / skills
Browserbase / Skills
Browserbase Skills A set of skills for enabling Claude Code to work with Browserbase through browser automation and the official bb CLI. Browserbase Skills 这是一套旨在让 Claude Code 通过浏览器自动化和官方 bb CLI 与 Browserbase 协同工作的技能集。
Skills This plugin includes the following skills (see skills/ for details): 技能 该插件包含以下技能(详情请参阅 skills/ 目录):
- browser: Automate web browser interactions via CLI commands — supports remote Browserbase sessions with anti-bot stealth, CAPTCHA solving, and residential proxies. browser:通过 CLI 命令自动化网页浏览器交互——支持带有反爬虫隐身、验证码破解和住宅代理的远程 Browserbase 会话。
- browserbase-cli: Use the official bb CLI for Browserbase Functions and platform API workflows including sessions, projects, contexts, extensions, fetch, and dashboard functions. Deploy serverless browser automation to Browserbase cloud using the bb CLI. browserbase-cli:使用官方 bb CLI 进行 Browserbase 函数和平台 API 工作流操作,包括会话、项目、上下文、扩展、抓取和仪表板功能。使用 bb CLI 将无服务器浏览器自动化部署到 Browserbase 云端。
- site-debugger: Diagnose and fix failing browser automations — analyzes bot detection, selectors, timing, auth, and captchas, then generates a tested site playbook. site-debugger:诊断并修复失败的浏览器自动化任务——分析机器人检测、选择器、时序、身份验证和验证码,然后生成经过测试的站点操作手册。
- browser-trace: Capture a full DevTools-protocol trace (CDP firehose, screenshots, DOM dumps) alongside any browser automation, then bisect the stream into per-page searchable buckets. browser-trace:在进行任何浏览器自动化时捕获完整的 DevTools 协议追踪(CDP 数据流、截图、DOM 转储),并将数据流拆分为可按页面搜索的存储桶。
- bb-usage: Show Browserbase usage stats, session analytics, and cost forecasts in a terminal dashboard. bb-usage:在终端仪表板中显示 Browserbase 使用统计信息、会话分析和成本预测。
- cookie-sync: Sync cookies from local Chrome to a Browserbase persistent context so the browse CLI can access authenticated sites. cookie-sync:将本地 Chrome 的 Cookie 同步到 Browserbase 持久化上下文,以便 browse CLI 可以访问需要身份验证的站点。
- fetch: Fetch HTML or JSON from static pages without a browser session — inspect status codes, headers, follow redirects. fetch:无需浏览器会话即可从静态页面获取 HTML 或 JSON——检查状态码、标头并跟踪重定向。
- search: Search the web and return structured results (titles, URLs, metadata) without a browser session. search:无需浏览器会话即可搜索网络并返回结构化结果(标题、URL、元数据)。
- ui-test: AI-powered adversarial UI testing — analyzes git diffs to test changes, or explores the full app to find bugs. ui-test:AI 驱动的对抗性 UI 测试——分析 git diff 以测试更改,或探索整个应用程序以查找错误。
Installation
To install the skill to popular coding agents:
$ npx skills add browserbase/skills
安装
要将此技能安装到主流编码代理中,请运行:
$ npx skills add browserbase/skills
Claude Code
On Claude Code, to add the marketplace, simply run:
/plugin marketplace add browserbase/skills
Then install the plugin:
/plugin install browse@browserbase
Claude Code
在 Claude Code 中,添加市场只需运行:
/plugin marketplace add browserbase/skills
然后安装插件:
/plugin install browse@browserbase
If you prefer the manual interface:
On Claude Code, type /plugin
Select option 3. Add marketplace
Enter the marketplace source: browserbase/skills
Press enter to select the browse plugin
Hit enter again to Install now
Restart Claude Code for changes to take effect
如果您更喜欢手动界面:
在 Claude Code 中输入 /plugin
选择选项 3. Add marketplace
输入市场源:browserbase/skills
按回车键选择 browse 插件
再次按回车键进行安装
重启 Claude Code 以使更改生效
Usage Once installed, you can ask Claude to browse or use the Browserbase CLI: “Go to Hacker News, get the top post comments, and summarize them” “QA test http://localhost:3000 and fix any bugs you encounter” “Order me a pizza, you’re already signed in on Doordash” “Use bb to list my Browserbase projects and show the output as JSON” “Initialize a new Browserbase Function with bb functions init and explain the next commands” Claude will handle the rest. 使用方法 安装完成后,您可以要求 Claude 进行浏览或使用 Browserbase CLI: “去 Hacker News,获取热门帖子的评论并进行总结” “对 http://localhost:3000 进行 QA 测试并修复遇到的任何错误” “帮我点一份披萨,你已经在 Doordash 上登录了” “使用 bb 列出我的 Browserbase 项目并将输出显示为 JSON” “使用 bb functions init 初始化一个新的 Browserbase 函数,并解释接下来的命令” Claude 将处理剩下的工作。
For local and localhost work, browse env local now starts a clean isolated browser by default. Use browse env local --auto-connect when the agent should reuse your existing local Chrome session, cookies, or login state.
对于本地和 localhost 工作,browse env local 现在默认启动一个干净的隔离浏览器。当代理需要重用您现有的本地 Chrome 会话、Cookie 或登录状态时,请使用 browse env local --auto-connect。
Troubleshooting
Chrome not found
Install Chrome for your platform:
macOS or Windows: https://www.google.com/chrome/
Linux: sudo apt install google-chrome-stable
故障排除
未找到 Chrome
请为您的平台安装 Chrome:
macOS 或 Windows: https://www.google.com/chrome/
Linux: sudo apt install google-chrome-stable
Profile refresh
To refresh cookies from your main Chrome profile:
rm -rf .chrome-profile
配置文件刷新
要从您的主 Chrome 配置文件刷新 Cookie:
rm -rf .chrome-profile
Resources Stagehand Documentation Claude Code Skills 资源 Stagehand 文档 Claude Code 技能