grounded-citations
Skill này làm gì
Skill này giúp AI của bạn gắn một nguồn được đánh số cho mọi thông tin lấy từ web hoặc nguồn bên ngoài khác, và liệt kê các nguồn đó ở cuối. Skill dành cho nhà nghiên cứu, người viết và bất kỳ ai cần câu trả lời có thể xác minh.
Khi nào nên dùng
- ✓Khi bạn yêu cầu nghiên cứu hoặc so sánh dựa vào thông tin hiện tại từ web.
- ✓Khi bạn muốn một báo cáo, bản tóm tắt hoặc tài liệu trích dẫn hoặc thuật lại thông tin bên ngoài kèm nguồn.
- ✓Khi bạn muốn kiểm tra một câu trả lời quan trọng, với các trích dẫn và khẳng định được đánh dấu là đã xác minh hoặc chưa xác minh.
Liên kết skill
https://github.com/NousResearch/hermes-agent/blob/main/skills/research/grounded-citations/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
📦 Skill này nằm trong các gói sau
Ví dụ cách nhờ AI
“Nghiên cứu tình hình hiện tại về giá pin năng lượng mặt trời và cho tôi câu trả lời kèm các nguồn đánh số để tôi kiểm tra.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill dùng một script sổ cái nhỏ để lưu URL nguồn và số thứ tự của nó. AI chỉ dùng các số mà script cung cấp, nên trích dẫn khớp với những nguồn nó thực sự đã lấy.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
AI có bịa ra nguồn không?
Không. Skill cho biết số nguồn và URL đến từ quá trình truy xuất, không đến từ trí nhớ.
Nó làm gì với công việc có rủi ro cao?
Skill gắn các trích dẫn nguyên văn vào nguồn và đánh dấu các khẳng định từ kiến thức của model là chưa được xác minh.
Nó có hỗ trợ trích dẫn học thuật kiểu BibTeX không?
Không. Skill cho biết trích dẫn bài báo hội nghị nên dùng skill arxiv thay thế.
Chi tiết
Mô tả gốc của tác giả
Ground answers and documents in cited, verifiable sources.
Độ phổ biến
- Sao GitHub
- 260k
- Vị trí xếp hạng
- #617
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-merge-conflict-arbiter
260kGiải quyết xung đột merge git giữa nhánh của hai agent với vai trò bên trung lập, tạo ra một kết quả merge duy nhất cho repo.
antigravity-cli
260kHướng dẫn bạn cài đặt, cập nhật và khắc phục sự cố công cụ dòng lệnh Antigravity, gồm plugin, đăng nhập và sandbox.
blackbox
260kCho phép agent của bạn giao một tác vụ lập trình cho công cụ dòng lệnh Blackbox AI, công cụ chạy nhiều mô hình và chọn kết quả tốt nhất.
dynamic-workflow
260kDạy agent của bạn chạy các đợt công việc tương tự lớn như một script đã lưu, để chỉ kết quả đã kiểm chứng mới quay về cuộc trò chuyện chính.
Skill tương tự
graincrawl
394kCho phép agent của bạn tìm trong ghi chú cuộc họp và bản chép lời Granola đã lưu, kiểm tra độ mới và đếm số cuộc họp trong một khoảng thời gian.
notcrawl
394kCho phép agent của bạn tìm trong bản sao đã lưu của workspace Notion, tra cứu trang và database, rồi xuất trang ra file Markdown.
knowledge-entities
394kGiúp agent của bạn xác định người, công ty và dự án, rồi viết trang hồ sơ có nguồn cho họ trong kho Knowledge của bạn.