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

agent-browserAgent 浏览器自动化

Agent Skill

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

总安装

380

周安装

16

GitHub Stars

公开资料未说明

下载量

133
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add teachingai/agent-skills --skill "agent-browser"

简介

agent-browser 提供浏览器自动化能力,支持页面打开、元素检查和 DOM 信息提取等操作。

  • 适用于需要模拟用户行为、验证前端逻辑或抓取动态内容的数据整理与分析场景。
  • 通过编程式控制 Chrome 实例执行点击、滚动、表单填写等动作,返回结构化页面快照。
  • 使用前需安装 Puppeteer 或 Playwright 等底层驱动,并允许 Agent 启动无头浏览器进程。
  • 注意遵守目标网站 robots.txt 规则,避免高频请求引发封禁;敏感操作建议增加人工确认环节。

SKILL.md

When to use this skill

Use this skill whenever the user wants to:

  • Automate browser interactions via CLI commands
  • Use browser automation for AI agents
  • Navigate websites and interact with pages using command-line tools
  • Use refs-based element selection for deterministic automation
  • Integrate browser automation into AI agent workflows
  • Capture snapshots of web pages with accessibility trees
  • Fill forms, click elements, and extract content via CLI
  • Use semantic locators for more reliable element selection
  • Work with browser automation in agent mode with JSON output
  • Manage multiple browser sessions
  • Debug browser automation with headed mode
  • Use authenticated sessions with custom headers
  • Connect to existing browsers via CDP
  • Stream browser viewport for live preview

How to use this skill

This skill is organized to match the agent-browser official documentation structure (https://github.com/vercel-labs/agent-browser/blob/main/README.md). When working with agent-browser:

  1. Install agent-browser:

- Load examples/getting-started/installation.md for installation instructions

  1. Quick Start:

- Load examples/quick-start/quick-start.md for basic workflow examples

  1. Learn core commands:

- Load examples/commands/basic-commands.md for basic commands (open, click, fill, etc.) - Load examples/commands/advanced-commands.md for advanced commands (snapshot, eval, etc.) - Load examples/commands/get-info/ for information retrieval commands - Load examples/commands/check-state/ for state checking commands - Load examples/commands/find-elements/ for semantic locator commands - Load examples/commands/wait/ for wait commands - Load examples/commands/mouse-control/ for mouse control commands - Load examples/commands/browser-settings/ for browser configuration - Load examples/commands/cookies-storage/ for cookies and storage management - Load examples/commands/network/ for network interception - Load examples/commands/tabs-windows/ for tab and window management - Load examples/commands/frames/ for iframe handling - Load examples/commands/dialogs/ for dialog handling - Load examples/commands/debug/ for debugging commands - Load examples/commands/navigation/ for navigation commands - Load examples/commands/setup/ for setup commands

  1. Understand selectors:

- Load examples/selectors/refs.md for refs-based selection (@e1, @e2, etc.) - Load examples/selectors/traditional-selectors.md for CSS, XPath, and semantic locators

  1. Use agent mode:

- Load examples/agent-mode/introduction.md for agent mode overview - Load examples/agent-mode/optimal-workflow.md for optimal AI workflow - Load examples/agent-mode/integration.md for integrating with AI agents

  1. Advanced features:

- Load examples/advanced/sessions.md for session management - Load examples/advanced/headed-mode.md for debugging with visible browser - Load examples/advanced/authenticated-sessions.md for authentication via headers - Load examples/advanced/custom-executable.md for custom browser executable - Load examples/advanced/cdp-mode.md for Chrome DevTools Protocol integration - Load examples/advanced/streaming.md for browser viewport streaming - Load examples/advanced/architecture.md for architecture overview - Load examples/advanced/platforms.md for platform support - Load examples/advanced/usage-with-agents.md for AI agent integration patterns

  1. Configure options:

- Load examples/options/global-options.md for global CLI options - Load examples/options/snapshot-options.md for snapshot-specific options - Load examples/options/session-options.md for session management options

  1. Reference API documentation when needed:

- api/commands.md - Complete command reference - api/selectors.md - Selector reference - api/options.md - Options reference

  1. Use templates for quick start:

- templates/basic-automation.md - Basic automation workflow - templates/ai-agent-workflow.md - AI agent workflow template

Doc mapping (one-to-one with official documentation)

Examples and Templates

This skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).

To use examples:

  • Identify the topic from the user's request
  • Load the appropriate example file from the mapping above
  • Follow the instructions, syntax, and best practices in that file
  • Adapt the code examples to your specific use case

To use templates:

  • Reference templates in templates/ directory for common scaffolding
  • Adapt templates to your specific needs and coding style

API Reference

  • Commands API: api/commands.md - Complete command reference with syntax and examples
  • Selectors API: api/selectors.md - Selector types and usage reference
  • Options API: api/options.md - All options reference

Best Practices

  1. Use Refs: Prefer refs (@e1, @e2) over traditional selectors for deterministic automation
  2. Snapshot First: Always snapshot before interacting with elements to get refs
  3. Agent Mode: Use --json flag for machine-readable output in agent mode
  4. Session Management: Use --session to maintain state across commands
  5. Interactive Snapshot: Use -i flag for interactive snapshot selection
  6. Semantic Locators: Use semantic locators (role/name) when refs are not available
  7. Error Handling: Check command exit codes and error messages
  8. Wait for Navigation: Commands automatically wait for navigation to complete
  9. Headed Mode: Use --headed for debugging, headless for production
  10. CDP Integration: Use --cdp for Chrome DevTools Protocol integration
  11. Streaming: Use AGENT_BROWSER_STREAM_PORT for live browser preview
  12. Authenticated Sessions: Use --headers for authentication without login flows
  13. Custom Executable: Use --executable-path for serverless deployments or custom browsers
  14. Snapshot Options: Combine -i, -c, -d, -s options to optimize snapshot output

Resources

Keywords

agent-browser, CLI browser automation, AI agents, browser automation CLI, refs, snapshot, agent mode, semantic locators, browser automation tool, command-line browser, AI agent browser, deterministic selectors, accessibility tree, browser commands, web automation CLI, sessions, headed mode, authenticated sessions, CDP mode, streaming, Chrome DevTools Protocol, Playwright, browser automation for AI

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Claude Code

29.69%
按下载量换算39

OpenCode

21.1%
按下载量换算28

Antigravity

18.87%
按下载量换算25

Codex

10.9%
按下载量换算14

windsurf

7.65%
按下载量换算10

Gemini CLI

3.47%
按下载量换算5

安全审计

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

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills