eyeball
它能做什么
Eyeball 会分析文档并生成一份 Word 文件。文档中的每项论述都附有原始来源的截图,截图里的精确原文会被高亮标出,方便你核对。
适用场景
- ✓当你想确认文档中的信息是否属实时。
- ✓当你在审阅合同,需要核实具体条款时。
- ✓当你在研究一篇文章,想看看其中的事实出自哪里时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/eyeball/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“分析这份 PDF,并告诉我关于责任的信息在哪里。”
每周 5 个新技能,1 分钟读完。
工作原理
它会读取你提供的文档,找出重要论述,并在原始来源中定位对应的精确片段。然后生成一份新文档,里面包含这些论述和截图,供你核对。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Eyeball
Analyze documents with visual proof. When activated, Eyeball produces a Word document on the user's Desktop where every factual assertion includes an inline screenshot from the source material with the cited text highlighted in yellow.
Activation
When the user invokes this skill (e.g., "use eyeball", "run eyeball on this", "eyeball this document"), respond with:
Eyeball is active. I'll analyze the document and produce a Word doc with inline source screenshots so you can verify every claim with your own eyes.
Then follow the workflow below.
Supported Sources
- Local files: Word documents (.docx, .doc), PDFs (.pdf), RTF files
- Web URLs: Any publicly accessible web page
Tool Location
The Eyeball Python utility is located at:
<plugin_dir>/skills/eyeball/tools/eyeball.py
To find the actual path, run:
find ~/.copilot/installed-plugins -name "eyeball.py" -path "*/eyeball/*" 2>/dev/null
If not found there, check the project directory or the user's home directory for the eyeball repo.
First-Run Setup
Before first use, check that dependencies are installed:
python3 <path-to>/eyeball.py setup-check
If anything is missing, install the required dependencies:
pip3 install pymupdf pillow python-docx playwright
python3 -m playwright install chromium
On Windows, also install pywin32 for Word automation:
pip install pywin32
Workflow
Follow these steps exactly. The order matters.
Step 1: Read the source text
Before writing any analysis, extract and read the full text of the source document:
python3 <path-to>/eyeball.py extract-text --source "<path-or-url>"
Read the output carefully. Identify actual section numbers, headings, page numbers, and key language.
CRITICAL: Do not skip this step. Do not write analysis based on assumptions about how the document is structured. Read the actual text.
Step 2: Write analysis with exact citations
For each point in your analysis, you must:
- Reference the correct section number as it appears in the document (e.g., "Section 9" not "Section 8" because you assumed the numbering).
- Reference the correct page number where the section appears in the extracted text.
- Select anchors that are verbatim phrases from the source that directly support your claim.
Step 3: Select anchors correctly
This is the most important step. Anchors determine what gets highlighted in the screenshots.
DO:
- Use verbatim phrases from the source text that directly support your assertion
- Use multiple anchors to span the full range of text the reader should see
- Use specific, uncommon phrases that appear only where you intend
DO NOT:
- Use generic topic labels (e.g., "Confidentiality") that appear throughout the document
- Use section titles alone when they appear as cross-references elsewhere
- Use single common words that match in many places
Examples:
WRONG -- uses a generic topic label that matches everywhere:
{"anchors": ["User-Generated Content"], "target_page": 8}
RIGHT -- uses the specific language that supports the claim:
{"anchors": ["retain ownership", "Ownership of Content, Right to Post"], "target_page": 8}
WRONG -- section title appears as a cross-reference on earlier pages:
{"anchors": ["LIMITATION OF LIABILITY"]}
RIGHT -- includes the section number for precision, targets the correct page:
{"anchors": ["12. LIMITATION OF LIABILITY", "INDIRECT", "CONSEQUENTIAL"], "target_page": 13}
Step 4: Build the analysis document
Construct a JSON array of sections and call the build command:
python3 <path-to>/eyeball.py build \
--source "<path-or-url>" \
--output ~/Desktop/<title>.docx \
--title "Analysis Title" \
--subtitle "Source description" \
--sections '[
{
"heading": "1. Section Title",
"analysis": "Your analysis text here. Reference Section X on page Y...",
"anchors": ["verbatim phrase 1", "verbatim phrase 2"],
"target_page": 5,
"context_padding": 40
},
{
"heading": "2. Another Section",
"analysis": "More analysis...",
"anchors": ["exact quote from source"],
"target_pages": [10, 11],
"context_padding": 50
}
]'
Section object fields:
heading(required): Section heading in the output documentanalysis(required): Your analysis text
…
常见问题
什么是“锚点”(anchors)?
锚点是原文中的精确片段,AI 用它们来定位信息并生成截图。
如果 AI 找不到准确的原文怎么办?
最终文档会注明未找到该片段。原因可能是原文中确实没有这段文字,也可能是所用的“锚点”不够精确。
Eyeball 可以用于网页吗?
可以,它同时支持网页链接、Word 和 PDF 文件。
详情
作者的原始描述
Document analysis with inline source screenshots. When you ask Copilot to analyze a document, Eyeball generates a Word doc where every factual claim includes a highlighted screenshot from the source material so you can verify it with your own eyes.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7194
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。