重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
agent-browser by teachingai/full-stack-skills
npx skills add https://github.com/teachingai/full-stack-skills --skill agent-browser当用户希望实现以下目标时,请使用此技能:
此技能的组织结构遵循 agent-browser 官方文档结构 (https://github.com/vercel-labs/agent-browser/blob/main/README.md)。在使用 agent-browser 时:
# 1. 安装
npm install -g @anthropic-ai/agent-browser
# 2. 打开页面并获取快照以得到元素引用(refs)
agent-browser open "https://example.com"
agent-browser snapshot
# 输出包含每个元素的引用,如 @e1, @e2, @e3
# 3. 通过引用点击元素
agent-browser click @e3
# 4. 填写表单字段
agent-browser fill @e5 "hello@example.com"
# 5. 智能体模式(输出 JSON 供程序化使用)
agent-browser snapshot --json
examples/getting-started/installation.md 查看安装说明广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
examples/quick-start/quick-start.md 查看基础工作流示例examples/commands/basic-commands.md 查看基础命令(open, click, fill 等)examples/commands/advanced-commands.md 查看高级命令(snapshot, eval 等)examples/commands/get-info/ 查看信息检索命令examples/commands/check-state/ 查看状态检查命令examples/commands/find-elements/ 查看语义定位器命令examples/commands/wait/ 查看等待命令examples/commands/mouse-control/ 查看鼠标控制命令examples/commands/browser-settings/ 查看浏览器配置命令examples/commands/cookies-storage/ 查看 Cookie 和存储管理命令examples/commands/network/ 查看网络拦截命令examples/commands/tabs-windows/ 查看标签页和窗口管理命令examples/commands/frames/ 查看 iframe 处理命令examples/commands/dialogs/ 查看对话框处理命令examples/commands/debug/ 查看调试命令examples/commands/navigation/ 查看导航命令examples/commands/setup/ 查看设置命令examples/selectors/refs.md 查看基于引用的选择器(@e1, @e2 等)examples/selectors/traditional-selectors.md 查看 CSS、XPath 和语义定位器examples/agent-mode/introduction.md 查看智能体模式概述examples/agent-mode/optimal-workflow.md 查看优化的 AI 工作流examples/agent-mode/integration.md 查看与 AI 智能体的集成examples/advanced/sessions.md 查看会话管理examples/advanced/headed-mode.md 查看使用可见浏览器进行调试examples/advanced/authenticated-sessions.md 查看通过请求头进行身份验证examples/advanced/custom-executable.md 查看自定义浏览器可执行文件examples/advanced/cdp-mode.md 查看 Chrome DevTools 协议集成examples/advanced/streaming.md 查看浏览器视口流examples/advanced/architecture.md 查看架构概述examples/advanced/platforms.md 查看平台支持examples/advanced/usage-with-agents.md 查看 AI 智能体集成模式examples/options/global-options.md 查看全局 CLI 选项examples/options/snapshot-options.md 查看快照特定选项examples/options/session-options.md 查看会话管理选项api/commands.md - 完整的命令参考api/selectors.md - 选择器参考api/options.md - 选项参考templates/basic-automation.md - 基础自动化工作流templates/ai-agent-workflow.md - AI 智能体工作流模板此技能包含详细的示例,其组织结构与官方文档结构相匹配。所有示例均在 examples/ 目录中(参见上面的映射)。
使用示例:
使用模板:
templates/ 目录中的模板以获取常见脚手架api/commands.md - 包含语法和示例的完整命令参考api/selectors.md - 选择器类型和使用参考api/options.md - 所有选项参考--json 标志以获取机器可读的输出--session 在多个命令间保持状态-i 标志进行交互式快照选择--headed,生产环境使用无头模式--cdp 进行 Chrome DevTools 协议集成AGENT_BROWSER_STREAM_PORT 进行实时浏览器预览--headers 进行无需登录流程的身份验证--executable-path-i、-c、-d、-s 选项以优化快照输出agent-browser, CLI 浏览器自动化, AI 智能体, 浏览器自动化 CLI, 引用, 快照, 智能体模式, 语义定位器, 浏览器自动化工具, 命令行浏览器, AI 智能体浏览器, 确定性选择器, 无障碍树, 浏览器命令, Web 自动化 CLI, 会话, 有头模式, 认证会话, CDP 模式, 流式传输, Chrome DevTools 协议, Playwright, AI 浏览器自动化
每周安装量
54
仓库
GitHub 星标数
257
首次出现
2026年1月24日
安全审计
安装于
opencode46
codex46
gemini-cli45
github-copilot42
amp41
kimi-cli40
Use this skill whenever the user wants to:
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
npm install -g @anthropic-ai/agent-browser
# 2. Open a page and take a snapshot to get element refs
agent-browser open "https://example.com"
agent-browser snapshot
# Output includes refs like @e1, @e2, @e3 for each element
# 3. Click an element by ref
agent-browser click @e3
# 4. Fill a form field
agent-browser fill @e5 "hello@example.com"
# 5. Agent mode (JSON output for programmatic use)
agent-browser snapshot --json
Install agent-browser :
examples/getting-started/installation.md for installation instructionsQuick Start :
examples/quick-start/quick-start.md for basic workflow examplesLearn core commands :
examples/commands/basic-commands.md for basic commands (open, click, fill, etc.)examples/commands/advanced-commands.md for advanced commands (snapshot, eval, etc.)examples/commands/get-info/ for information retrieval commandsexamples/commands/check-state/ for state checking commandsexamples/commands/find-elements/ for semantic locator commandsexamples/commands/wait/ for wait commandsexamples/commands/mouse-control/ for mouse control commandsexamples/commands/browser-settings/ for browser configurationUnderstand selectors :
examples/selectors/refs.md for refs-based selection (@e1, @e2, etc.)examples/selectors/traditional-selectors.md for CSS, XPath, and semantic locatorsUse agent mode :
examples/agent-mode/introduction.md for agent mode overviewexamples/agent-mode/optimal-workflow.md for optimal AI workflowexamples/agent-mode/integration.md for integrating with AI agentsAdvanced features :
examples/advanced/sessions.md for session managementexamples/advanced/headed-mode.md for debugging with visible browserexamples/advanced/authenticated-sessions.md for authentication via headersexamples/advanced/custom-executable.md for custom browser executableexamples/advanced/cdp-mode.md for Chrome DevTools Protocol integrationexamples/advanced/streaming.md for browser viewport streamingexamples/advanced/architecture.md for architecture overviewexamples/advanced/platforms.md for platform supportConfigure options :
examples/options/global-options.md for global CLI optionsexamples/options/snapshot-options.md for snapshot-specific optionsexamples/options/session-options.md for session management optionsReference API documentation when needed:
api/commands.md - Complete command referenceapi/selectors.md - Selector referenceapi/options.md - Options referenceUse templates for quick start:
templates/basic-automation.md - Basic automation workflowtemplates/ai-agent-workflow.md - AI agent workflow templateThis skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).
To use examples:
To use templates:
templates/ directory for common scaffoldingapi/commands.md - Complete command reference with syntax and examplesapi/selectors.md - Selector types and usage referenceapi/options.md - All options reference--json flag for machine-readable output in agent mode--session to maintain state across commands-i flag for interactive snapshot selection--headed for debugging, headless for production--cdp for Chrome DevTools Protocol integrationagent-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
Weekly Installs
54
Repository
GitHub Stars
257
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode46
codex46
gemini-cli45
github-copilot42
amp41
kimi-cli40
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
73,400 周安装
Vercel开发最佳实践:Next.js、React服务器组件与AI SDK部署指南
128 周安装
AI设计协作:从创意到规格的完整头脑风暴流程与设计文档生成
130 周安装
Docker Compose 编排指南:多容器应用部署、健康检查与环境管理(2024-2025)
127 周安装
AI社交销售内容生成器 - LinkedIn B2B潜在客户开发与内容策略工具
128 周安装
canghe-comic 知识漫画生成器:AI 驱动,灵活画风与基调组合,一键创作原创漫画
128 周安装
Reddit API 完整使用指南:Python PRAW 库集成、认证设置与速率限制详解
128 周安装
examples/commands/cookies-storage/ for cookies and storage managementexamples/commands/network/ for network interceptionexamples/commands/tabs-windows/ for tab and window managementexamples/commands/frames/ for iframe handlingexamples/commands/dialogs/ for dialog handlingexamples/commands/debug/ for debugging commandsexamples/commands/navigation/ for navigation commandsexamples/commands/setup/ for setup commandsexamples/advanced/usage-with-agents.md for AI agent integration patternsAGENT_BROWSER_STREAM_PORT--headers for authentication without login flows--executable-path for serverless deployments or custom browsers-i, -c, -d, -s options to optimize snapshot output