grounded-vault
它能做什么
一套帮你整理笔记和资料的系统,让你随时知道每条信息来自哪里,以及它是否仍与原始来源保持一致。
适用场景
- ✓把笔记、论文或代码整理成知识页面时。
- ✓需要核实数字、日期或引文的确切出处时。
- ✓页面描述的是代码,而你需要快速判断代码是否已经改变时。
技能链接
https://github.com/wshobson/agents/blob/main/plugins/documentation-standards/skills/grounded-vault/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我整理关于项目 X 的笔记,确保每条数据都能核对到原始来源,并且我能知道自己描述的代码是否仍然和之前一致。”
每周 5 个新技能,1 分钟读完。
工作原理
它把你的资料分成三个部分:raw(原始资料,永不改动)、wiki(基于原始资料编写、可以核实的内容)和 archive(旧版本存档)。它使用 Git 记录每次改动,并确保所有内容相互关联。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Grounded Vault
A grounded vault is a three-layer Markdown store in which every compiled claim can be traced
back to an immutable source and every page can be checked for staleness with one git diff.
It needs a git repository and nothing else. The convention comes from the llm-wiki-loop
project, which is a reference implementation rather than a dependency; this skill teaches the
pattern so it works with plain files and whatever agent is in the session.
When to Use
- An agent compiles notes, papers, transcripts, logs, or code into wiki pages that later sessions rely on.
- A page cites numbers, dates, or quotes, and a reader must be able to verify each one against its source.
- Pages describe code, and rereading the codebase every session to check whether they still hold is too expensive.
- Knowledge must be corrected without losing history: superseded pages are archived, never deleted.
Session state, task queues, and conversation continuity are a different problem; use the context-management or conductor plugins for those. This skill is about provenance and drift on a durable knowledge store.
The three layers
| Layer | Contents | Who writes it | Rule |
|---|---|---|---|
raw/ |
source material: notes, papers, transcripts, logs, exported data | people and ingestion only | immutable once added; agents never edit a raw file |
wiki/ |
compiled pages built from raw/ and from code |
agents and people | every number, date, and quote links to its source |
archive/ |
pages that drifted or were superseded | agents, during garbage collection | moved, never deleted; the header says why |
Two files sit at the vault root. index.md is the map of every current page. log.md is an
append-only record of what changed and why. Both change in the same commit as the page they
describe.
Page header contract
Every wiki/ page opens with a header block:
# Authentication architecture
> Raw: [raw/notes/auth-v1.md](../raw/notes/auth-v1.md), [raw/adr/0007-jwt.md](../raw/adr/0007-jwt.md)
> Fingerprint: git:5b237fa
> Monitored: src/auth/jwt.ts, src/auth/session.ts, package.json
> Status: Current
Raw:lists every source the page was compiled from. Inline claims link to their specific source as well:Tokens expire after 15 minutes ([raw/adr/0007-jwt.md](../raw/adr/0007-jwt.md)).Fingerprint:is the short commit hash the page was compiled against.Monitored:lists the code paths the page describes. A change to any of them after the fingerprint means the page may be stale.Status:isCurrent,Outdated(monitored code moved on), orDisputed(a newer source contradicts the page).
Grounding rule
A compiled page states only what a source supports, and every number, date, or quotation appears verbatim in the linked source. A synthesis says it is one and links its inputs. A gap in the sources is written into the page as a gap rather than filled by guessing.
Check it mechanically: for each linked claim, search the linked raw file for the exact figure
or quoted phrase. A miss is a grounding error and blocks the commit. The script in
references/details.md does this for a whole vault.
Drift detection
Compare the fingerprint with the current tree instead of rereading monitored code:
git diff --stat 5b237fa..HEAD -- src/auth/jwt.ts src/auth/session.ts package.json
Empty output means the page still describes the code it was compiled against. Any output means recompile: reread only the changed files, update the page, and stamp the new fingerprint. The check runs in milliseconds and spends no model tokens.
Workflow
Ingest. Put new material in
raw/under a dated or sourced filename. Never rewrite an existing raw file; add a new one beside it.Compile. Write or update the
wiki/page with the header block, a source link on every claim, and the fingerprint of the commit the code was read at.Check. Run the grounding check and the drift check before committing. Fix misses at the source; do not weaken a claim to make the check pass.
Garbage collect. When drift or a contradicting source appears and the page is not recompiled now, change its status, move it to
archive/, and record the reason:> Status: Outdated > Reason: src/auth/session.ts changed after git:5b237fa; see log.md 2026-09-01
…
常见问题
“immutable source”是什么意思?
意思是原始资料一旦加入就永远不会被修改。如果需要更正,就新增一个版本,而不是编辑旧的内容。
我怎么知道某个页面已经过时了?
页面会对比它创建时记录的代码或原始来源的“指纹”(一段用来标识内容的校验值)与当前状态。如果两者不一致,页面就会被标记为过时。
需要安装什么复杂的东西吗?
只需要一个 Git 仓库即可。这个系统介绍的是一套文件组织方式,可以配合常用工具使用。
详情
作者的原始描述
Use when maintaining a durable Markdown knowledge store that agents compile from sources, when every number or quote in a wiki page must trace back to an immutable source, or when compiled pages need cheap drift detection against the code they describe. Teaches the raw/wiki/archive layout, per-claim provenance links, and git fingerprints for zero-token staleness checks.
repo: wshobson/agents
热度
- GitHub 星标
- 41k
- 排名
- #6691
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …