grounded-citations
它能做什么
这项技能让你的 AI 为从网络或其他外部来源获取的每一个事实附上编号来源,并在结尾列出这些来源。适合研究人员、作者,以及任何需要能够核实答案的人。
适用场景
- ✓你需要的研究或比较依赖网络上的最新信息的时候。
- ✓你想要一份报告、简报或文档,其中引用或转述了外部事实并附上来源的时候。
- ✓你想核查重要结论,并标记引用和论断是已核实还是未核实的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/skills/research/grounded-citations/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
📦 包含此技能的技能包
可以这样问 AI
“请研究太阳能电池价格的当前状况,并给我一个附带编号来源、可供核查的答案。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能使用一个小型记录脚本,保存每个来源的网址及其编号。AI 只使用脚本给出的编号,因此引用内容与其实际获取的来源相符。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Grounded Citations
Every claim taken from an outside source gets an inline numbered citation and a
Sources: list, Perplexity-style. A ledger script owns the url → [n] mapping
so the numbers and URLs come from retrieval, never from memory — the model only
ever emits small integers it was handed.
For high-stakes work the same ledger doubles as a fact-checking chain: verbatim
quotes are attached to each source (rejected unless they literally appear in
the fetched page text), claims from model knowledge are flagged [unverified],
and verify --evidence fails any draft whose cited sources carry no evidence.
This skill covers answers in chat, written documents (markdown, PDF, docx,
slides), and research reports. It does not cover academic BibTeX pipelines —
for conference papers use the arxiv skill, which this skill
feeds (see references/citation-formats.md).
When to Use
Use whenever an answer or artifact rests on information you fetched rather than knew:
- Research, comparisons, news summaries, "what is the current state of X"
- Any deliverable you write to disk that quotes, paraphrases, or reports outside facts — reports, briefs, docs, decks, wiki pages
- Fact-finding where the user will want to check your work
- Multi-source synthesis where conflicting sources must be attributed
Skip inline citations when the retrieval is incidental to another task — a quick syntax/version lookup mid-coding, casual conversation, creative writing. Mention a URL only if the user would plausibly want the link.
Prerequisites
None beyond the standard toolset. scripts/sources.py is stdlib-only Python 3.
Retrieval comes from whatever is configured: web_search, web_extract,
browser_exec, or terminal (curl, CLIs).
Ledger location: $HERMES_HOME/cache/citations/ledger.json (profile-aware).
Override per task with --ledger <path> or HERMES_CITATION_LEDGER.
How to Run
S=~/.hermes/skills/research/grounded-citations/scripts/sources.py
python "$S" reset # start a clean ledger
python "$S" add https://example.com/a --title "A" # prints: [1]
python "$S" add https://example.com/b --title "B" # prints: [2]
python "$S" list # ledger table
python "$S" render # Sources: block
python "$S" verify draft.md # catch bad citations
add is idempotent and URL-normalized: the same page always returns the same
id within a ledger, so ids stay stable across many search/extract rounds.
Quick Reference
| Action | Command |
|---|---|
| Fresh ledger for a new task | sources.py reset |
| Register a source, get its id | sources.py add <url> [--title T] |
| Register several at once | sources.py add <url1> <url2> ... |
| Register from JSON tool output | sources.py ingest results.json |
| Attach verbatim evidence to a source | sources.py quote <id> --text "exact wording" --from page.txt |
| Show ledger | sources.py list [--json] |
| Render the Sources block | sources.py render [--style markdown|plain|footnotes|bibtex|evidence] [--only 1,3] |
| Render only what a draft cites | sources.py render --cited-in draft.md |
| Rewrite a draft's Sources block in place | sources.py render --replace-in draft.md |
| Check a draft's citations | sources.py verify draft.md [--strict] [--min-coverage 0.6] [--evidence] |
Procedure
① Reset the ledger at the start of a task that will produce a grounded answer or document. Skip the reset when continuing work whose ids are already in a draft — reusing the ledger keeps the numbering stable.
② Register every source at retrieval time. After each web_search /
web_extract / browser_exec / fetch, pass the URLs to sources.py add
(or pipe the raw JSON through sources.py ingest). Do this before writing
prose. Registering later, from memory, is the failure mode this skill exists to
prevent.
③ Write cite-while-drafting. Place the bracketed id(s) immediately after each sentence the source supports:
Ice floats because it is less dense than liquid water.[1][2]
- No space before the bracket; each id in its own brackets.
- Max 3 ids per sentence. Cite per sentence, not one dump at the end.
- Only ids the ledger returned. Never invent an id or a URL.
- Claims from your own knowledge get no citation.
- Conflicting sources: present both readings, each with its own id.
- Quote exact figures, dates, and names as the sou
常见问题
AI 会编造来源吗?
不会。技能说明来源编号和网址来自检索,而不是来自记忆。
对于重要的工作它会做什么?
技能会把逐字引文附在来源上,并把来自模型知识的论断标记为未核实。
它包括学术论文的 BibTeX 引用吗?
不包括。技能说明会议论文的引用应使用 arxiv 技能。
详情
热度
- GitHub 星标
- 260k
- 排名
- #617
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。