Loading...
Loading...
Compare original and translation side by side
~/.obsidian-wiki/configOBSIDIAN_VAULT_PATHOBSIDIAN_WIKI_REPO~/.obsidian-wiki/configbash setup.sh$OBSIDIAN_VAULT_PATH/.manifest.json$OBSIDIAN_VAULT_PATH/index.md~/.obsidian-wiki/configOBSIDIAN_VAULT_PATHOBSIDIAN_WIKI_REPO~/.obsidian-wiki/configbash setup.sh$OBSIDIAN_VAULT_PATH/.manifest.json$OBSIDIAN_VAULT_PATH/index.mdREADME.mdpackage.jsonpyproject.tomlgo.modCargo.toml.claude/README.mdpackage.jsonpyproject.tomlgo.modCargo.toml.claude/.manifest.jsonlast_commit_syncedgit log <last_commit>..HEAD --oneline.manifest.jsonlast_commit_syncedgit log <last_commit>..HEAD --oneline$VAULT/projects/<project-name>/projects/<project-name>/
├── <project-name>.md ← project overview (named after the project, NOT _project.md)
├── concepts/ ← project-specific ideas, architectures
├── skills/ ← project-specific how-tos, patterns
└── references/ ← project-specific source summaries<project-name>.md$VAULT/projects/<project-name>/projects/<project-name>/
├── <project-name>.md ← 项目概览(以项目名命名,不要用_project.md)
├── concepts/ ← 项目专属概念、架构
├── skills/ ← 项目专属操作指南、模式
└── references/ ← 项目专属源码总结<project-name>.md| What you found | Where it goes |
|---|---|
| A general concept learned | |
| A reusable pattern or technique | |
| A tool/service/person | |
| Cross-project analysis | |
| 提炼的内容类型 | 存放位置 |
|---|---|
| 学到的通用概念 | |
| 可复用的模式或技巧 | |
| 工具/服务/人物相关内容 | |
| 跨项目分析内容 | |
---
title: >-
Page Title
category: concepts
tags: [tag1, tag2]
sources: [projects/<project-name>]
summary: >-
One or two sentences (≤200 chars) describing what this page covers.
provenance:
extracted: 0.6
inferred: 0.35
ambiguous: 0.05
created: TIMESTAMP
updated: TIMESTAMP
---
Use folded scalar syntax (summary: >-) for title and summary to keep frontmatter parser-safe across punctuation (:, #, quotes) without escaping rules.
Keep the title and summary contents indented by two spaces under summary: >-.---
title: >-
Page Title
category: concepts
tags: [tag1, tag2]
sources: [projects/<project-name>]
summary: >-
One or two sentences (≤200 chars) describing what this page covers.
provenance:
extracted: 0.6
inferred: 0.35
ambiguous: 0.05
created: TIMESTAMP
updated: TIMESTAMP
---
标题和摘要使用折叠标量语法(summary: >-),避免标点(:, #, 引号)导致frontmatter解析出错,无需额外转义。
标题和摘要内容需要在summary: >-下缩进两个空格。
**Write a `summary:` frontmatter field** on every new/updated page (1–2 sentences, ≤200 chars), using `>-` folded style. For project sync, a good summary answers "what does this page tell me about the project I wouldn't guess from its title?" This field powers cheap retrieval by `wiki-query`.
**Apply provenance markers** per `llm-wiki` (Provenance Markers section). For project sync specifically:
- **Extracted** — anything visible in the code, config, or a doc/commit message: file structure, dependencies, function signatures, what a file does.
- **Inferred** — *why* a decision was made, design rationale, trade-offs, "the team chose X because Y" — unless a commit message, doc, or ADR states it explicitly.
- **Ambiguous** — when the code and docs disagree, or when there's clearly an in-progress migration with two patterns living side by side.
Compute the rough fractions and write the `provenance:` block on every new/updated page.
**每个新增/更新的页面都要填写`summary:` frontmatter字段**(1-2句话,不超过200字符),使用`>-`折叠格式。对于项目同步场景,好的摘要需要回答「这个页面告诉了我哪些从标题猜不到的项目相关信息?」,该字段可用于`wiki-query`的快速检索。
**按照`llm-wiki`(来源标识章节)的要求添加来源标记**,针对项目同步场景的具体规则:
- **Extracted(提取内容)** — 代码、配置、文档/提交信息中可见的任何内容:文件结构、依赖、函数签名、文件用途。
- **Inferred(推断内容)** — 决策背后的原因、设计逻辑、取舍考量、「团队选择X是因为Y」这类内容,除非提交信息、文档或架构决策记录明确说明。
- **Ambiguous(模糊内容)** — 代码和文档表述不一致,或者明显有正在进行的迁移,同时存在两种模式的情况。
计算大致的占比,在每个新增/更新的页面中写入`provenance:`区块。updatedindex.mdupdatedindex.md[[wikilinks]][[wikilinks]].manifest.json.manifest.json{
"projects": {
"<project-name>": {
"source_cwd": "/absolute/path/to/project",
"last_synced": "TIMESTAMP",
"last_commit_synced": "abc123f",
"pages_in_vault": ["projects/<project-name>/<project-name>.md", "..."]
}
}
}{
"projects": {
"<project-name>": {
"source_cwd": "/absolute/path/to/project",
"last_synced": "TIMESTAMP",
"last_commit_synced": "abc123f",
"pages_in_vault": ["projects/<project-name>/<project-name>.md", "..."]
}
}
}index.mdindex.mdlog.mdlog.md- [TIMESTAMP] WIKI_UPDATE project=<project-name> pages_updated=X pages_created=Y source_cwd=/path/to/project- [TIMESTAMP] WIKI_UPDATE project=<project-name> pages_updated=X pages_created=Y source_cwd=/path/to/projectconcepts/react-server-components.md$VAULT/_meta/taxonomy.md<project-name>.mdconcepts/react-server-components.md$VAULT/_meta/taxonomy.md<project-name>.md