AGENT SKILL

browser-relay

Load when the task needs MatchaClaw's real browser: opening or inspecting live web pages, using logged-in Chrome state, clicking/typing/forms, reading dynamic DOM, taking screenshots/PDFs, uploads, cookies/storage, network/errors, or any `browser` tool workflow. Prefer relay mode; use direct-cdp only when requested or debugging browser connection.

License 许可
MIT
最近更新
2026-11-11
Stars
★ 0
Forks
0

01 前言 Front Matter

name
browser-relay
description
Load when the task needs MatchaClaw's real browser: opening or inspecting live web pages, using logged-in Chrome state, clicking/typing/forms, reading dynamic DOM, taking screenshots/PDFs, uploads, cookies/storage, network/errors, or any `browser` tool workflow. Prefer relay mode; use direct-cdp only when requested or debugging browser connection.

02 资源文件 2

03 SKILL.md 正文

browser-relay Skill

Use the browser tool as a real-browser control surface. Keep the loop short:

open/focus/navigate -> snapshot -> act -> snapshot/other proof -> done

Default Rules

  • Prefer connectionMode: "relay" or omit connectionMode; it reuses the user's Chrome state.
  • Use direct-cdp only when the user asks for it or when diagnosing relay connection failures.
  • Use snapshot as the primary observation. Use screenshot for visual evidence, not as the main action target source.
  • Treat refs from snapshot as short-lived. After navigation, rerender, list refresh, modal open/close, or failed action, run snapshot again.
  • Do not guess a tab. Use tabs or explicit targetId when the target is unclear.
  • After a page-changing act, verify with snapshot, wait, errors, requests, or screenshot as appropriate.
  • Stop when the user's goal is met. Close only agent-created tabs; do not close the user's own pages unless asked.

First Move

Choose the cheapest reliable start:

  • Known URL and a new work page is fine: call open.
  • User wants the current selected browser page: call snapshot; if it fails with no target, call status then tabs.
  • Target tab is ambiguous: call tabs, then focus the chosen targetId.
  • Browser/extension seems unavailable: call status; read references/troubleshooting.md only if status does not explain the issue.

Avoid a ritual status before every task. Use it on first connection, after failures, or when browser availability is unknown.

Core Calls

Use these shapes unless the task needs more.

Open:

{"action":"open","url":"https://example.com"}

Snapshot:

{"action":"snapshot","compact":true}

Interactive-only snapshot for crowded pages:

{"action":"snapshot","interactive":true,"compact":true}

Click a snapshot ref:

{"action":"act","request":{"kind":"click","ref":"e3"}}

Type or submit:

{"action":"act","request":{"kind":"type","ref":"e4","text":"search text","submit":true}}

Wait then re-observe:

{"action":"act","request":{"kind":"wait","text":"Loaded","timeoutMs":10000}}

Screenshot proof:

{"action":"screenshot","fullPage":false}

Observation Strategy

Prefer the smallest observation that can answer the next decision:

  • Need to operate: snapshot.
  • Need only visible proof for the user: screenshot.
  • Need page behavior debugging: errors, requests, then snapshot.
  • Need specific page text on a long page: use snapshot with filter or scoped selector before scrolling blindly.
  • Need lazy-loaded content: scroll, then snapshot.

Common Gotchas

  • console executes a JS expression; it is not the console-log viewer. Use errors or requests for diagnostics.
  • navigate changes an existing target. Use open when creating an agent-owned work tab.
  • targetId overrides the selected relay window. Pass it only when you are sure which tab to control.
  • highlight is a ref sanity check, not a substitute for snapshot.
  • Login walls: if target content is already visible, do not ask the user to log in. Ask only when the task is blocked by authentication.
  • Multi-tab work is for independent subtasks. Do not split a single linear checkout/login/form flow across tabs.

References

  • Read references/browser-tool-api.md when you need exact parameters or more examples.
  • Read references/troubleshooting.md when relay is unavailable, the wrong tab is controlled, refs go stale, or direct-cdp is being considered.

04 同仓库更多 Skills

hellowKeyzj
hellowKeyzj/Matcha-claw

网页结构化数据抓取

web-extract

获取社交/内容网站数据,Bilibili/知乎/微博/Reddit/HN/V2EX/雪球/微信读书/BOSS直聘/arXiv 等 60+ 站点的结构化数据,自动复用Chrome登录态,零风险。

数据分析师浏览器自动化与网页交互
★ 0
hellowKeyzj
hellowKeyzj/Matcha-claw

openclaw-maintenance

诊断和维护 Matcha 托管的本地 OpenClaw,按证据申请最小修复并核实恢复。Use when 用户说 OpenClaw 起不来、启动失败、运行异常,要求检查配置、日志、数据库或进行维护修复;不用于创建 Agent、通用系统管理或后台巡检。

★ 0
hellowKeyzj
hellowKeyzj/Matcha-claw

女娲造人Skill生成

nuwa-skill

女娲造人:输入人名/主题/甚至只是模糊需求,自动深度调研→思维框架提炼→生成可运行的人物Skill。 两种入口:(1)明确人名→直接蒸馏 (2)模糊需求→诊断推荐→再蒸馏。 触发词:「造skill」「蒸馏XX」「女娲」「造人」「XX的思维方式」「做个XX视角」「更新XX的skill」。 模糊需求也触发:「我想提升决策质量」「有没有一种思维方式能帮我...」「我需要一个思维顾问」。

AI 工程师智能体开发
★ 0
hellowKeyzj
hellowKeyzj/Matcha-claw

多引擎网络搜索

multi-search-engine

凡是需要使用 web_search 搜索任何信息时必须优先激活。覆盖所有联网查询场景:新闻、资讯、事件、价格、人物、公司、热点等。结合多引擎覆盖(百度/微信/集思录等中文源),并自动读取原文确认内容完整性。适用于任何需要联网查询的场景。

普通用户网页搜索与信息研究
★ 0
hellowKeyzj
hellowKeyzj/Matcha-claw

LLM Wiki 知识库查询

llm-wiki

通过 Matcha 共用 MCP 服务器 matcha 查询用户的 LLM Wiki 知识库,支持页面检索、正文读取、目录、知识图谱和源文件任务查看。仅在用户明确提到 LLM Wiki、我的 wiki、我的知识库 / knowledge base,或要求查询 wiki 页面、知识图谱、扫描 wiki 源文件时触发;不用于泛指笔记、本地文件、Obsidian、Notion、Apple Notes、Logseq 等其他工具或开放网络检索。自动使用用户在 Wiki 页或 Chat 输入框选择的全局当前库,不绑定会话。默认只读;导入、刷新、扫描、写入、删除与嵌入仅在用户明确要求时执行。

知识工作者知识管理与沉淀
★ 0
hellowKeyzj
hellowKeyzj/Matcha-claw

每日新闻简报生成

daily-news-briefing

通用每日新闻简报生成器。聚合并总结用户指定任何主题(AI、金融、地缘政治、体育、科技、科学等)的最新新闻,来源多样。当用户请求今日新闻、每日简报或任何主题的最新动态时激活——例如'给我今天的AI资讯'、'帮我整理一下美股新闻'、'科技行业有什么新动态'、'今日财经简报'。

新闻工作者简报生成与发布
★ 0