自动归档 (Junyi Family Knowledge Vault)
A three-layer knowledge management system for families. Turns the flood of daily
information into organized, retrievable, and reusable wisdom.
Design Principles
- - Low-friction capture, traceable distillation, cautious upgrades, long-term maintainability
- Only text content; images/video out of scope
- Storage: Obsidian physical files (not memory — survives Gateway restarts)
The Three Layers
CODEBLOCK0
Layer 1: Inbox (收集层)
Zero-friction entry point. Raw records organized by scene.
Default scenes:
| Scene | What goes here |
|---|
| 学习成长 | Class notes, reading highlights, lectures, courses, podcasts |
| 童言童语 |
Children's actual words, questions, expressions — preserved verbatim |
| 育儿观察 | Parents' observations of children — milestones, patterns, growth moments |
| 灵感闪现 | Sudden ideas, one-line thoughts, "what if..." moments |
| 对话收获 | Key takeaways from conversations with others |
| 工作记录 | Work insights, professional reflections |
| 生活记录 | Daily life events and feelings |
Custom scenes: When user proposes a new scene, confirm name once, then auto-create directory.
Layer 2: Cognition (认知层)
Distilled knowledge organized by five dimensions:
| Dimension | Directory name (exact) | The test | Examples |
|---|
| What I Learn | INLINECODE0 | "I learned this from someone/something else" | Book insights, article takeaways, lecture notes |
| What I Think |
cognition/What I Think/ | "I figured this out / observed this myself" | Personal reflections, parenting discoveries, patterns noticed |
|
What I Create |
cognition/What I Create/ | "I made/wrote/built this" | Articles, presentations, systems designed |
|
What I Collect |
cognition/What I Collect/ | "I want to keep this as-is" | Quotes, golden lines, sparks |
|
Who We Are |
cognition/Who We Are/ | "This defines who we are as a family" | Values, philosophy, long-term goals |
IMPORTANT: Use exact directory names above (with spaces, title case). Never convert to lowercase-hyphen format like what-i-think.
Classification rules:
- - External source primarily → What I Learn
- Self-observation/reflection primarily → What I Think
- Finished output → What I Create
- Fragment to keep as-is → What I Collect
- Family identity/values/rules → Who We Are
- Mixed content → classify by primary source; if both parts are important, split into two cognition entries
Layer 3: Guidebook (指南层)
Proven, reusable methods that answer "how to do X" concretely.
Admission criteria (strict):
- - User explicitly says "已验证", "反复有效", "用了较长时间", or similar
- OR original text contains clear validation evidence (e.g., "执行两个月有效")
- Methods that don't meet validation criteria stay in Cognition, not Guidebook
- Mark as "待验证" only if user wants to track an unvalidated method
Decision Flow (4 Steps)
Step 1: Determine user intent
- - User says "就存一下 / 先记下来 / 不用总结" → Only write
inbox, stop - Normal record → Write
inbox, then evaluate distillation (Step 3) - Explicitly validated method/process → Write
inbox + cognition + evaluate INLINECODE10
Step 2: Determine scene
- - Scene is clear → Route to corresponding
inbox/ directory - Scene is ambiguous but close → Pick closest match, preserve original context in content
- Scene truly unclear → Ask user, do not guess
Step 3: Determine whether to distill to Cognition
Distill when:
- - Content has clear viewpoints, patterns, insights, or conclusions
- Content has long-term reuse value
- Content is a quote/fragment worth collecting
- Content is from articles/lectures/courses that can be distilled
Do NOT distill when:
- - Pure memo or reminder
- Pure diary/stream-of-consciousness with no extractable insight
- User explicitly asked not to summarize
- Content only suitable for raw preservation
Short content exception: Short reflections (<200 chars) or single quotes can skip inbox and go directly to Cognition — the raw text IS the refined version, no need for duplicate storage.
Step 4: Determine whether to enter Guidebook
- - Has executable steps + validated effectiveness → Guidebook
- Just an idea, principle, or feeling → Stay in Cognition
- Unvalidated method → Stay in Cognition, upgrade later when validated
File Management Rules
When to create new file
- - New topic
- First record of the day under a new topic
- Content significantly different from existing notes
- Content belongs to a different layer or dimension
When to merge into existing file
- - Same day AND same scene/topic
- New content supplements existing content (not a new topic)
- Append with a separator (
---) and timestamp
When to update existing file
- - Guidebook: prefer updating original file over creating new ones; refresh "更新日期"
- Cognition: if supplementing the same insight, add a "补充观察" section
- Never overwrite raw inbox content for cosmetic reasons
Naming Rules
- - Inbox: INLINECODE13
- Cognition:
标题.md (no date prefix — cognition is topic-centric) - Guidebook: INLINECODE15
Title generation:
- - If user provided a title, use it
- Otherwise generate a natural-language title from the first 8-15 chars of content
- Never use abstract titles like "感悟1" or "笔记2"
Content Templates
Inbox
CODEBLOCK1
Cognition
CODEBLOCK2
Note: When content skips inbox (short reflections/quotes), 源文件 field is "用户即时输入".
Guidebook
CODEBLOCK3
Field defaults:
- - 来源 missing → "用户即时输入"
- Tags: 2-3 max, prefer topic/person/method keywords
- Preserve original attribution for articles/lectures/books
Source Traceability
- - Every cognition entry must trace back to an inbox file or "用户即时输入"
- Every guidebook entry must trace back to cognition or inbox
- No orphaned conclusions without traceable context
Long Text Handling
| Size | Strategy |
|---|
| < 30,000 chars | Write directly |
| ≥ 30,000 chars |
Chunked write (≤20K per chunk, break at paragraph boundaries) |
Never use obsidian-cli create --content — truncation bug.
After every write, verify:
CODEBLOCK4
Searching and Retrieval
- -
obsidian-cli search-content "<keyword>" — search note content - INLINECODE18 — search note titles
- INLINECODE19 +
grep — precise filesystem search
Configuration
Vault path configured per user. Default structure (use exact directory names):
CODEBLOCK5
自动归档 (Junyi Family Knowledge Vault)
面向家庭的三层知识管理系统。将日常信息洪流转化为有序、可检索、可复用的智慧。
设计原则
- - 低摩擦采集、可追溯提炼、谨慎升级、长期可维护
- 仅文本内容;图片/视频不在范围内
- 存储:Obsidian 物理文件(非内存——可抵御网关重启)
三层架构
收集层 (Inbox) → 原始采集,按场景组织
↓ AI 提炼(适当时)
认知层 (Cognition) → 按5个维度提炼的洞见
↓ 经证实的模式浮现
指南层 (Guidebook) → 经过验证的可复用指南、方法、清单
第一层:收集层 (Inbox)
零摩擦入口。按场景组织的原始记录。
默认场景:
| 场景 | 内容说明 |
|---|
| 学习成长 | 课堂笔记、阅读摘录、讲座、课程、播客 |
| 童言童语 |
孩子的原话、提问、表达——逐字保留 |
| 育儿观察 | 父母对孩子的观察——里程碑、模式、成长时刻 |
| 灵感闪现 | 突发奇想、一句话想法、如果……会怎样的瞬间 |
| 对话收获 | 与他人对话中的关键收获 |
| 工作记录 | 工作洞见、职业反思 |
| 生活记录 | 日常生活事件与感受 |
自定义场景: 当用户提出新场景时,确认一次名称,然后自动创建目录。
第二层:认知层 (Cognition)
按五个维度组织的提炼知识:
| 维度 | 目录名称(精确) | 判断标准 | 示例 |
|---|
| 我学到 | cognition/What I Learn/ | 我从他人/他处学到这个 | 书籍洞见、文章要点、讲座笔记 |
| 我所想 |
cognition/What I Think/ | 我自己想明白/观察到这个 | 个人反思、育儿发现、注意到的模式 |
|
我创造 | cognition/What I Create/ | 我制作/撰写/构建了这个 | 文章、演示文稿、设计的系统 |
|
我收藏 | cognition/What I Collect/ | 我想原样保留这个 | 引语、金句、灵感火花 |
|
我们是谁 | cognition/Who We Are/ | 这定义了作为家庭的我们 | 价值观、理念、长期目标 |
重要提示:使用上述精确目录名称(含空格、首字母大写)。切勿转换为小写连字符格式如 what-i-think。
分类规则:
- - 主要来自外部来源 → 我学到
- 主要是自我观察/反思 → 我所想
- 已完成输出 → 我创造
- 需原样保留的片段 → 我收藏
- 家庭身份/价值观/规则 → 我们是谁
- 混合内容 → 按主要来源分类;若两部分都重要,拆分为两个认知条目
第三层:指南层 (Guidebook)
经过验证、可复用的方法,具体回答如何做X。
准入标准(严格):
- - 用户明确说已验证、反复有效、用了较长时间或类似表述
- 或原文包含明确的验证证据(如执行两个月有效)
- 未达到验证标准的方法保留在认知层,不进指南层
- 仅当用户希望跟踪未验证方法时,标记为待验证
决策流程(4步)
第一步:确定用户意图
- - 用户说就存一下 / 先记下来 / 不用总结 → 仅写入inbox,停止
- 普通记录 → 写入inbox,然后评估提炼(第三步)
- 明确验证过的方法/流程 → 写入inbox + cognition + 评估guidebook
第二步:确定场景
- - 场景明确 → 路由到对应inbox/目录
- 场景模糊但接近 → 选择最接近的,在内容中保留原始上下文
- 场景确实不明确 → 询问用户,不要猜测
第三步:确定是否提炼到认知层
需要提炼时:
- - 内容有明确的观点、模式、洞见或结论
- 内容具有长期复用价值
- 内容是值得收藏的引语/片段
- 内容来自可提炼的文章/讲座/课程
不需要提炼时:
- - 纯备忘录或提醒
- 纯日记/意识流,无可提取的洞见
- 用户明确要求不总结
- 内容仅适合原始保存
短内容例外: 简短反思(<200字符)或单条引语可跳过收集层直接进入认知层——原始文本本身就是提炼版本,无需重复存储。
第四步:确定是否进入指南层
- - 有可执行步骤 + 已验证有效性 → 指南层
- 仅是想法、原则或感受 → 保留在认知层
- 未验证的方法 → 保留在认知层,验证后升级
文件管理规则
何时创建新文件
- - 新主题
- 同一主题下的当日首条记录
- 内容与现有笔记差异显著
- 内容属于不同层或维度
何时合并到现有文件
- - 同一天且同一场景/主题
- 新内容补充现有内容(非新主题)
- 用分隔符(---)和时间戳追加
何时更新现有文件
- - 指南层:优先更新原文件而非创建新文件;刷新更新日期
- 认知层:若补充同一洞见,添加补充观察部分
- 切勿因美观原因覆盖原始收集层内容
命名规则
- - 收集层:YYYY-MM-DD 标题.md
- 认知层:标题.md(无日期前缀——认知层以主题为中心)
- 指南层:主题名.md
标题生成:
- - 若用户提供了标题,使用之
- 否则从内容前8-15个字符生成自然语言标题
- 切勿使用感悟1或笔记2等抽象标题
内容模板
收集层
markdown
[标题]
日期:YYYY-MM-DD
场景:[场景名称]
来源:[来源,如适用]
[原始内容——尽量贴近原文,最小化格式]
认知层
markdown
[标题]
日期:YYYY-MM-DD
维度:[维度名称]
来源:[来源——文章名称、对话、经历等]
源文件:[对应的收集层文件名,如 inbox/学习成长/2026-03-13 蒙特梭利.md]
标签:#标签1 #标签2
[提炼内容——精炼、结构化、有洞见]
核心要点
注意:当内容跳过收集层(简短反思/引语)时,源文件字段为用户即时输入。
指南层
markdown
[标题]
更新日期:YYYY-MM-DD
适用场景:[何时使用本指南]
验证状态:[已验证 / 待验证]
来源:[对应的认知层或收集层文件名]
[分步指南、清单或方法论]
字段默认值:
- - 来源缺失 → 用户即时输入
- 标签:最多2-3个,优先使用主题/人物/方法关键词
- 保留文章/讲座/书籍的原始出处
来源可追溯性
- - 每个认知条目必须可追溯至一个收集层文件或用户即时输入
- 每个指南条目必须可追溯至认知层或收集层
- 不得有无上下文可追溯的孤立结论
长文本处理
| 大小 | 策略 |
|---|
| < 30,000 字符 | 直接写入 |
| ≥ 30,000 字符 |
分块写入(每块≤20K,在段落边界处分割) |
切勿使用 obsidian-cli create --content ——存在截断错误。
每次写入后,验证:
bash
ls -la # 文件存在且大小合理
tail -5 # 内容完整
搜索与检索
- - obsidian-cli search-content <关键词> — 搜索笔记内容
- obsidian-cli search <笔记名称> — 搜索笔记标题
- find + grep — 精确文件系统搜索
配置
保险库路径按用户配置。默认结构(使用精确目录名称):
[保险库根目录]/
├── inbox/
│ ├── 学习成长/
│ ├── 童言童语/
│ ├── 育儿观察/
│ ├── 灵感闪现/
│ ├── 对话收获/
│ ├── 工作记录/
│ └── 生活记录/
├