Loading...
Loading...
Compare original and translation side by side
WIKI_PATH~/.hermes/.env~/wikiWIKI="${WIKI_PATH:-$HOME/wiki}"WIKI_PATH~/.hermes/.env~/wikiWIKI="${WIKI_PATH:-$HOME/wiki}"wiki/
├── SCHEMA.md # Conventions, structure rules, domain config
├── index.md # Sectioned content catalog with one-line summaries
├── log.md # Chronological action log (append-only, rotated yearly)
├── raw/ # Layer 1: Immutable source material
│ ├── articles/ # Web articles, clippings
│ ├── papers/ # PDFs, arxiv papers
│ ├── transcripts/ # Meeting notes, interviews
│ └── assets/ # Images, diagrams referenced by sources
├── entities/ # Layer 2: Entity pages (people, orgs, products, models)
├── concepts/ # Layer 2: Concept/topic pages
├── comparisons/ # Layer 2: Side-by-side analyses
└── queries/ # Layer 2: Filed query results worth keepingSCHEMA.mdwiki/
├── SCHEMA.md # 约定规则、结构规范、领域配置
├── index.md # 带单行摘要的分区内容目录
├── log.md # 按时间顺序的操作日志(仅追加,按年轮换)
├── raw/ # 第一层:不可变的原始素材
│ ├── articles/ # 网页文章、剪报
│ ├── papers/ # PDF、arxiv论文
│ ├── transcripts/ # 会议记录、访谈内容
│ └── assets/ # 素材引用的图片、图表
├── entities/ # 第二层:实体页面(人物、组织、产品、模型)
├── concepts/ # 第二层:概念/主题页面
├── comparisons/ # 第二层:对比分析页面
└── queries/ # 第二层:值得留存的查询结果归档SCHEMA.mdSCHEMA.mdindex.mdlog.mdWIKI="${WIKI_PATH:-$HOME/wiki}"SCHEMA.mdindex.mdlog.mdWIKI="${WIKI_PATH:-$HOME/wiki}"
Only after orientation should you ingest, query, or lint. This prevents:
- Creating duplicate pages for entities that already exist
- Missing cross-references to existing content
- Contradicting the schema's conventions
- Repeating work already logged
For large wikis (100+ pages), also run a quick `search_files` for the topic
at hand before creating anything new.
完成定位后才能进行内容纳入、查询或检查操作,避免:
- 为已存在的实体创建重复页面
- 遗漏与现有内容的交叉引用
- 违反Schema约定规则
- 重复已记录的工作
对于大型Wiki(100+页面),创建新内容前还需针对相关主题快速执行`search_files`搜索。$WIKI_PATH~/wikiSCHEMA.mdindex.mdlog.md$WIKI_PATH~/wikiSCHEMA.mdindex.mdlog.mdundefinedundefinedtransformer-architecture.md[[wikilinks]]updatedindex.mdlog.md^[raw/articles/source-file.md]sources:transformer-architecture.md[[wikilinks]]updatedindex.mdlog.md^[raw/articles/source-file.md]sources: ---
title: Page Title
created: YYYY-MM-DD
updated: YYYY-MM-DD
type: entity | concept | comparison | query | summary
tags: [from taxonomy below]
sources: [raw/articles/source-name.md]
# Optional quality signals:
confidence: high | medium | low # how well-supported the claims are
contested: true # set when the page has unresolved contradictions
contradictions: [other-page-slug] # pages this one conflicts with
---confidencecontestedcontested: trueconfidence: low ---
title: 页面标题
created: YYYY-MM-DD
updated: YYYY-MM-DD
type: entity | concept | comparison | query | summary
tags: [下方分类体系中的标签]
sources: [raw/articles/source-name.md]
# 可选质量标记:
confidence: high | medium | low # 内容主张的支撑程度
contested: true # 页面存在未解决矛盾时设置
contradictions: [other-page-slug] # 与当前页面存在矛盾的页面
---confidencecontestedcontested: trueconfidence: low---
source_url: https://example.com/article # original URL, if applicable
ingested: YYYY-MM-DD
sha256: <hex digest of the raw content below the frontmatter>
---sha256:------
source_url: https://example.com/article # 原始URL(如有)
ingested: YYYY-MM-DD
sha256: <前置元数据下方原始内容的十六进制摘要>
---sha256:---_archive/_archive/contradictions: [page-name]undefinedcontradictions: [page-name]undefinedundefinedundefinedContent catalog. Every wiki page listed under its type with a one-line summary. Read this first to find relevant pages for any query. Last updated: YYYY-MM-DD | Total pages: N
内容目录,所有Wiki页面按类型分类并附带单行摘要。 查询前请先阅读此索引以找到相关页面。 最后更新:YYYY-MM-DD | 总页面数:N
**Scaling rule:** When any section exceeds 50 entries, split it into sub-sections
by first letter or sub-domain. When the index exceeds 200 entries total, create
a `_meta/topic-map.md` that groups pages by theme for faster navigation.
**扩展规则**:当任意分区条目超过50条时,按首字母或子领域拆分;当索引总条目超过200条时,创建`_meta/topic-map.md`按主题分组页面,提升导航效率。undefinedundefinedChronological record of all wiki actions. Append-only. Format:Actions: ingest, update, query, lint, create, archive, delete When this file exceeds 500 entries, rotate: rename to log-YYYY.md, start fresh.## [YYYY-MM-DD] action | subject
所有Wiki操作的时间顺序记录,仅允许追加内容。 格式:操作类型:ingest, update, query, lint, create, archive, delete 当文件超过500条记录时,轮换日志:重命名为log-YYYY.md,重新开始记录。## [YYYY-MM-DD] 操作 | 主题
undefinedundefinedweb_extractraw/articles/web_extractraw/papers/raw/raw/articles/karpathy-llm-wiki-2026.mdsource_urlingestedsha256search_filesupdated[[wikilinks]]^[raw/articles/source.md]confidence: mediumlowhighindex.mdlog.md## [YYYY-MM-DD] ingest | Source Titleweb_extractraw/articles/web_extractraw/papers/raw/raw/articles/karpathy-llm-wiki-2026.mdsource_urlingestedsha256search_filesupdated[[wikilinks]]^[raw/articles/source.md]confidence: mediumlowhighindex.mdlog.md## [YYYY-MM-DD] ingest | 素材标题index.mdsearch_files.mdread_filequeries/comparisons/index.md.mdsearch_filesread_filequeries/comparisons/[[wikilinks]]undefined[[wikilinks]]undefined
② **Broken wikilinks:** Find `[[links]]` that point to pages that don't exist.
③ **Index completeness:** Every wiki page should appear in `index.md`. Compare
the filesystem against index entries.
④ **Frontmatter validation:** Every wiki page must have all required fields
(title, created, updated, type, tags, sources). Tags must be in the taxonomy.
⑤ **Stale content:** Pages whose `updated` date is >90 days older than the most
recent source that mentions the same entities.
⑥ **Contradictions:** Pages on the same topic with conflicting claims. Look for
pages that share tags/entities but state different facts. Surface all pages
with `contested: true` or `contradictions:` frontmatter for user review.
⑦ **Quality signals:** List pages with `confidence: low` and any page that cites
only a single source but has no confidence field set — these are candidates
for either finding corroboration or demoting to `confidence: medium`.
⑧ **Source drift:** For each file in `raw/` with a `sha256:` frontmatter, recompute
the hash and flag mismatches. Mismatches indicate the raw file was edited
(shouldn't happen — raw/ is immutable) or ingested from a URL that has since
changed. Not a hard error, but worth reporting.
⑨ **Page size:** Flag pages over 200 lines — candidates for splitting.
⑩ **Tag audit:** List all tags in use, flag any not in the SCHEMA.md taxonomy.
⑪ **Log rotation:** If log.md exceeds 500 entries, rotate it.
⑫ **Report findings** with specific file paths and suggested actions, grouped by
severity (broken links > orphans > source drift > contested pages > stale content > style issues).
⑬ **Append to log.md:** `## [YYYY-MM-DD] lint | N issues found`
② **无效维基链接**:查找指向不存在页面的`[[links]]`。
③ **索引完整性**:所有Wiki页面均应出现在`index.md`中,对比文件系统与索引条目。
④ **前置元数据验证**:所有Wiki页面必须包含必填字段
(title、created、updated、type、tags、sources),标签必须属于分类体系。
⑤ **过时内容**:`updated`日期比提及同一实体的最新素材日期晚90天以上的页面。
⑥ **矛盾内容**:同一主题下存在冲突主张的页面,查找共享标签/实体但事实表述不同的页面,标记所有`contested: true`或含`contradictions:`前置元数据的页面供用户审核。
⑦ **质量标记**:列出`confidence: low`的页面,以及仅引用单个来源但未设置置信度字段的页面——这些页面需补充佐证内容或降级为`confidence: medium`。
⑧ **素材变更**:对于`raw/`目录中含`sha256:`前置元数据的文件,重新计算哈希值并标记不匹配项。不匹配表示原始文件被编辑(不应发生——raw/目录为不可变)或来源URL内容已变更,虽非严重错误,但需向用户报告。
⑨ **页面长度**:标记超过200行的页面——此类页面需拆分。
⑩ **标签审计**:列出所有已使用的标签,标记未纳入SCHEMA.md分类体系的标签。
⑪ **日志轮换**:若log.md超过500条记录,执行轮换操作。
⑫ **按严重程度分组报告结果**——包含具体文件路径和建议操作(无效链接>孤立页面>素材变更>争议页面>过时内容>格式问题)。
⑬ **追加至log.md**:`## [YYYY-MM-DD] lint | 发现N个问题`undefinedundefinedundefinedundefined_archive/_archive/_archive/entities/old-page.mdindex.md_archive/_archive/_archive/entities/old-page.mdindex.md[[wikilinks]]raw/assets/![[image.png]]raw/assets/TABLE tags FROM "entities" WHERE contains(tags, "company")OBSIDIAN_VAULT_PATH[[wikilinks]]raw/assets/![[image.png]]raw/assets/TABLE tags FROM "entities" WHERE contains(tags, "company")OBSIDIAN_VAULT_PATHobsidian-headlessundefinedobsidian-headlessundefined
**Continuous background sync via systemd:**
```ini
**通过systemd实现后台持续同步**:
```ini
```bash
systemctl --user daemon-reload
systemctl --user enable --now obsidian-wiki-sync
```bash
systemctl --user daemon-reload
systemctl --user enable --now obsidian-wiki-sync
This lets the agent write to `~/wiki` on a server while you browse the same
vault in Obsidian on your laptop/phone — changes appear within seconds.
此设置可让Agent在服务器上写入`~/wiki`,同时你在笔记本/手机的Obsidian中浏览同一库——变更内容几秒内即可同步显示。raw/log-YYYY.mdraw/log-YYYY.md