xerj-knowledge
它能做什么
搜索你电脑上的文件,例如笔记、PDF、Word 和 Excel 文件以及邮件导出文件,并返回带来源的段落。适合想在自己的文档中查找内容、又不想把文件上传到任何地方的人。
适用场景
- ✓当你想在合同或 PDF 中找到某条条款或日期时。
- ✓当你想回忆会议笔记中记下的决定时。
- ✓当你需要在保存的电子表格中找到某个数字时。
技能链接
https://github.com/xerj-org/xerj/blob/main/plugins/xerj-knowledge/skills/xerj-knowledge/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请找出提到续约日期的那份合同,并告诉我它在哪个文件的哪一页。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会在你的电脑上一次性为一个文件夹建立索引,然后搜索并返回按相关度排序、附带来源的段落。索引和文件都保存在本地,不会上传任何内容,每项结论都会注明出自哪个文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Search local documents with XERJ
XERJ indexes a folder on this machine and returns ranked passages with their source. Nothing is uploaded: the index and the files stay local.
When to use it
- "Find the contract that mentions the renewal date", "what did we decide about the budget in the March notes", "which spreadsheet has the Q3 numbers".
- Any question whose answer is in the user's own documents rather than on the web or in a code base.
How
- If the folder is not indexed yet, index it once (it is incremental on
re-runs, so running it again only picks up changed files):
xerj autoindex "<folder>" --prefix <name>Pick a short<name>per folder (for examplenotes,mail,finance) and reuse it. - Search with the MCP tool
xerj_search(a plain-string query is fine), or on the command line:xerj search --prefix <name> "<plain words>". The ranking matches words, not meaning, so use the words the document would use: names, titles, figures, phrases. - Open the passage's source before relying on it when the answer matters.
Citing
- Every claim in the answer names its source as it was printed: the file path, plus the page (PDF), slide (PPTX), sheet (XLSX) or message (mail) when the hit carries one.
- If nothing relevant comes back, say so and say what was searched (folder and prefix). Do not fill the gap from memory.
Limits
- XERJ needs the
xerjbinary on PATH and a running local node for these tools. If the tool is missing or the node is down, tell the user how to start it (see the plugin README) instead of guessing an answer. - Scanned PDFs without a text layer have no text to search.
常见问题
会上传任何内容吗?
不会。索引和文件都保留在你的电脑上。
为什么我的搜索没有结果?
搜索匹配的是词语而非含义,所以请使用文档中可能出现的名称、标题和数字。
它会注明来源吗?
会。每项结论都会注明文件,并在可用时注明页码、幻灯片、工作表或邮件。
详情
作者的原始描述
Search the user's own local documents (folders, notes, PDFs, Word, PowerPoint, Excel, EPUB, mail and mbox exports) with XERJ and answer with the file and page each fact came from. Use when the user asks to find something in their files, notes, mail or spreadsheets.
repo: xerj-org/xerj
热度
- GitHub 星标
- 19k
- 排名
- #10505
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …