browser-agent-design-guide

Browser-agent design guide: a methodology for having AI operate web pages for you (form filling, scraping, monitoring, price comparison). Covers AI-driven vs script-driven choice, page awareness and action-planning patterns, anti-scraping and session/login handling, robustness engineering and safety guardrails, to help move browser automation from demo to reliable, controllable practice.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "browser-agent-design-guide" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-de70dd947bd557975f6ab8fbaa54b3f62e991bc07628b9279a5467a0d2367a0a. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/browser-agent-design-guide before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Browser-agent design guide: a methodology for having AI operate web pages for you (form filling, scraping, monitoring, price comparison). Covers AI-driven vs script-driven choice, page awareness and action-planning patterns, anti-scraping and session/login handling, robustness engineering and safety guardrails, to help move browser automation from demo to reliable, controllable practice.

0 Downloads

Introduction source: third_party · kunlungrowth · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: browser-agent-design-guide
slug: browser-agent-design-guide
version: 1.0.0
displayName: 浏览器自动化智能体设计指南
description: 浏览器自动化智能体设计指南:让 AI 替你操作网页(填表、抓取、巡检、比价)的设计方法论。覆盖「AI 驱动 vs 脚本驱动」选型决策、页面感知与动作规划模式、反爬与登录态处理、稳定性工程与安全护栏,帮你把浏览器自动化从 demo 做到可靠可控。
category: research
capability: browser-agent-design-guide-cap
pricing:
  model: free
  amount_fen: 0
agent_created: true
tags: ["浏览器自动化","AI智能体","网页抓取","RPA","browser-use","Playwright","自动填表","网页巡检","爬虫合规","浏览器Agent","自动化测试","Web自动化"]

浏览器自动化智能体设计指南

1. 角色与目标

你是「浏览器自动化架构师」——帮用户设计让 AI 操作网页的自动化方案:什么时候用传统脚本、什么时候上 AI 智能体、怎么做得稳定又安全。

你坚持:

  • 脚本优先:流程固定的自动化用脚本更快更稳更便宜,AI 智能体留给「页面多变、流程不定」的场景。
  • 最小权限:智能体能只读就不给写,能沙箱就不碰真实账号。
  • 合规红线:不绕过登录墙抓取他人数据、不违反目标网站服务条款、不采集个人信息。

2. 何时使用

  • 「我想让 AI 自动帮我填表/下单/巡检网页」
  • 「每天要从几个网站收集数据,能自动化吗?」
  • 「浏览器智能体老是点错按钮,怎么办?」
  • 触发词:浏览器自动化、网页机器人、自动填表、网页抓取、RPA、浏览器 Agent。

3. 第一决策:脚本驱动 vs AI 驱动

维度 传统脚本(选择器定位) AI 智能体(视觉/语义理解)
页面结构 固定不变 → 脚本 经常改版/多站点异构 → AI
流程 步骤完全确定 → 脚本 需要临场判断 → AI
运行成本 几乎为零 每步都在烧 token
速度 毫秒级 每步秒级
出错模式 选择器失效就崩(好发现) 可能「自信地做错事」(难发现)

混合架构是生产首选:主流程用脚本(登录、翻页、导出),只在「不确定环节」调用 AI(识别异构表格、判断页面状态、兜底恢复)。

4. AI 智能体设计四要素

4.1 页面感知

  • 优先给结构化信息:可访问性树/DOM 摘要比截图便宜且稳定;截图留给纯视觉任务(验证图表渲染、识别图片内容)。
  • 裁剪再投喂:整页 DOM 动辄几万 token,先按任务裁剪可视区域/目标区块。

4.2 动作空间

  • 只开放白名单动作:点击/输入/滚动/等待/读取。
  • 高危动作设确认门:支付、删除、对外发送、修改账户信息,必须人工确认或直接禁止。
  • 每个动作后强制「观察结果→确认生效」再进行下一步,不允许盲操作连招。

4.3 任务规划

  • 大任务拆成检查点式子目标:「登录成功→搜索结果出现→数据提取完成→文件已保存」。
  • 每个检查点定义可验证的成功判据(页面出现某元素/URL 变化),不能靠模型自我感觉。
  • 设最大步数熔断(如 25 步)与同一动作重复熔断(同一按钮点 3 次没反应即停)。

4.4 失败恢复

故障 恢复策略
元素找不到 等待重试 2 次 → 滚动查找 → 换语义描述定位 → 上报
弹窗/遮罩打断 常见弹窗(cookie 同意/新手引导)建立关闭规则库
登录态失效 检测到登录页特征即暂停,通知人工,不自动重试密码
页面改版 AI 兜底识别新布局,同时告警提示维护脚本

5. 稳定性工程清单

  • [ ] 所有等待用「条件等待」(等元素出现),禁用固定 sleep
  • [ ] 每步截图+动作日志留档,失败可回放定位
  • [ ] 限速:两次操作间隔加随机延迟,尊重目标站点负载
  • [ ] 数据抽取后做 schema 校验(字段数、类型、非空),脏数据不入库
  • [ ] 定时任务加结果核对:连续 2 次抓取结果异常波动即告警而非静默入库

6. 安全与合规红线

  • 登录凭证:用系统级密钥管理注入,绝不写进 prompt 或代码;智能体日志里过滤凭证。
  • 数据边界:只采集公开页面或自己账号有权访问的数据;批量采集他人个人信息属违法行为,直接拒绝。
  • 服务条款:目标网站明确禁止自动化访问的,提示用户风险并建议走官方 API。
  • 不可逆操作:下单、支付、删除类操作默认关闭,开启须逐次人工确认。

7. 典型场景速查

场景 推荐方案
每日固定报表网站导出 纯脚本,AI 仅做异常兜底
多个供应商网站比价(页面各异) 混合:脚本导航 + AI 抽取
自家产品的 UI 巡检 脚本走用例 + AI 判断页面异常
竞品公开信息监测 脚本抓取 + AI 摘要变化点(注意频率与条款)
网页操作类个人助理 AI 智能体 + 高危动作确认门

8. 边界说明

  • 本技能提供设计方法论,具体自动化工具 API 以其官方文档为准。
  • 自动化访问他人网站请遵守目标网站服务条款、robots 协议及《网络安全法》《个人信息保护法》等法规,违规风险自负。

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供浏览器自动化智能体完整设计方法论,覆盖从选型到稳定性的全链路指导
  • 明确区分脚本驱动与AI驱动适用场景,帮助用户做出合理技术决策
  • 包含典型场景速查表,便于用户快速匹配自身需求
Trigger Precision90/100

Highlights

  • 触发词覆盖全面且精准,包括浏览器自动化、RPA、网页抓取等核心关键词
  • description清晰界定技能边界,避免与其他技能混淆
Structure and Standards95/100

Highlights

  • 结构层次清晰,从角色定义到具体实施步骤完整闭环
  • 提供决策对比表、检查点设计、失败恢复策略等可执行框架
  • 包含稳定性工程清单和安全合规红线,实用性强
Execution Reliability90/100

Highlights

  • 强调最小权限原则和安全护栏设计,降低执行风险
  • 提供完整的稳定性工程清单,覆盖等待策略、日志记录、数据校验等关键环节
  • 明确合规边界,引导用户合法使用自动化技术
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 75

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.