grounded-citations
하는 일
이 스킬은 AI가 웹이나 다른 외부 자료에서 가져온 모든 사실에 번호 붙은 출처를 달고, 끝에 그 출처 목록을 적도록 합니다. 검증 가능한 답변이 필요한 연구자, 작가, 그리고 모든 사람을 위한 스킬입니다.
사용하는 경우
- ✓최신 웹 정보에 의존하는 조사나 비교를 요청할 때.
- ✓외부 사실을 인용하거나 보고하는 보고서, 요약, 문서가 필요할 때.
- ✓중요한 답변을 확인하면서 인용문과 주장이 검증되었는지 표시하고 싶을 때.
스킬 링크
https://github.com/NousResearch/hermes-agent/blob/main/skills/research/grounded-citations/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
📦 이 스킬이 포함된 팩
AI에게 요청하는 예시
“태양광 배터리 가격의 현재 상황을 조사해서, 제가 확인할 수 있도록 번호가 붙은 출처와 함께 답해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 작은 원장 스크립트로 각 출처 URL과 번호를 기록합니다. 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가 출처를 지어내나요?
아니요. 스킬에 따르면 출처 번호와 URL은 기억이 아니라 검색에서 나옵니다.
중요도가 높은 작업에는 무엇을 하나요?
스킬은 출처에 원문 그대로의 인용문을 붙이고, 모델 지식에서 나온 주장은 미검증으로 표시합니다.
학술 BibTeX 인용도 다루나요?
아니요. 스킬은 학회 논문 인용에는 arxiv 스킬을 쓰라고 합니다.
상세 정보
인기도
- GitHub 스타
- 260k
- 순위
- #617
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-merge-conflict-arbiter
260k병렬로 작업한 두 에이전트 브랜치 사이의 git 병합 충돌을 중립적인 제3자로서 해결하고, 저장소에 하나의 병합 결과를 만듭니다.
antigravity-cli
260kAntigravity 명령줄 도구의 설치, 업데이트, 플러그인, 로그인, 샌드박스 문제를 해결하도록 단계별로 안내합니다.
blackbox
260k에이전트가 여러 AI 모델을 실행해 최선의 결과를 고르는 Blackbox AI 명령줄 도구에 코딩 작업을 맡기도록 돕습니다.
dynamic-workflow
260k많은 비슷한 작업을 저장된 스크립트로 실행하고, 검증된 결과만 메인 대화로 돌아오도록 에이전트에게 가르칩니다.
비슷한 스킬
graincrawl
394k에이전트가 저장된 Granola 회의 메모와 기록을 검색하고, 최신 상태를 확인하며, 일정 기간 동안 개수를 세도록 돕습니다.
notcrawl
394k에이전트가 저장된 Notion 워크스페이스 사본을 검색하고, 페이지와 데이터베이스를 찾아보며, 페이지를 Markdown 파일로 내보내도록 돕습니다.
knowledge-entities
394k에이전트가 사람, 회사, 프로젝트가 무엇인지 식별한 뒤, Knowledge 볼트에 출처가 있는 프로필 페이지를 작성하도록 돕습니다.