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

agent-browserAgent 浏览器自动化

Agent Skill

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

总安装

1,060

周安装

25

GitHub Stars

11

下载量

1
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/akillness/skills-template --skill agent-browser

简介

agent-browser 提供隔离的确定性浏览器会话,用于页面状态检查与操作验证。

  • 适用于表单提交、导航流程或前端组件交互的自动化测试场景。
  • 每次会话独立运行,确保结果可复现且不影响用户本地环境。
  • 需配合快照比对机制实现 observe-act-observe 验证循环。
  • 使用时应限制并发数量,避免资源占用过高或触发反爬机制。

SKILL.md

agent-browser

agent-browser is the fresh-session deterministic browser verification skill in this repo.

Use it when the real need is: open a clean disposable browser, inspect the current page state, perform one concrete action, and prove what changed with explicit evidence. The key behaviors are isolation, stable refs from snapshots, and an observe → act → observe verification loop.

When to use this skill

Use agent-browser when the task needs one or more of these:

  • a clean reproducible browser session instead of the user's real browser profile
  • deterministic form checks, navigation checks, and page-state verification
  • structured snapshot refs (@e1, @e2, …) before interacting with the page
  • explicit before/after evidence such as snapshot diffs, screenshots, or extracted text
  • CI-style or automation-friendly browser checks where reproducibility matters more than session continuity
  • isolated parallel browser tasks with named sessions

Do not use agent-browser by default for:

  • reusing the browser the user already has open, with live cookies, extensions, or trusted-device state → playwriter
  • exact rendered-UI review packets or annotation handoff from a human reviewer → agentation
  • plan review, diff approval, or artifact sign-off workflows → plannotator
  • vague broad web-task autonomy when the real need is a stateful authenticated browser lane

Quick routing rule

If the job needs...Use
A clean disposable browser and repeatable verificationagent-browser
Existing logins, cookies, extensions, or a browser already openplaywriter
Exact rendered-UI feedback with selectors / annotation packetsagentation
Plan or diff review in a browserplannotator

Instructions

Step 1: Confirm the browser lane

Choose agent-browser only when a fresh session is the correct default. If the task depends on the user's existing browser state, route out before doing setup work.

Step 2: Follow the core loop

Always use the same loop:

  1. Open a clean browser session
  2. Wait for a stable page state
  3. Observe first with snapshot -i
  4. Act once using fresh refs
  5. Observe again before the next action
  6. Verify with explicit evidence

This is the repo's browser-verification contract. If you skip the observe steps, you lose the deterministic part of the workflow.

Step 3: Start from the smallest useful command set

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 snapshot -i

Rules:

  • Never keep using old @eN refs after navigation or meaningful DOM change.
  • Prefer wait --load networkidle or a targeted wait over fixed sleeps.
  • Keep one browser action between observations when debugging or verifying.

Step 4: Choose one verification mode

ModeUse whenEvidence
Snapshot diffSemantic page structure or accessible content changeddiff snapshot
Screenshot diffRendered layout or visual state mattersdiff screenshot --baseline...
Targeted extractionYou need exact text, URL, or field valueget text, get url, or narrowed snapshot
PDF / captureThe deliverable is a captured artifactpdf, screenshot

Prefer the lightest mode that proves the change. Use screenshots when visual truth matters; do not use them as the only default.

Step 5: Use named sessions for isolation

agent-browser --session signup-check open https://example.com/signup
agent-browser --session settings-check open https://example.com/settings
agent-browser session list

Use one named session per autonomous worker or test lane. Close sessions when finished.

Step 6: Keep authentication bounded

A clean-session skill can still save or load auth state, but that should stay explicit:

agent-browser open https://app.example.com/login
agent-browser wait --load networkidle
agent-browser snapshot -i
agent-browser fill @e1 "$USERNAME"
agent-browser fill @e2 "$PASSWORD"
agent-browser click @e3
agent-browser wait --url "**/dashboard"
agent-browser state save auth.json

Then later:

agent-browser state load auth.json
agent-browser open https://app.example.com/dashboard
agent-browser snapshot -i

Use this for bounded reproducible reuse. If the real workflow depends on a long-lived personal browser, passkeys, SSO handoff, extensions, or active human browsing, route to playwriter instead.

Step 7: Use complex evaluation payloads safely

For multi-line JavaScript or extraction logic, prefer stdin so shell quoting does not destroy the payload:

agent-browser eval --stdin <<'EVALEOF'
JSON.stringify({
  title: document.title,
  links: document.links.length,
  buttons: document.querySelectorAll('button').length
})
EVALEOF

High-value command patterns

Clean browser check

agent-browser open https://example.com
agent-browser wait --load networkidle
agent-browser snapshot -i
agent-browser get url

Form submission with verification

agent-browser open https://example.com/form
agent-browser wait --load networkidle
agent-browser snapshot -i
agent-browser fill @e1 "hello@example.com"
agent-browser click @e2
agent-browser diff snapshot

Visual regression slice

agent-browser open https://example.com/pricing
agent-browser wait --load networkidle
agent-browser screenshot baseline.png
agent-browser click @e5
agent-browser diff screenshot --baseline baseline.png

Session cleanup

agent-browser --session signup-check close
agent-browser close

Safety and reliability

  • Fresh refs only: re-run snapshot -i after navigation or major DOM updates.
  • Prefer deterministic waits over fixed sleeps.
  • Keep authentication files out of version control.
  • Use allowed-domain and action-policy guards in sensitive runs.
  • Prefer one small verified step over a giant multi-action leap.
  • Route out aggressively when the task is really about running-browser reuse or exact visual review.

Troubleshooting

IssueWhat to check
Wrong element clickedRefresh snapshot -i and use fresh refs
Dynamic content missingWait for networkidle or a targeted selector/url
Output too largeNarrow the snapshot or use targeted extraction
Auth is too stateful or MFA-heavyRoute to playwriter instead of forcing clean-session automation
Need exact rendered-page feedbackUse agentation after the browser step
Parallel tasks are collidingAssign unique session names and close them cleanly

Examples

Example 1: Repeatable checkout verification

  • Prompt: "Run a clean browser check that fills the checkout form and proves the confirmation state appears."
  • Expected behavior: choose agent-browser, use a fresh session, observe before/after, and verify with an explicit diff or extracted state.

Example 2: Logged-in personal browser flow

  • Prompt: "Use my existing signed-in browser tabs to change a billing setting."
  • Expected behavior: route to playwriter, because session continuity is the real requirement.

Example 3: Human leaves exact UI feedback

  • Prompt: "I need to click the broken UI and send the exact selector/path to the agent."
  • Expected behavior: route to agentation, because rendered-UI annotation is the real deliverable.

Best practices

  1. Choose agent-browser because a clean browser matters, not because the word "browser" appears.
  2. Follow observe → act → observe every time the page meaningfully changes.
  3. Prefer semantic evidence (snapshot diff, extracted state) before visual evidence when it proves the point.
  4. Keep auth reuse explicit and bounded; do not slide into a stateful personal-browser workflow by accident.
  5. Use named sessions for concurrency and close them when done.
  6. Report what was verified, not just what was clicked.

References

Deep-dive docs in this skill:

Primary sources:

Ready templates:

  • ./templates/form-automation.sh
  • ./templates/capture-workflow.sh

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

32.32%
按下载量换算0

Claude

29.77%
按下载量换算0

Cursor

19.51%
按下载量换算0

Gemini CLI

9.22%
按下载量换算0

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills