Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计未展示

browser-automation浏览器自动化

Agent Skill

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

总安装

196

周安装

8

GitHub Stars

公开资料未说明

下载量

63
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add toilahuongg/google-antigravity-kit --skill "browser-automation"

简介

发现并安装 AI 代理的技能。

  • 适用于扩展 Agent 功能、集成第三方工具和服务场景。
  • 安装后可通过 npx skills add toilahuongg/google-antigravity-kit --skill "browser-automation" 使用,需确认宿主环境是否支持技能加载。
  • 使用前请检查权限范围,避免触发不必要的网络请求或代码执行操作。
  • 建议结合具体用例查阅原始仓库文档,确保技能兼容且安全可靠。

SKILL.md

name
browser-automation
description
Guide for browser automation and testing using the browser_subagent tool. Use this skill when users need to interact with web pages, test user flows, scrape dynamic content, automate form submissions, capture screenshots, verify UI changes, or record browser sessions. Supports clicking, typing, navigation, scrolling, waiting for elements, and all standard browser interactions with automatic video recording.
license
Complete terms in LICENSE.txt

Browser Automation

This skill provides comprehensive guidance for browser automation using the browser_subagent tool.

Overview

The browser_subagent enables autonomous browser control with automatic session recording. All interactions are captured as WebP videos saved to the artifacts directory.

Core Capabilities

  1. Navigation - Open URLs, navigate pages, handle redirects
  2. Interaction - Click, type, scroll, hover, drag-and-drop
  3. Extraction - Read DOM content, capture screenshots, scrape data
  4. Verification - Test user flows, validate UI changes
  5. Recording - Automatic video capture of all sessions

When to Use

Use browser_subagent (vs read_url_content) when:

  • JavaScript execution is required
  • User interaction is needed (forms, clicks, navigation)
  • Authentication or session state is required
  • Dynamic content loads after page render
  • Visual verification or screenshots are needed
  • Recording demonstrations or tutorials

Use read_url_content for static HTML content where JavaScript isn't needed.

Tool Parameters

TaskName (required)

Human-readable title for the browser task.

  • Should be properly capitalized
  • Example: "Testing Login Flow", "Scraping Product Data"
  • Avoid URLs or technical jargon

Task (required)

Detailed instructions for the browser subagent. Be explicit about:

  • What to do
  • When to stop
  • What information to return

Critical: The subagent is autonomous and one-shot. Provide comprehensive instructions upfront.

RecordingName (required)

Filename for the video recording.

  • All lowercase with underscores
  • Maximum 3 words
  • Describes what the recording contains
  • Example: login_flow_demo, checkout_process

Best Practices

1. Clear Task Instructions

Bad: "Check the website"

Task: Go to example.com and check it

Good: Specific, with clear completion criteria

Task: Navigate to https://example.com, wait for the page to fully load, 
verify that the main heading contains "Welcome", capture a screenshot of 
the page, then return the page title and the text content of the main 
heading.

2. Return Conditions

Always specify what the subagent should return:

Task: Navigate to the product page at https://shop.example.com/products/123
and extract the following data:
- Product title
- Price
- Availability status
- Number of reviews

Return this information in a structured format when complete.

3. Error Handling

Instruct the subagent how to handle failures:

Task: Attempt to log in to https://app.example.com with username "testuser" 
and password "testpass123". If login succeeds, navigate to the dashboard 
and return the user's display name. If login fails, capture a screenshot 
of the error message and return the error text.

4. Wait Conditions

Specify wait conditions for dynamic content:

Task: Navigate to https://example.com/search, type "widgets" into the 
search box, click the search button, and wait until the results list 
appears (look for element with class "search-results"). Once results load, 
count the number of result items and return that count.

5. Multi-Step Flows

Break down complex flows into clear steps:

Task: Complete the following checkout flow:
1. Navigate to https://shop.example.com
2. Click "Add to Cart" on the first product
3. Click the cart icon in the top right
4. Click "Proceed to Checkout"
5. Fill in the shipping form with test data
6. Capture a screenshot of the order summary
7. Return the total price shown on the order summary

Common Patterns

Authentication Testing

TaskName: "Testing User Login"
Task: Navigate to https://app.example.com/login, enter " [email protected] " 
in the email field, enter "password123" in the password field, click the 
"Sign In" button, wait for navigation to complete. If login succeeds and 
you see a dashboard, return "Login successful". If there's an error message, 
return the error text.
RecordingName: login_test

Data Scraping

TaskName: "Scraping Product Listings"
Task: Navigate to https://shop.example.com/products, wait for all product 
cards to load, then extract the title and price from each product card. 
Return a list of products with their titles and prices. If pagination 
exists, only scrape the first page.
RecordingName: product_scrape

Form Submission

TaskName: "Submitting Contact Form"
Task: Navigate to https://example.com/contact, fill in the form with:
- Name: "Test User"
- Email: " [email protected] "
- Message: "This is a test message"
Then click the submit button and wait for the confirmation message. 
Return the confirmation message text.
RecordingName: contact_form

Screenshot Capture

TaskName: "Capturing Homepage Design"
Task: Navigate to https://example.com, wait for complete page load including 
all images, scroll to show the full page layout, capture a full-page 
screenshot, and return confirmation that the screenshot was saved.
RecordingName: homepage_capture

UI Verification

TaskName: "Verifying Responsive Layout"
Task: Navigate to https://example.com, resize the browser window to mobile 
width (375px), capture a screenshot, then resize to desktop width (1920px), 
capture another screenshot. Return the dimensions used and confirm both 
screenshots were captured.
RecordingName: responsive_check

Element Selectors

The browser subagent can find elements using:

  • CSS selectors
  • Text content
  • ARIA labels
  • Position/proximity
  • Visual descriptions

Be specific when describing elements:

Good:

  • "Click the blue 'Submit' button at the bottom of the form"
  • "Type into the input field labeled 'Email Address'"
  • "Click the first product card in the grid"

Avoid:

  • "Click the button" (which button?)
  • "Fill in the field" (which field?)

Waiting Strategies

Wait for Navigation

After clicking "Submit", wait for the page to navigate to the success page.

Wait for Elements

Wait until the spinner disappears and the results table is visible.

Wait for Content

Wait until the product count shows a number greater than 0.

Fixed Delays (use sparingly)

Wait 3 seconds for animations to complete.

Recording Best Practices

Naming Convention

  • Use lowercase with underscores
  • Be descriptive but concise
  • Maximum 3 words
  • Examples:

- login_flow - checkout_test - nav_demo - form_submit

Recording Purpose

Recordings are automatically saved and useful for:

  • Debugging failed automation
  • Demonstrating user flows
  • Documenting test results
  • Creating tutorials
  • Reviewing UI behavior

Advanced Techniques

Session State

The browser maintains state during a single subagent execution:

  • Cookies persist across navigation
  • Login sessions remain active
  • Form data can carry forward

Multiple Tabs

If needed, the subagent can work with multiple tabs:

Task: Open https://example.com in the current tab, then open a new tab 
and navigate to https://example.com/compare. Switch between tabs to 
compare data from both pages.

File Downloads

Task: Navigate to https://example.com/downloads, click the "Download Report" 
button, wait for the download to complete, and return confirmation.

Iframes

Task: Navigate to https://example.com, locate the embedded iframe 
containing the video player, switch context to that iframe, then click 
the play button.

Error Recovery

If the browser tool encounters issues:

  1. The subagent will report what went wrong
  2. Read the error message carefully
  3. Adjust your Task instructions
  4. Try again with more specific instructions or wait conditions

Common issues:

  • Element not found: Be more specific about element description
  • Timeout: Add explicit wait conditions or increase wait time
  • Navigation failed: Check URL validity, network issues

Performance Tips

  1. Be Specific: Clear selectors are faster than vague descriptions
  2. Minimize Waits: Only wait when necessary; don't add arbitrary delays
  3. Single Purpose: One task per browser_subagent call
  4. Return Fast: Return as soon as the required information is collected

Examples

See examples/ directory for complete working examples:

  • examples/login_test.md - Authentication flow
  • examples/form_automation.md - Form submission
  • examples/data_extraction.md - Web scraping
  • examples/ui_testing.md - Visual verification

Limitations

  • Each subagent call is independent (no session sharing between calls)
  • Cannot execute arbitrary JavaScript (but can interact with page elements)
  • Video recordings use system resources (keep sessions focused)
  • Some sites may block automation (CAPTCHA, bot detection)

Integration with Workflows

Browser automation pairs well with:

  • Testing workflows: Automate E2E tests
  • Data collection: Scrape and process information
  • Documentation: Record user flows automatically
  • Verification: Validate deployments

When NOT to Use

Avoid browser automation when:

  • Static HTML scraping is sufficient → use read_url_content
  • API endpoints are available → use direct API calls
  • File processing is needed → use file manipulation tools
  • The task requires human judgment (CAPTCHA, visual verification)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

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

平台分布

windsurf

29.76%
按下载量换算19

OpenCode

23.42%
按下载量换算15

Codex

18.02%
按下载量换算11

Claude Code

11.57%
按下载量换算7

Antigravity

7.15%
按下载量换算5

Gemini CLI

3.17%
按下载量换算2

安全审计

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

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills