Token导航 LogoToken导航TokenDH.com
待分类操作浏览器github未标认证来源可访问许可证需确认审计提醒

agent-browserAgent 浏览器自动化

Agent Skill

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

总安装

326

周安装

14

GitHub Stars

2

下载量

114
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-gods --skill agent-browser

简介

实现浏览器自动化与页面内容提取,支持表单填写与截图捕获。

  • 适用于网页检查、UI 验证和并行任务执行。
  • 使用时需隔离浏览器会话,避免干扰用户现有 Chrome 状态。
  • 安装命令:npx skills add https://github.com/akillness/oh-my-gods --skill agent-browser
  • 建议限制并发数,防止资源竞争或反爬机制触发。

SKILL.md

agent-browser - Browser Automation for AI Agents

When to use this skill

  • Open websites and automate UI actions
  • Fill forms, click controls, and verify outcomes
  • Capture screenshots or PDFs, or extract page content
  • Run deterministic web checks with accessibility refs
  • Execute parallel browser tasks via isolated sessions
  • Prefer this over playwriter when you want disposable browser state instead of the user's already-running Chrome session

Instructions

Step 1: Pick the right browser surface

  • Use agent-browser when the task should run in a fresh or isolated browser session, when browser state should be disposable, or when the flow needs to be reproducible in CI or automation.
  • Route to playwriter instead when the task depends on the user's current Chrome state, saved logins, cookies, extensions, or already-open tabs.

Step 2: Refresh runtime guidance when version-specific behavior matters

  • Use the bundled instructions here for the stable default workflow.
  • If the installed CLI may be newer than this repo copy, refresh the live instructions first:
agent-browser skills list
agent-browser skills get agent-browser --full
  • Check specialized runtime skills when the workflow is narrower than general browser automation, such as dogfood, slack, or electron.

Step 3: Use the deterministic ref loop

Always use the ref-first loop:

  1. agent-browser open <url>
  2. agent-browser wait --load networkidle when navigation is still settling
  3. agent-browser snapshot -i
  4. Interact with refs (@e1, @e2,...)
  5. agent-browser snapshot -i or agent-browser diff snapshot again after the page or DOM changes
agent-browser open https://example.com/form
agent-browser wait --load networkidle
agent-browser snapshot -i
agent-browser fill @e1 "user@example.com"
agent-browser click @e2
agent-browser diff snapshot

Step 4: Verify after every meaningful action

Use explicit evidence after actions.

# Baseline -> action -> verify structure
agent-browser snapshot -i
agent-browser click @e3
agent-browser diff snapshot

# Visual regression
agent-browser screenshot baseline.png
agent-browser click @e5
agent-browser diff screenshot --baseline baseline.png

Step 5: Scale safely with sessions, waits, and scoped output

Use && chaining when intermediate output is not needed.

# Good chaining: open -> wait -> snapshot
agent-browser open https://example.com && agent-browser wait --load networkidle && agent-browser snapshot -i

# Separate calls when output is needed first
agent-browser snapshot -i
# parse refs
agent-browser click @e2

High-value commands:

  • Navigation: open, close
  • Snapshot: snapshot -i, snapshot -i -C, snapshot -s "#selector"
  • Interaction: click, fill, type, select, check, press
  • Verification: diff snapshot, diff screenshot --baseline <file>, diff url <url1> <url2>
  • Capture: screenshot, screenshot --annotate, pdf
  • Wait: wait --load networkidle, wait <selector|@ref|ms>

Examples

Example 1: Drive a public form in an isolated browser

Input:

Use agent-browser to open the contact page, fill the form, submit it, and verify the page changed.

Output shape:

  • uses agent-browser, not playwriter
  • follows open -> snapshot -i -> interact -> diff snapshot
  • re-snapshots or diffs after the submit action

Example 2: Compare staging and production without reusing local browser state

Input:

Compare the staging and production homepages with agent-browser and show whether the structure or screenshot changed.

Output shape:

  • stays on agent-browser as the isolated verification surface
  • uses diff url, diff snapshot, or diff screenshot --baseline...
  • keeps evidence explicit instead of describing the result from memory

Example 3: Choose playwriter when the task needs the user's existing login

Input:

I need to inspect an authenticated checkout flow that depends on my saved Chrome login and current cart state. Should I use agent-browser or playwriter?

Output shape:

  • routes to playwriter for the logged-in running-browser case
  • explains that agent-browser is the isolated or disposable alternative
  • preserves the distinction between headless verification and stateful browser control

Best practices

  • Prefer snapshot refs (@e1, @e2) over fragile CSS selectors whenever possible.
  • Re-run snapshot -i after navigation or major DOM changes before acting again.
  • Prefer wait --load networkidle or selector/ref waits over fixed sleeps.
  • Use --session <name> to isolate parallel work or preserve reusable auth safely.
  • Use diff snapshot, diff screenshot, or saved baselines instead of assuming the page changed correctly.
  • Refresh CLI-served skills with agent-browser skills get... when you suspect version drift between the repo copy and the installed binary.
  • Apply domain allowlists, content boundaries, and action policies in sensitive or prompt-injection-prone flows.

Safety and reliability

  • Refs are invalid after navigation or significant DOM updates; re-snapshot before the next action.
  • For multi-step JS, use eval --stdin or base64 input to avoid shell escaping breakage.
  • For concurrent tasks, isolate with --session <name>.
  • Use output controls in long pages to reduce context flooding.
  • Optional hardening in sensitive flows: domain allowlist and action policies.

Optional hardening examples:

# Wrap page content with boundaries to reduce prompt-injection risk
export AGENT_BROWSER_CONTENT_BOUNDARIES=1

# Limit output volume for long pages
export AGENT_BROWSER_MAX_OUTPUT=50000

# Restrict navigation and network to trusted domains
export AGENT_BROWSER_ALLOWED_DOMAINS="example.com,*.example.com"

# Restrict allowed action types
export AGENT_BROWSER_ACTION_POLICY=./policy.json

Example policy.json:

{"default":"deny","allow":["navigate","snapshot","click","fill","scroll","wait","get"],"deny":["eval","download","upload","network","state"]}

CLI-flag equivalent:

agent-browser --content-boundaries --max-output 50000 --allowed-domains "example.com,*.example.com" --action-policy ./policy.json open https://example.com

Troubleshooting

  • command not found: install and run agent-browser install.
  • Wrong element clicked: run snapshot -i again and use fresh refs.
  • Dynamic SPA content missing: wait with --load networkidle or targeted wait selector.
  • Session collisions: assign unique --session names and close each session.
  • Large output pressure: narrow snapshots (-i, -c, -d, -s) and extract only needed text.

References

Deep-dive docs in this skill:

Related resources:

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

33.55%
按下载量换算38

Claude

31.61%
按下载量换算36

Cursor

20.82%
按下载量换算24

Gemini CLI

9.36%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills