nexu-io/open-design

agent-browsernexu-io/open-design

Browser automation CLI for AI agents.

  • SKILL.md 已保存
  • 英文来源资料
  • 安装与运行未实测
先判断是否解决你的问题

agent-browser 是什么?

Browser automation CLI for AI agents. Use when the user needs to inspect, test, or automate browser behavior: navigating pages, filling forms, clicking buttons, taking screenshots, extracting page data, reading selected OpenDesign browser-tab context, testing web apps, dogfooding OpenDesign previews, QA, bug hunts, or reviewing app quality. Prefer local OpenDesign preview URLs unless the user explicitly asks for external browsing.

以上为来源原文,中文用途说明尚待整理。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 agent-browser,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 agent-browser

请在 Codex 的当前工作环境中安装并检查 agent-browser 这个 Skill。

项目身份:nexu-io/open-design / agent-browser
来源:https://github.com/nexu-io/open-design/blob/e033aad1d15a9d4084316e5223f2c6597fd32619/skills/agent-browser/SKILL.md
已定位的源文件:skills/agent-browser/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-21T19:32:09.269Z
中文使用说明
尚待整理,保留英文来源内容
安装与任务测试
本站未执行安装或任务测试
来源复核
已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料

skills/agent-browser/SKILL.md · 抓取时间 2026-11-21T19:32:09.269Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Browser automation CLI for AI agents. Use when the user needs to inspect, test, or automate browser behavior: navigating pages, filling forms, clicking buttons, taking screenshots, extracting page data, reading selected OpenDesign browser-tab context, testing web apps, dogfooding OpenDesign previews, QA, bug hunts, or reviewing app quality. Prefer local OpenDesign preview URLs unless the user explicitly asks for external browsing.

查看源文件章节 / Source sections
  • 原文:Agent Browser
  • 原文:Requirements
  • 原文:Context Hygiene
  • 原文:Browser Context Extraction
  • 原文:CDP Startup Contract
  • 原文:OpenDesign Smoke Path
  • 工作流程 / Workflow
  • 原文:Safety Rules
  • 原文:Specialized Upstream Guides
原文:Agent Browser

Use `agent-browser` for local OpenDesign preview validation: inspect rendered state, click/type when requested, and capture one screenshot when visual evidence matters. Keep the browser local-first unless the user explicitly asks for external browsing. When the run prompt contains selected workspace context, prefer the selected `browser` tab URL/title as the target. Treat user phrases like "this page", "the current browser", "right-side tab", "extract the logo", "get the palette", "take an element screenshot", or "check OG/a11y" as requests about that selected tab unless the user names another target.

原文:Requirements

Verify the CLI before doing any browser work: ```bash command -v agent-browser ``` If missing, stop and tell the user to install it: ```bash npm i -g agent-browser agent-browser install ``` Do not replace the CLI with ad hoc browser scripts.

原文:Context Hygiene

Never print full upstream guides into chat or tool output. Save them to temp files and extract only task-relevant lines: ```bash AGENT_BROWSER_CORE="${TMPDIR:-/tmp}/agent-browser-core.$$.md" agent-browser skills get core > "$AGENT_BROWSER_CORE" rg -n "cdp|connect|snapshot|screenshot|click|type|wait|get title|get url" "$AGENT_BROWSER_CORE" ``` Use `agent-browser skills get core --full` only when needed, and redirect it to a temp file the same way.

原文:Browser Context Extraction

For selected OpenDesign browser tabs and browser-use/browser-harness-style tasks, collect the smallest useful evidence first: 1. Confirm the target with `agent-browser get title` and `agent-browser get url`. 2. Capture `agent-browser snapshot` before any extraction or click. 3. For visual evidence, save a page screenshot and, when the core guide exposes an element-screenshot command, capture the specific element instead of a cropped full page. 4. For logos, fonts, colors, images, motion code, OG metadata, page structure, and accessibility checks, prefer DOM/CSS/accessibility evidence from the attached browser over guessing from the rendered screenshot alone. 5. If the selected OpenDesign context only provided a URL/title and no browser automation tool is attached, say that directly and do not invent page internals. Save extracted design evidence as compact notes or assets in the project when the user is building from the reference. Do not paste full page HTML or large asset dumps into chat; summarize the relevant selectors, tokens, URLs, and screenshots.

原文:CDP Startup Contract

