Token导航 LogoToken导航

Agent Skill · 研究检索

chrome-automation(镀铬自动化)

chrome-automation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

chrome-automation 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 11,340。

总安装 11,384周安装 484GitHub Stars 公开资料未说明下载 3,988核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/zc277584121/marketing-skills --skill chrome-automation

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

chrome-automation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于关键词搜索、任务场景匹配和来源线索筛选等研究检索场景。

通过 npx skills add 命令从 GitHub 仓库安装,具体用法需结合 README 进一步确认。安装前建议检查权限范围、维护状态及是否涉及联网或文件操作。可结合原始仓库和 SKILL.md 文档核验实际功能与限制条件。

来源仓库内路径:skills/chrome-automation

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/zc277584121/marketing-skills --skill chrome-au…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

chrome-automation 怎么安装?

在终端执行 npx skills add https://github.com/zc277584121/marketing-skills --skill chrome-automation。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

chrome-automation 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

chrome-automation 需要什么权限?

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

chrome-automation 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

chrome-automation 用的人多吗?

公开数据是累计安装 11,384 次,近一周安装 484 次,下载 3,988 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

chrome-automation 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
chrome-automation

镀铬自动化 · 本页

11,384—操作浏览器未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Skill: Chrome Automation (agent-browser)

Automate browser tasks in the user's real Chrome session via the agent-browser CLI.

Prerequisite: agent-browser must be installed and Chrome must have remote debugging enabled. See references/agent-browser-setup.md if unsure.

Core Principle: Reuse the User's Existing Chrome

This skill operates on a single Chrome process — the user's real browser. There is no session management, no separate profiles, no launching a fresh Playwright browser.

Always Start by Listing Tabs

Before opening any new page, always list existing tabs first:

agent-browser --auto-connect tab list

This returns all open tabs with their index numbers, titles, and URLs. Check if the page you need is already open:

  • If the target page is already open → switch to that tab directly instead of opening a new one. The user likely has it open because they are already logged in and the page is in the right state. agent-browser --auto-connect tab <index>
  • If the target page is NOT open → open it in the current tab or a new tab. agent-browser --auto-connect open <url>

Why This Matters

  • The user's Chrome has their cookies, login sessions, and browser state
  • Opening a new page when one is already available wastes time and may lose login state
  • Many marketing platforms (social media dashboards, ad managers, CMS tools) require login — reusing an existing logged-in tab avoids re-authentication

Connection

Always use --auto-connect to connect to the user's running Chrome instance:

agent-browser --auto-connect <command>

This auto-discovers Chrome with remote debugging enabled. If connection fails, guide the user through enabling remote debugging (see references/agent-browser-setup.md).


Common Workflows

1. Navigate and Interact

# List tabs to find existing pages
agent-browser --auto-connect tab list

# Switch to an existing tab (if found)
agent-browser --auto-connect tab <index>

# Or open a new page
agent-browser --auto-connect open https://example.com
agent-browser --auto-connect wait --load networkidle

# Take a snapshot to see interactive elements
agent-browser --auto-connect snapshot -i

# Click, fill, etc.
agent-browser --auto-connect click @e3
agent-browser --auto-connect fill @e5 "some text"

2. Extract Data from a Page

# Get all text content
agent-browser --auto-connect get text body

# Take a screenshot for visual inspection
agent-browser --auto-connect screenshot

# Execute JavaScript for structured data
agent-browser --auto-connect eval "JSON.stringify(document.querySelectorAll('table tr').length)"

3. Replay a Chrome DevTools Recording

The user may provide a recording exported from Chrome DevTools Recorder (JSON, Puppeteer JS, or @puppeteer/replay JS format). See Replaying Recordings below.


Step-by-Step Interaction Guide

Taking Snapshots

Use snapshot -i to see all interactive elements with refs (@e1, @e2,...):

agent-browser --auto-connect snapshot -i

The output lists each interactive element with its role, text, and ref. Use these refs for subsequent actions.

Step Type Mapping

