Token导航 LogoToken导航

Agent Skill · 研究检索

agent-eyes(特工的眼睛)

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

agent-eyes 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 66,577。

总安装 261周安装 11GitHub Stars 12下载 92核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/mrxyy/agents-eyes --skill agent-eyes

这个 Skill 是做什么的

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

Agent Eyes 提供基于页面元素锚定的精确定位能力,适用于 UI 任务中对特定按钮、区域或 DOM 节点的操作。适合处理“这个按钮”、“当前选中区域”等模糊指代的任务,提升代码修改的准确性。当项目未启用 context-first 行为规则时推荐使用,可替代纯文本路径定位方式。

需配合浏览器环境运行,注意其对页面结构的依赖;建议在静态页面稳定后再执行相关操作。agent-eyes 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/agent-eyes

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

agent-eyes 怎么安装?

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

agent-eyes 支持哪些 AI 工具?

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

agent-eyes 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

agent-eyes 是免费的吗?

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

agent-eyes 用的人多吗?

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

agent-eyes 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 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调用外部服务未明确有提醒
agent-eyes

特工的眼睛 · 本页

26112调用外部服务未明确通过

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

SKILL.md 原文

Agent Eyes Skill

When to Apply

  • Apply this skill for UI tasks that need element-anchored precision (for example: “this button”, “当前这个区域”, breadcrumb path, DOM path, selected node).
  • Apply this skill when the user refers to “this element”, “当前选中的元素”, “这里”, “这个按钮”, “这个区域”, breadcrumb path, DOM path, or a visual target on the page.
  • Apply this skill when the task requires precise code modification and the target should be anchored to a selected element instead of guessed from text alone.
  • Apply this skill when the project may not yet have @agent-eyes/agent-eyes installed or may not yet have an AGENTS.md rule enforcing context-first behavior.
  • Do not apply this skill for tasks that can be completed from explicit file paths, code snippets, or clear textual requirements without selected-element context.

Apply Order

  1. If @agent-eyes/agent-eyes is missing, install it first.
  2. If installation was performed in this run, help the user finish minimal plugin configuration for their bundler.
  3. If AGENTS.md is missing or lacks the Agent Eyes rule, create or update it.
  4. If the task is element-anchored/ambiguous, request GET /context/selected before editing code.
  5. If the response is data: null, the agent MUST continue with the default workflow and skip selected-context injection only.
  6. The agent MUST NOT block execution or require element selection as a prerequisite; it may optionally suggest re-selection only when precision risk is high.

Quick Workflow

  1. Check whether @agent-eyes/agent-eyes is installed.
  2. If missing, help install and provide minimal setup guidance.
  3. If installed during this run, actively help configure plugin entry in bundler config files.
  4. Verify config looks effective (plugin imported + plugin applied in config).
  5. Check whether the project already has AGENTS.md.
  6. If missing, create it. If present, append or refine the Agent Eyes workflow rule.
  7. Resolve service base URL.
  8. Request selected-context endpoint only when the target is element-anchored or ambiguous.
  9. If no active selection exists, continue normal code analysis/edit flow and treat context as unavailable.
  10. Validate and normalize response fields.
  11. Build a compact context block for the next agent request.

Check Plugin Installation

  • Detect package manager from lock files:
  • pnpm-lock.yaml -> use pnpm
  • yarn.lock -> use yarn
  • package-lock.json -> use npm
  • Check if @agent-eyes/agent-eyes exists in dependencies:
  • Inspect root package.json (dependencies and devDependencies).
  • If not found, install with the detected package manager:
  • pnpm add -D @agent-eyes/agent-eyes
  • yarn add -D @agent-eyes/agent-eyes
  • npm i -D @agent-eyes/agent-eyes
  • When replying to users, provide install commands on demand:
  • Default: only show one command that matches detected package manager.
  • If user asks for alternatives, then include pnpm / yarn / npm variants.
  • After install, do not stop at package installation:
  • Identify the active bundler/framework from project files (vite.config.*, webpack.config.*, next.config.*, nuxt.config.*, etc.).
  • Help the user update the real config file in-place (or give an exact patch) to include codeInspectorPlugin(...).
  • Include minimal bundler + showSwitch + agent.acp.command fields in example config.
  • Confirm import + plugin registration both exist after edit.
  • If package.json cannot be found, ask user to confirm project root before installation.

Post-Install Configuration Requirement

  • Treat "install plugin" as incomplete until configuration is done.
  • If auto-edit is allowed, modify the detected config file directly and summarize changes.
  • If multiple candidate config files exist, prefer the one used by current scripts in package.json.
  • If bundler cannot be inferred, ask one short blocking question and provide 2-3 likely file candidates.
  • After config, instruct user to start/restart dev server and verify Agent Eyes switch appears.

Bundler Configuration Examples (On Demand)

  • If user asks for "how to configure", provide the example matching their actual bundler/framework.
  • Do not dump all examples by default. Return one best-match snippet first, plus alternatives only when requested.
  • Load examples from references/bundler-examples.md.
  • Prefer reading only the relevant section in that file to keep context small.
  • All snippets should include minimal Agent Eyes config:
  • bundler
  • showSwitch: true
  • agent.acp.command