`agent-browser` must attach to an existing CDP endpoint. Never run `agent-browser open` before `agent-browser connect`; doing so can make the CLI auto-launch Chrome and re-enter the crash path. Do not run OpenDesign's own daemon CLI as a browser automation tool. Commands such as `od browser snapshot`, `daemon-cli.mjs browser snapshot`, or `$OD_NODE_BIN $OD_BIN browser snapshot` are not valid browser tools; they can be misinterpreted as daemon startup and open an internal `127.0.0.1:<port>` service in the system browser. Use the external `agent-browser` CLI attached to CDP instead. Every Chrome launch in this skill, including any ad-hoc fallback, must pass `--use-mock-keychain`. The smoke path below overrides `HOME`, and on macOS a Chrome started under a home directory without a login keychain shows a blocking "Keychain Not Found" dialog on every launch. The temporary profile needs no saved passwords, so the mock keychain loses nothing. Use this sequence: ```bash if ! curl -fsS http://127.0.0.1:9223/json/version | rg -q webSocketDebuggerUrl; then open -na "Google Chrome" --args \ --remote-debugging-port=9223 \ --user-data-dir=/tmp/od-agent-browser-chrome \ --use-mock-keychain \ --no-first-run \ --no-default-browser-check for i in {1..20}; do if curl -fsS http://127.0.0.1:9223/json/version | rg -q webSocketDebuggerUrl; then break fi sleep 0.5 done fi curl -fsS http://127.0.0.1:9223/json/version | rg webSocketDebuggerUrl agent-browser connect http://127.0.0.1:9223 ``` If CDP is still unavailable after polling, stop and ask the user to launch Chrome manually from Terminal: ```bash /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \ --remote-debugging-port=9223 \ --user-data-dir=/tmp/od-agent-browser-chrome \ --use-mock-keychain \ --no-first-run \ --no-default-browser-check ``` If Chrome exits before CDP is ready or reports `DevToolsActivePort`, report: "Chrome crashed before CDP became available; start Chrome manually with `--remote-debugging-port` and retry attach." Lightpanda is optional. Do not try `--engine lightpanda` unless `command -v lightpanda` succeeds.

原文:OpenDesign Smoke Path

Use a temp home and stable session: ```bash export HOME=/tmp/agent-browser-home export AGENT_BROWSER_SESSION=od-local-preview ``` When you start a temporary Chrome profile for this smoke path, close it before finishing the task. Prefer a shell trap around the whole smoke script: ```bash CHROME_USER_DATA_DIR=/tmp/od-agent-browser-chrome cleanup_agent_browser() { pkill -f -- "--user-data-dir=${CHROME_USER_DATA_DIR}" 2>/dev/null || true } trap cleanup_agent_browser EXIT INT TERM ``` With the OpenDesign preview at `http://127.0.0.1:17573/`, run: ```bash if ! curl -fsS http://127.0.0.1:9223/json/version | rg -q webSocketDebuggerUrl; then open -na "Google Chrome" --args \ --remote-debugging-port=9223 \ --user-data-dir="$CHROME_USER_DATA_DIR" \ --use-mock-keychain \ --no-first-run \ --no-default-browser-check for i in {1..20}; do if curl -fsS http://127.0.0.1:9223/json/version | rg -q webSocketDebuggerUrl; then break fi sleep 0.5 done fi curl -fsS http://127.0.0.1:9223/json/version | rg webSocketDebuggerUrl agent-browser connect http://127.0.0.1:9223 agent-browser open http://127.0.0.1:17573/ agent-browser get title agent-browser get url agent-browser snapshot agent-browser screenshot /tmp/od-agent-browser.png ``` Expected success: title `OpenDesign`, current URL under `127.0.0.1:17573`, visible OpenDesign UI text in the snapshot, and a screenshot at `/tmp/od-agent-browser.png`.

文件 SHA256:08138f1ba2ba949ff3fc30d40ae88ddefaca49e514cae56c4c0e673d211453f6

仓库许可证记录:Apache-2.0;repository-license-recorded-scope-unverified,查看来源。

SKILL.md原文description · 2026-11-21T19:32:09.269Z

Browser automation CLI for AI agents. Use when the user needs to inspect, test, or automate browser behavior: navigating pages, filling forms, clicking buttons, taking screenshots, extracting page data, reading selected OpenDesign browser-tab context, testing web apps, dogfooding OpenDesign previews, QA, bug hunts, or reviewing app quality. Prefer local OpenDesign preview URLs unless the user explicitly asks for external browsing.

查看历史简介来源

历史收录数据

来源仓库nexu-io/open-design
Skill源路径skills/agent-browser/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源