ActionCommand
Navigateagent-browser --auto-connect open <url> (optionally wait --load networkidle, but some sites like Reddit never reach networkidle — skip if open already shows the page title)
Clicksnapshot -i → find ref → click @eN
Fill standard inputclick @eN → fill @eN "text"
Fill rich text editorclick @eN → keyboard inserttext "text"
Press keypress <key> (Enter, Tab, Escape, etc.)
Scrollscroll down <amount> or scroll up <amount>
Wait for elementwait @eN or wait "<css-selector>"
Screenshotscreenshot or screenshot --annotate
Get page textget text body
Get current URLget url
Run JavaScripteval <js>

How to Distinguish Input Types

  • Standard input/textarea → use fill
  • Contenteditable div / rich text editor (LinkedIn message box, Gmail compose, Slack, CMS editors) → click/focus first, then use keyboard inserttext

Ref Lifecycle

Refs (@e1, @e2,...) are invalidated when the page changes. Always re-snapshot after:

  • Clicking links or buttons that trigger navigation
  • Submitting forms
  • Triggering dynamic content loads (AJAX, SPA navigation)

Verification

After each significant action, verify the result:

agent-browser --auto-connect snapshot -i   # check interactive state
agent-browser --auto-connect screenshot     # visual verification

Replaying Recordings

Accepted Formats

  1. JSON (recommended) — structured, can be read progressively: # Count steps jq '.steps | length' recording.json # Read first 5 steps jq '.steps[0:5]' recording.json
  2. @puppeteer/replay JS (import {createRunner})
  3. Puppeteer JS (require('puppeteer'), page.goto, Locator.race)

How to Replay

  1. Parse the recording — understand the full intent before acting. Summarize what the recording does.
  2. List tabs first — check if the target page is already open.
  3. Navigate — execute navigate steps, reusing existing tabs when possible.
  4. For each interaction step:

- Take a snapshot (snapshot -i) to see current interactive elements - Match the recording's aria/... selectors against the snapshot - Fall back to text/..., then CSS class hints, then screenshot - Do not rely on ember IDs, numeric IDs, or exact XPaths — these change every page load

  1. Verify after each step — snapshot or screenshot to confirm

Iframe-Heavy Sites

snapshot -i operates on the main frame only and cannot penetrate iframes. Sites like LinkedIn, Gmail, and embedded editors render content inside iframes.

Detecting Iframe Issues

  • snapshot -i returns unexpectedly short or empty results
  • Recording references elements not appearing in snapshot output
  • get text body content doesn't match what a screenshot shows

Workarounds

  1. Use eval to access iframe content: agent-browser --auto-connect eval --stdin <<'EVALEOF' const frame = document.querySelector('iframe[data-testid="interop-iframe"]'); const doc = frame.contentDocument; const btn = doc.querySelector('button[aria-label="Send"]'); btn.click(); EVALEOF Note: Only works for same-origin iframes.
  2. Use keyboard for blind input: If the iframe element has focus, keyboard inserttext "..." sends text regardless of frame boundaries.
  3. Use get text body to read full page content including iframes.
  4. Use screenshot for visual verification when snapshot is unreliable.

When to Ask the User

If workarounds fail after 2 attempts on the same step, pause and explain:

  • The page uses iframes that cannot be accessed via snapshot
  • Which element you need and what you expected
  • Ask the user to perform that step manually, then continue

Handling Unexpected Situations

Handle Automatically (do not stop):

  • Popups or banners → dismiss them (find text "Dismiss" click or find text "Close" click)
  • Cookie consent dialogs → accept or dismiss
  • Tooltip overlays → close them first
  • Element not in snapshot → try find text "..." click, or scroll to reveal with scroll down 300

Pause and Ask the User:

  • Login / authentication is required
  • A CAPTCHA appears
  • Page structure is completely different from expected
  • A destructive action is about to happen (deleting data, sending real content) — confirm first
  • Stuck for more than 2 attempts on the same step
  • All iframe workarounds have failed

When pausing, explain clearly: what step you are on, what you expected, and what you see.


Key Commands Reference

CommandDescription
tab listList all open tabs with index, title, and URL
tab <index>Switch to an existing tab by index
tab newOpen a new empty tab
tab closeClose the current tab
open <url>Navigate to URL
snapshot -iList interactive elements with refs
click @eNClick element by ref
fill @eN "text"Clear and fill standard input/textarea
type @eN "text"Type without clearing
keyboard inserttext "text"Insert text (best for contenteditable)
press <key>Press keyboard key
scroll down/up <amount>Scroll page in pixels
wait @eNWait for element to appear
wait --load networkidleWait for network to settle
wait <ms>Wait for a duration
screenshot [path]Take screenshot
screenshot --annotateScreenshot with numbered labels
eval <js>Execute JavaScript in page
get text bodyGet all text content
get urlGet current URL
set viewport <w> <h>Set viewport size
find text "..." clickSemantic find and click
closeClose browser session