Ensure AGENTS.md Exists

  • Look for AGENTS.md in the current project root first.
  • If it does not exist, create AGENTS.md with the Agent Eyes workflow template from references/agents-template.md.
  • If it exists, preserve user content and append a short Agent Eyes section rather than replacing the whole file.
  • The inserted rule must require:
  • checking @agent-eyes/agent-eyes installation
  • fetching GET /context/selected before element-anchored/ambiguous UI modification
  • when data: null, continue with default workflow; skip selected-context injection only
  • do not force re-selection; only suggest it when precision risk is high

Resolve Base URL

  • Prefer an explicit value from user/tool input.
  • If an explicit project path is provided, resolve its git root first, then read that git root .code-inspector/record.json.
  • If no explicit project path is provided, resolve the current workspace git root, then read that git root .code-inspector/record.json.
  • Match the project path against entries in record.json using longest-prefix project-directory matching.
  • Probe candidate ports with GET /context/selected and use the first reachable base URL.
  • Fallback to http://127.0.0.1:5678.
  • Keep path configurable; do not hardcode if caller provides a different endpoint.
  • The agent MUST NOT search the filesystem for .code-inspector/record.json using ad-hoc globbing such as rg --files, find, or similar discovery when the git-root path is already known.
  • The agent MUST NOT guess ports by scanning common ports like 5678 3000 5173 8080.
  • The agent MUST only probe ports that come from the matched .code-inspector/record.json, plus the single fallback 5678.
  • If using MCP is available, prefer MCP resolution over reimplementing the lookup manually in the agent response flow.

Use this exact project-directory matching logic:

import path from 'path';

function isPathInside(targetPath: string, candidateRoot: string) {
  const normalizedTarget = path.resolve(targetPath);
  const normalizedRoot = path.resolve(candidateRoot);
  return (
    normalizedTarget === normalizedRoot ||
    normalizedTarget.startsWith(normalizedRoot + path.sep)
  );
}

function resolvePreferredProjectEntry(
  recordEntries: string[],
  projectPath: string
) {
  const normalizedProjectPath = path.resolve(projectPath);
  const matches = recordEntries
    .filter((entryRoot) => isPathInside(normalizedProjectPath, entryRoot))
    .sort((a, b) => b.length - a.length);

  return matches[0] || '';
}

Execution order MUST be:

  1. Determine the project path from explicit user project path first; otherwise use the current workspace path.
  2. Resolve the git root from that path.
  3. Read only <gitRoot>/.code-inspector/record.json.
  4. Run resolvePreferredProjectEntry(Object.keys(recordJson), projectPath) to get the single matched project directory.
  5. Probe only the matched project directory port first, then other ports from the same record.json, then fallback 5678.

Request Context Endpoint

  • Prefer GET /context/selected for read-only context retrieval.
  • If API requires POST, send an empty JSON body {} unless caller specifies filters.
  • Set Accept: application/json.
  • Use a short timeout (3-5 seconds) and report endpoint + timeout on failure.
  • Treat data: null as "there is no current selection". Do not reuse stale context from earlier requests; continue with default workflow without context injection.
  • For endpoint details and payload schema, read references/context-api.md.

Normalize Response

  • Accept either data wrapper or flat object.
  • Prefer multi-selection fields first:
  • activeSelectionId
  • selections / contexts
  • data.active and data.selections
  • Normalize into this shape:
  • activeSelectionId: string
  • active: object | null
  • contexts: object[]
  • selections: object[] (same as contexts)
  • For each context item, normalize:
  • filePath: string
  • line: number
  • column: number
  • elementName: string
  • dom.tagName: string
  • dom.className: string
  • dom.textContent: string (truncate to 200 chars)
  • domPath: string[]
  • If domPath is an object array, map with label || name.
  • If multi-selection fields are missing, fallback to single-selection fields from data or root object.
  • If required fields are missing, return a clear error listing missing keys.

Build Prompt Block

Use this template for downstream agent requests:

There are {selectionCount} selected DOM contexts. Consider all of them together.

{activePrefix}Selection #{index}
Source: {filePath}:{line}:{column}
Element: <{elementName} ...>
DOM: {tagName}, className: {className}, text: {textContent}
Path: {domPathJoined}

Request Example

curl -sS "${BASE_URL}/context/selected" \
  -H "Accept: application/json"

Failure Handling

  • If request fails, provide:
  • attempted URL
  • status code or network error
  • one concrete retry action (check server port, endpoint path, CORS, or auth header)
  • If the endpoint returns data: null, do not block the workflow; continue with default workflow and skip selected-context injection.
  • If context is stale, re-request immediately before sending code-modification prompt.

Notes

  • Keep this skill focused on plugin readiness + context retrieval + normalization.
  • Do not mix this skill with full code-edit workflows unless the user asks.
  • Prefer making the AGENTS.md rule persistent so future agent turns follow it even if this skill is not re-triggered.

平台分布

Codex

35.93%
按下载量换算33

Claude

28.4%
按下载量换算26

Cursor

18.46%
按下载量换算17

Gemini CLI

8.91%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

继续浏览同类 Skills