Known Limitations

  1. Iframe blindness: snapshot -i cannot see inside iframes. See Iframe-Heavy Sites.
  2. find text strict mode: Fails when multiple elements match. Use snapshot -i to locate the specific ref instead.
  3. fill vs contenteditable: fill only works on <input> and <textarea>. For rich text editors, use keyboard inserttext.
  4. eval is main-frame only: To interact with iframe content, traverse via document.querySelector('iframe').contentDocument...

Multi-Platform Operations

When the user requests an action across multiple platforms (e.g., "publish this article to Dev.to, LinkedIn, and X"), do NOT attempt all platforms in a single conversation. Instead, launch sequential Agent subagents, one per platform.

Why Subagents

Each platform operation consumes ~25-40K tokens (reference file + snapshots + interactions). Running 3-5 platforms in one context risks hitting the 200K token limit and degrading late-platform accuracy. Each subagent gets its own fresh 200K context window.

How to Execute

  1. Prepare the content — confirm the post text, title, tags, and any platform-specific adaptations with the user.
  2. For each platform, launch a general-purpose Agent subagent with a prompt that includes:

- The full content to publish - Instructions to read the relevant reference file (e.g., Read /path/to/skills/chrome-automation/references/x.md) - Instructions to read the agent-browser skill file for command reference - The specific task (post, comment, reply, etc.) - Any platform-specific instructions (e.g., "use these hashtags on LinkedIn")

  1. Run subagents sequentially (one at a time), because they all share the same Chrome browser via --auto-connect. Parallel subagents would cause tab conflicts.
  2. After each subagent completes, report the result to the user before launching the next one.

Prompt Template for Subagents

You are automating a browser task on [PLATFORM].

First, read these files for context:
- /absolute/path/to/skills/chrome-automation/references/[platform].md
- /absolute/path/to/.claude/skills/agent-browser/SKILL.md (agent-browser command reference)

Then connect to the user's Chrome browser using `agent-browser --auto-connect` and perform the following task:

[TASK DESCRIPTION]

Content to publish:
[CONTENT]

Important:
- Always list tabs first (`tab list`) and reuse existing logged-in tabs
- Re-snapshot after every navigation or action
- Confirm with the user before submitting/publishing (destructive action)
- If login is required or a CAPTCHA appears, stop and explain

When NOT to Use Subagents

  • Single platform — just do it directly in the current conversation.
  • Read-only tasks (browsing, searching, extracting data) — context usage is lighter; a single conversation can handle 2-3 platforms.

Platform References

When automating tasks on specific platforms, consult the relevant reference document for page structure details, common operations, and known quirks:

PlatformReferenceKey Notes
Redditreferences/reddit.mdCustom faceplate-* components; networkidle never reached; unlabeled comment textbox; find text fails due to duplicate elements
X (Twitter)references/x.mdopen often times out (use tab list to reuse existing tabs); click timestamp for post detail (not username); DraftJS contenteditable input (data-testid="tweetTextarea_0"); avoid networkidle
LinkedInreferences/linkedin.mdEmber.js SPA; Enter submits comments (use Shift+Enter for newlines); comment box and compose box share the same label; avoid networkidle; messaging overlay may block content
Dev.toreferences/devto.mdFast server-rendered HTML (Forem/Rails); standard <textarea> for comments/posts (Markdown); 5 reaction types; Algolia-powered search; networkidle works normally
Hacker Newsreferences/hackernews.mdMinimal plain HTML; all form fields are unlabeled; link "reply" navigates to separate page; networkidle works instantly; rate limiting on posts/comments

For installation and Chrome setup instructions, see references/agent-browser-setup.md.

平台分布

Claude

33.18%
按下载量换算1,323

Codex

32.55%
按下载量换算1,298

Cursor

17.39%
按下载量换算694

Gemini CLI

9.95%
按下载量换算397

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills