自动归档 (Two-Domain Knowledge Vault)
A two-domain knowledge management system. Turns the flood of daily information into
organized, retrievable, and reusable wisdom.
Two domains:
- 事业域 (
{business_name}/) — Business content organized by function
- 生活学习域 (
生活学习/) — Personal growth organized by three layers (收集层→认知层→指南层)
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)
Configuration
The following must be configured per user (via workspace files, e.g. TOOLS.md or MEMORY.md):
| Key |
Description |
Example |
vault_path |
Obsidian vault root directory (absolute path) |
/Users/someone/Documents/MyVault |
business_name |
Business domain directory name (user-defined) |
享育心塾 |
If not configured: Ask user to provide both values before first use. Never hardcode paths or names.
Top-Level Decision Flow
Step 0: Business or Life & Learning?
This is always the first routing decision.
| Route to |
Signal |
Examples |
事业域 {business_name}/ |
Directly related to user's business, clients, products, operations, commercial activities |
课程设计、运营策略、客户报告、活动复盘、商业学习笔记、营销素材、周会记录、方法论产品 |
生活学习域 生活学习/ |
Personal growth, family, spiritual practice, hobbies, general learning, children, daily life |
育儿观察、修行笔记、个人感悟、读书心得(非商业)、家庭记录、兴趣爱好 |
Ambiguous cases:
- Content about a topic that serves both business and personal growth → Ask user which domain
- Learning content: "Is this learning FOR the business or FOR personal growth?" — if clearly business-related (e.g., marketing course for the business), route to
{business_name}/学习笔记/; if general personal development, route to 生活学习/
事业域 ({business_name}/)
Business content organized by function, no three-layer nesting.
Directory Structure
{business_name}/
├── 课程/ ← Course design, curricula, teaching materials, class notes
├── 运营/ ← Marketing strategies, growth plans, funnel analysis, metrics
├── 方法论产品/ ← SOPs, templates, prompts designed FOR clients to use
├── 客户报告/ ← Reports, assessments, analyses produced FOR clients
├── 活动档案/ ← Event records, recaps, attendee feedback, photos notes
├── 周会/ ← Meeting notes, agendas, action items
├── 素材/ ← Marketing copy, social media content, design briefs
└── 学习笔记/ ← External learning relevant to the business (courses, articles, peers)
Business Domain Routing Rules
| Content type |
Route to |
Signal words |
| Course design, curricula, lesson plans, teaching materials |
{business_name}/课程/ |
课程、课件、大纲、教案、回放 |
| Marketing, growth, operations strategy |
{business_name}/运营/ |
运营、增长、转化、漏斗、复购、私域 |
| SOPs/templates/prompts for clients |
{business_name}/方法论产品/ |
SOP、模板、prompt、工具包、给家长用 |
| Reports/assessments for clients |
{business_name}/客户报告/ |
报告、评估、分析、成长规划 |
| Event records and recaps |
{business_name}/活动档案/ |
活动、沙龙、工作坊、公开课、复盘 |
| Meeting notes |
{business_name}/周会/ |
周会、会议、议程、行动项 |
| Marketing copy, social content |
{business_name}/素材/ |
海报、文案、朋友圈、推文、宣传 |
| Business-related external learning |
{business_name}/学习笔记/ |
XX的分享、行业报告、商业课程、同行案例 |
Custom sub-directories: Within each function directory, organize by sub-topic or date as needed:
- Single event, 1 file →
YYYY-MM-DD 主题描述.md
- Single event, multiple files →
YYYY-MM-DD 活动名/ sub-directory
- Cross-day event →
YYYY-MM 活动名/ sub-directory
Business Domain Naming Rules
- Files:
YYYY-MM-DD 主题描述.md (with date) or 主题名.md (for evergreen docs like SOPs)
- Sub-directories:
YYYY-MM-DD 活动名/ or topic-based names
- Follow the universal naming rules below (no person names in titles, use
—— separator, etc.)
生活学习域 (生活学习/)
Personal and family content organized by the three-layer system.
生活学习/
├── 收集层/ → Raw capture, organized by scene
│ ↓ AI distills (when warranted)
├── 认知层/ → Refined insights by 5 dimensions
│ ↓ Proven patterns emerge
└── 指南层/ → Verified reusable guides, methods, checklists
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 (non-business) |
| 童言童语 |
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 |
| 生活记录 |
Daily life events and feelings |
Custom scenes: When user proposes a new scene, confirm name once, then auto-create directory.
Repeating content types (journals, weekly reviews, etc.) get their own scene directory — don't stuff them into 学习成长.
Layer 2: 认知层 (Cognition)
Distilled knowledge organized by five dimensions:
| Dimension |
Directory name (exact) |
The test |
Examples |
| What I Learn |
认知层/What I Learn/ |
"I learned this from someone/something else" |
Book insights, article takeaways, lecture notes |
| What I Think |
认知层/What I Think/ |
"I figured this out / observed this myself" |
Personal reflections, parenting discoveries, patterns noticed |
| What I Create |
认知层/What I Create/ |
"I made/wrote/built this" |
Articles, presentations, systems designed |
| What I Collect |
认知层/What I Collect/ |
"I want to keep this as-is" |
Quotes, golden lines, sparks |
| Who We Are |
认知层/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.
🔴 分类防线(必须执行):
来源测试(分类前必做):这个知识/观点是谁产出的?
- 从他人/外部来源学到的 → What I Learn(即使内容包含"对我的启发""素材整理",来源是他人就是 Learn)
- 用户自己悟到/观察到的 → What I Think
- 信号词:标题含他人名字、"XX的框架""XX分享" → 大概率 Learn
重复类型第一次就建独立目录:早间日报、周报、日志等定期产出物,第一次归档时就在收集层建独立场景目录,不塞进「学习成长」
同一活动/事件的多条内容 → 先建活动子目录:识别信号是同一天、同一来源、同一主题的多条内容,先建 YYYY-MM-DD 活动名 子目录再逐条归入
What I Think 按主题域建子目录:
- 子目录示例:AI理念、教育理念、修行理念、事业理念
- 写入前先检查是否有匹配的子目录,没有则考虑新建
- 避免根目录堆积
What I Learn 按主题域建子目录:
- 子目录示例:AI与技术、商业与创业、修行与心法、育儿与教育
- 写入前先检查是否有匹配的子目录,没有则考虑新建
- 避免根目录堆积
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
Directory rules:
- Organized by project/domain sub-directories (e.g.,
指南层/写作系统/, 指南层/孩子教育/)
- No loose files in 指南层 root — every file must be in a topic sub-directory
Life & Learning Decision Flow
After routing to 生活学习域, follow these steps:
Step 1: Determine user intent
- User says "就存一下 / 先记下来 / 不用总结" → Only write
收集层, stop
- Normal record → Write
收集层, then evaluate distillation (Step 3)
- Explicitly validated method/process → Write
收集层 + 认知层 + evaluate 指南层
Step 2: Determine scene
- Scene is clear → Route to corresponding
收集层/ 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 认知层
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 收集层 and go directly to 认知层 — the raw text IS the refined version, no need for duplicate storage.
Step 4: Determine whether to enter 指南层
- Has executable steps + validated effectiveness → 指南层
- Just an idea, principle, or feeling → Stay in 认知层
- Unvalidated method → Stay in 认知层, upgrade later when validated
Universal Rules (Both Domains)
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/dimension/function
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 content for cosmetic reasons
🔴 标题命名规则(必须执行)
通用规则
- 不含人名:标题聚焦概念/主题本身,人名放在文件内部 metadata(来源字段)
- ❌
黄有璨的AI焦虑三分法 → ✅ AI焦虑三分法
- ❌
韩叙:一人公司框架 → ✅ 一人公司框架
- ❌
刘思毅:深圳AI嘉年华 → ✅ 深圳AI嘉年华——观察与三个判断
- 分隔符统一用
——(中文破折号),不用 :、-、:
- 标题要精准直接:描述内容核心,不用口语化/吸引眼球的表达
- ❌
你的小龙虾可能悄悄出卖了你 → ✅ AI Agent安全隐患与防护
- 产品名用正式名称:
龙虾 → OpenClaw
收集层标题(生活学习域)
- 格式:
YYYY-MM-DD 主题描述.md
- 子目录内文件可省略日期前缀(如
简版.md、详细版.md)
- 活动子目录:
YYYY-MM-DD 活动名/ 或 YYYY-MM 活动名/
认知层标题(生活学习域)
- 格式:
标题.md(无日期前缀,认知按主题组织不按时间)
- 从提炼内容中提取核心概念作为标题
指南层标题(生活学习域)
- 格式:
主题名.md(无日期前缀)
- 面向行动:回答"怎么做X"
事业域标题
- 带日期的记录:
YYYY-MM-DD 主题描述.md
- 常青文档(SOP、模板等):
主题名.md
Content Templates
事业域文件
# [Title]
> 日期:YYYY-MM-DD
> 类别:[function directory name, e.g., 课程/运营/方法论产品]
> 来源:[source if applicable]
---
[Content — structured appropriately for the function type]
收集层 (生活学习域)
# [Title]
> 日期:YYYY-MM-DD
> 场景:[scene name]
> 来源:[source if applicable]
---
[Original content — keep close to original, minimal formatting]
认知层 (生活学习域)
# [Title]
> 日期:YYYY-MM-DD
> 维度:[dimension name]
> 来源:[source — article name, conversation, experience, etc.]
> 源文件:[corresponding inbox filename, e.g., 生活学习/收集层/学习成长/2026-03-13 蒙特梭利.md]
> 标签:#tag1 #tag2
---
[Refined content — distilled, structured, insightful]
## 核心要点
- Point 1
- Point 2
Note: When content skips 收集层 (short reflections/quotes), 源文件 field is "用户即时输入".
指南层 (生活学习域)
# [Title]
> 更新日期:YYYY-MM-DD
> 适用场景:[when to use this guide]
> 验证状态:[已验证 / 待验证]
> 来源:[corresponding cognition or inbox filename]
---
[Step-by-step guide, checklist, or methodology]
Field defaults:
- 来源 missing → "用户即时输入"
- Tags: 2-3 max, prefer topic/person/method keywords
- Preserve original attribution for articles/lectures/books
Source Traceability
- Every 认知层 entry must trace back to a 收集层 file or "用户即时输入"
- Every 指南层 entry must trace back to 认知层 or 收集层
- 事业域 files should note their source in the 来源 field
- 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:
ls -la "<file>" # exists and reasonable size
tail -5 "<file>" # content is complete
🔴 乱码检查(每次写入后必须执行)
python3 -c "c=open('<file_path>').read(); n=c.count('\ufffd'); print(f'{n}个乱码') if n else print('✅')"
Found U+FFFD (�) → infer correct character from context, fix with edit, re-verify.
Searching and Retrieval
obsidian-cli search-content "<keyword>" — search note content
obsidian-cli search "<note name>" — search note titles
find + grep — precise filesystem search
🔴 目录构建规则(必须执行)
事业域目录规则
- 顶层按功能分8个目录:课程、运营、方法论产品、客户报告、活动档案、周会、素材、学习笔记
- 功能目录内部按需建子目录:
- 单次活动1个文件 → 直接放
YYYY-MM-DD 主题描述.md
- 单次活动多个文件 → 建
YYYY-MM-DD 活动名/ 子目录
- 跨日活动 → 建
YYYY-MM 活动名/ 子目录
- 系列内容 → 建主题子目录(如
课程/公开课系列/)
- 新的功能类型:如果内容不匹配现有8个目录,先考虑归入最近似的;确实需要新目录时,向用户确认后新建
生活学习域——收集层目录规则
- 顶层按场景分目录:学习成长、童言童语、育儿观察、灵感闪现、对话收获、生活记录等
- 重复类型独立建目录:日报、周报、日志等定期产出物,不塞进「学习成长」,直接在收集层建独立场景目录
- 学习成长/内部的子目录规则:
- 单次活动1个文件 → 直接放
YYYY-MM-DD 主题描述.md
- 单次活动多个文件 → 建
YYYY-MM-DD 活动名/ 子目录
- 跨日活动(禅七、大会等)→ 建
YYYY-MM 活动名/ 子目录
- 功能性文件可直接放收集层根目录:如待办池、清单等不属于特定场景的文件
生活学习域——认知层目录规则
- What I Learn 按知识领域分子目录:如 AI与技术、修行与心法、育儿与教育
- What I Think 按理念主题分子目录:如 AI理念、修行理念、教育理念
- What I Create 按产出类型分子目录:如 公众号文章、觉知日记
- What I Collect 按素材类型分子目录:如 金句库、选题库
- Who We Are 扁平存放:身份文档数量少,不需要子目录
- 🚫 禁止同名文件与目录共存:如果存在
事业理念/ 目录,就不能同时有 事业理念.md 文件。遇到这种情况,把 .md 文件移入目录并重命名
生活学习域——指南层目录规则
- 顶层按项目/领域分目录:如 写作系统、孩子教育、家庭OS系统、旅行规划
- 根目录零散文件清零:每个文件都必须归入一个主题目录
- 项目目录内部按功能分子目录:如 大纲/、成长规划报告/ 等
🔴 反模式清单(遇到必须修复)
| 反模式 |
正确做法 |
| 同名 .md 文件与目录共存 |
把文件移入目录并重命名 |
| 根目录散落文件(指南层/认知层) |
归入对应主题目录 |
| 标题含人名 |
去掉人名,放入 metadata |
分隔符混用(:、-、——) |
统一用 —— |
| 同日期多文件未归入子目录 |
建活动子目录合并 |
| 口语化/营销化标题 |
改为精准直接的概念描述 |
| 产品俗称(龙虾) |
用正式名称(OpenClaw) |
| 重复类型内容塞进「学习成长」 |
在收集层建独立场景目录 |
| 事业内容放进生活学习域 |
路由到 {business_name}/ 对应功能目录 |
| 个人成长内容放进事业域 |
路由到 生活学习/ 对应层级 |
| 英文目录名(inbox/cognition/guidebook) |
用中文目录名(收集层/认知层/指南层) |
Full Directory Structure Reference
[vault_path]/
├── {business_name}/ ← 事业域(用户自定义名称)
│ ├── 课程/
│ │ ├── 2026-03-15 公开课第一期/
│ │ └── 课程体系设计.md
│ ├── 运营/
│ │ ├── 2026-03 增长策略.md
│ │ └── 私域运营SOP.md
│ ├── 方法论产品/
│ │ └── 家庭AI实操指南.md
│ ├── 客户报告/
│ │ └── 2026-03-20 XX家庭成长规划.md
│ ├── 活动档案/
│ │ └── 2026-03-22 线下沙龙/
│ ├── 周会/
│ │ └── 2026-03-17 周会纪要.md
│ ├── 素材/
│ │ └── 朋友圈文案库.md
│ └── 学习笔记/
│ ├── 商业与创业/
│ └── 2026-03-10 一人公司框架.md
└── 生活学习/ ← 生活学习域(固定名称)
├── 收集层/
│ ├── 学习成长/
│ │ ├── 2026-01 泉州禅七/
│ │ └── 2026-03-13 SWIS学校讲座.md
│ ├── 童言童语/
│ ├── 育儿观察/
│ ├── 灵感闪现/
│ ├── 对话收获/
│ └── 生活记录/
├── 认知层/
│ ├── What I Learn/
│ │ ├── AI与技术/
│ │ ├── 修行与心法/
│ │ └── 育儿与教育/
│ ├── What I Think/
│ │ ├── AI理念/
│ │ ├── 修行理念/
│ │ └── 教育理念/
│ ├── What I Create/
│ ├── What I Collect/
│ └── Who We Are/
└── 指南层/
├── 写作系统/
├── 孩子教育/
├── 家庭OS系统/
└── 旅行规划/
IMPORTANT: Use Chinese directory names for the three layers. English aliases (inbox/cognition/guidebook) are NOT used — they cause duplicate directories.
1---2name: junyi-vault-organizer3description: 自动归档 — A two-domain knowledge management system: Business domain (事业域, customizable name, organized by function) and Life & Learning domain (生活学习域, three-layer Inbox→Cognition→Guidebook). Stores to Obsidian vault. Triggers when user mentions 自动归档, 归档, 享育心塾萃取器, 萃取器, or asks to save/store/organize any information — articles, reading notes, class notes, children's words, conversations, ideas, reflections, quotes, or any content they want to keep. Also triggers on save this, remember this, file this away, put this in my notes, store this for later, 记下来, 存一下, 帮我记, 存到知识库.4---5
6# 自动归档 (Two-Domain Knowledge Vault)
7
8A two-domain knowledge management system. Turns the flood of daily information into
9organized, retrievable, and reusable wisdom.
10
11**Two domains:**
12- **事业域** (`{business_name}/`) — Business content organized by function
13- **生活学习域** (`生活学习/`) — Personal growth organized by three layers (收集层→认知层→指南层)
14
15## Design Principles
16
17- Low-friction capture, traceable distillation, cautious upgrades, long-term maintainability
18- Only text content; images/video out of scope
19- Storage: Obsidian physical files (not memory — survives Gateway restarts)
20
21## Configuration
22
23The following must be configured per user (via workspace files, e.g. TOOLS.md or MEMORY.md):
24
25| Key | Description | Example |
26|-----|-------------|---------|
27| `vault_path` | Obsidian vault root directory (absolute path) | `/Users/someone/Documents/MyVault` |
28| `business_name` | Business domain directory name (user-defined) | `享育心塾` |
29
30**If not configured:** Ask user to provide both values before first use. Never hardcode paths or names.
31
32## Top-Level Decision Flow
33
34### Step 0: Business or Life & Learning?
35
36**This is always the first routing decision.**
37
38| Route to | Signal | Examples |
39|----------|--------|----------|
40| **事业域** `{business_name}/` | Directly related to user's business, clients, products, operations, commercial activities | 课程设计、运营策略、客户报告、活动复盘、商业学习笔记、营销素材、周会记录、方法论产品 |
41| **生活学习域** `生活学习/` | Personal growth, family, spiritual practice, hobbies, general learning, children, daily life | 育儿观察、修行笔记、个人感悟、读书心得(非商业)、家庭记录、兴趣爱好 |
42
43**Ambiguous cases:**
44- Content about a topic that serves both business and personal growth → Ask user which domain
45- Learning content: "Is this learning FOR the business or FOR personal growth?" — if clearly business-related (e.g., marketing course for the business), route to `{business_name}/学习笔记/`; if general personal development, route to `生活学习/`
46
47---
48
49# 事业域 (`{business_name}/`)
50
51Business content organized by **function**, no three-layer nesting.
52
53## Directory Structure
54
55```
56{business_name}/
57├── 课程/ ← Course design, curricula, teaching materials, class notes
58├── 运营/ ← Marketing strategies, growth plans, funnel analysis, metrics
59├── 方法论产品/ ← SOPs, templates, prompts designed FOR clients to use
60├── 客户报告/ ← Reports, assessments, analyses produced FOR clients
61├── 活动档案/ ← Event records, recaps, attendee feedback, photos notes
62├── 周会/ ← Meeting notes, agendas, action items
63├── 素材/ ← Marketing copy, social media content, design briefs
64└── 学习笔记/ ← External learning relevant to the business (courses, articles, peers)
65```
66
67## Business Domain Routing Rules
68
69| Content type | Route to | Signal words |
70|-------------|----------|-------------|
71| Course design, curricula, lesson plans, teaching materials | `{business_name}/课程/` | 课程、课件、大纲、教案、回放 |
72| Marketing, growth, operations strategy | `{business_name}/运营/` | 运营、增长、转化、漏斗、复购、私域 |
73| SOPs/templates/prompts for clients | `{business_name}/方法论产品/` | SOP、模板、prompt、工具包、给家长用 |
74| Reports/assessments for clients | `{business_name}/客户报告/` | 报告、评估、分析、成长规划 |
75| Event records and recaps | `{business_name}/活动档案/` | 活动、沙龙、工作坊、公开课、复盘 |
76| Meeting notes | `{business_name}/周会/` | 周会、会议、议程、行动项 |
77| Marketing copy, social content | `{business_name}/素材/` | 海报、文案、朋友圈、推文、宣传 |
78| Business-related external learning | `{business_name}/学习笔记/` | XX的分享、行业报告、商业课程、同行案例 |
79
80**Custom sub-directories:** Within each function directory, organize by sub-topic or date as needed:
81- Single event, 1 file → `YYYY-MM-DD 主题描述.md`
82- Single event, multiple files → `YYYY-MM-DD 活动名/` sub-directory
83- Cross-day event → `YYYY-MM 活动名/` sub-directory
84
85## Business Domain Naming Rules
86
87- Files: `YYYY-MM-DD 主题描述.md` (with date) or `主题名.md` (for evergreen docs like SOPs)
88- Sub-directories: `YYYY-MM-DD 活动名/` or topic-based names
89- Follow the universal naming rules below (no person names in titles, use `——` separator, etc.)
90
91---
92
93# 生活学习域 (`生活学习/`)
94
95Personal and family content organized by the **three-layer** system.
96
97```
98生活学习/
99├── 收集层/ → Raw capture, organized by scene
100│ ↓ AI distills (when warranted)
101├── 认知层/ → Refined insights by 5 dimensions
102│ ↓ Proven patterns emerge
103└── 指南层/ → Verified reusable guides, methods, checklists
104```
105
106## Layer 1: 收集层 (Inbox)
107
108Zero-friction entry point. Raw records organized by **scene**.
109
110**Default scenes:**
111
112| Scene | What goes here |
113|-------|---------------|
114| 学习成长 | Class notes, reading highlights, lectures, courses, podcasts (non-business) |
115| 童言童语 | Children's actual words, questions, expressions — preserved verbatim |
116| 育儿观察 | Parents' observations of children — milestones, patterns, growth moments |
117| 灵感闪现 | Sudden ideas, one-line thoughts, "what if..." moments |
118| 对话收获 | Key takeaways from conversations with others |
119| 生活记录 | Daily life events and feelings |
120
121**Custom scenes:** When user proposes a new scene, confirm name once, then auto-create directory.
122
123**Repeating content types** (journals, weekly reviews, etc.) get their own scene directory — don't stuff them into 学习成长.
124
125## Layer 2: 认知层 (Cognition)
126
127Distilled knowledge organized by five dimensions:
128
129| Dimension | Directory name (exact) | The test | Examples |
130|-----------|----------------------|----------|---------|
131| **What I Learn** | `认知层/What I Learn/` | "I learned this from someone/something else" | Book insights, article takeaways, lecture notes |
132| **What I Think** | `认知层/What I Think/` | "I figured this out / observed this myself" | Personal reflections, parenting discoveries, patterns noticed |
133| **What I Create** | `认知层/What I Create/` | "I made/wrote/built this" | Articles, presentations, systems designed |
134| **What I Collect** | `认知层/What I Collect/` | "I want to keep this as-is" | Quotes, golden lines, sparks |
135| **Who We Are** | `认知层/Who We Are/` | "This defines who we are as a family" | Values, philosophy, long-term goals |
136
137**IMPORTANT: Use exact directory names above (with spaces, title case). Never convert to lowercase-hyphen format like `what-i-think`.**
138
139**🔴 分类防线(必须执行):**
140
1411. **来源测试(分类前必做)**:这个知识/观点是谁产出的?
142 - 从他人/外部来源学到的 → **What I Learn**(即使内容包含"对我的启发""素材整理",来源是他人就是 Learn)
143 - 用户自己悟到/观察到的 → **What I Think**
144 - 信号词:标题含他人名字、"XX的框架""XX分享" → 大概率 Learn
145
1462. **重复类型第一次就建独立目录**:早间日报、周报、日志等定期产出物,第一次归档时就在收集层建独立场景目录,不塞进「学习成长」
147
1483. **同一活动/事件的多条内容 → 先建活动子目录**:识别信号是同一天、同一来源、同一主题的多条内容,先建 `YYYY-MM-DD 活动名` 子目录再逐条归入
149
1504. **What I Think 按主题域建子目录**:
151 - 子目录示例:AI理念、教育理念、修行理念、事业理念
152 - 写入前先检查是否有匹配的子目录,没有则考虑新建
153 - 避免根目录堆积
154
1555. **What I Learn 按主题域建子目录**:
156 - 子目录示例:AI与技术、商业与创业、修行与心法、育儿与教育
157 - 写入前先检查是否有匹配的子目录,没有则考虑新建
158 - 避免根目录堆积
159
160**Classification rules:**
161- External source primarily → What I Learn
162- Self-observation/reflection primarily → What I Think
163- Finished output → What I Create
164- Fragment to keep as-is → What I Collect
165- Family identity/values/rules → Who We Are
166- Mixed content → classify by primary source; if both parts are important, split into two cognition entries
167
168## Layer 3: 指南层 (Guidebook)
169
170Proven, reusable methods that answer "how to do X" concretely.
171
172**Admission criteria (strict):**
173- User explicitly says "已验证", "反复有效", "用了较长时间", or similar
174- OR original text contains clear validation evidence (e.g., "执行两个月有效")
175- Methods that don't meet validation criteria stay in Cognition, not Guidebook
176- Mark as "待验证" only if user wants to track an unvalidated method
177
178**Directory rules:**
179- Organized by project/domain sub-directories (e.g., `指南层/写作系统/`, `指南层/孩子教育/`)
180- No loose files in 指南层 root — every file must be in a topic sub-directory
181
182## Life & Learning Decision Flow
183
184After routing to 生活学习域, follow these steps:
185
186### Step 1: Determine user intent
187- User says "就存一下 / 先记下来 / 不用总结" → Only write `收集层`, stop
188- Normal record → Write `收集层`, then evaluate distillation (Step 3)
189- Explicitly validated method/process → Write `收集层` + `认知层` + evaluate `指南层`
190
191### Step 2: Determine scene
192- Scene is clear → Route to corresponding `收集层/` directory
193- Scene is ambiguous but close → Pick closest match, preserve original context in content
194- Scene truly unclear → **Ask user**, do not guess
195
196### Step 3: Determine whether to distill to 认知层
197
198**Distill when:**
199- Content has clear viewpoints, patterns, insights, or conclusions
200- Content has long-term reuse value
201- Content is a quote/fragment worth collecting
202- Content is from articles/lectures/courses that can be distilled
203
204**Do NOT distill when:**
205- Pure memo or reminder
206- Pure diary/stream-of-consciousness with no extractable insight
207- User explicitly asked not to summarize
208- Content only suitable for raw preservation
209
210**Short content exception:** Short reflections (<200 chars) or single quotes can skip 收集层 and go directly to 认知层 — the raw text IS the refined version, no need for duplicate storage.
211
212### Step 4: Determine whether to enter 指南层
213- Has executable steps + validated effectiveness → 指南层
214- Just an idea, principle, or feeling → Stay in 认知层
215- Unvalidated method → Stay in 认知层, upgrade later when validated
216
217---
218
219# Universal Rules (Both Domains)
220
221## File Management Rules
222
223### When to create new file
224- New topic
225- First record of the day under a new topic
226- Content significantly different from existing notes
227- Content belongs to a different layer/dimension/function
228
229### When to merge into existing file
230- Same day AND same scene/topic
231- New content supplements existing content (not a new topic)
232- Append with a separator (`---`) and timestamp
233
234### When to update existing file
235- Guidebook: prefer updating original file over creating new ones; refresh "更新日期"
236- Cognition: if supplementing the same insight, add a "补充观察" section
237- Never overwrite raw content for cosmetic reasons
238
239## 🔴 标题命名规则(必须执行)
240
241### 通用规则
242
2431. **不含人名**:标题聚焦概念/主题本身,人名放在文件内部 metadata(来源字段)
244 - ❌ `黄有璨的AI焦虑三分法` → ✅ `AI焦虑三分法`
245 - ❌ `韩叙:一人公司框架` → ✅ `一人公司框架`
246 - ❌ `刘思毅:深圳AI嘉年华` → ✅ `深圳AI嘉年华——观察与三个判断`
2472. **分隔符统一用 `——`**(中文破折号),不用 `:`、`-`、`:`
2483. **标题要精准直接**:描述内容核心,不用口语化/吸引眼球的表达
249 - ❌ `你的小龙虾可能悄悄出卖了你` → ✅ `AI Agent安全隐患与防护`
2504. **产品名用正式名称**:`龙虾` → `OpenClaw`
251
252### 收集层标题(生活学习域)
253
254- 格式:`YYYY-MM-DD 主题描述.md`
255- 子目录内文件可省略日期前缀(如 `简版.md`、`详细版.md`)
256- 活动子目录:`YYYY-MM-DD 活动名/` 或 `YYYY-MM 活动名/`
257
258### 认知层标题(生活学习域)
259
260- 格式:`标题.md`(无日期前缀,认知按主题组织不按时间)
261- 从提炼内容中提取核心概念作为标题
262
263### 指南层标题(生活学习域)
264
265- 格式:`主题名.md`(无日期前缀)
266- 面向行动:回答"怎么做X"
267
268### 事业域标题
269
270- 带日期的记录:`YYYY-MM-DD 主题描述.md`
271- 常青文档(SOP、模板等):`主题名.md`
272
273## Content Templates
274
275### 事业域文件
276
277```markdown
278# [Title]
279
280> 日期:YYYY-MM-DD
281> 类别:[function directory name, e.g., 课程/运营/方法论产品]
282> 来源:[source if applicable]
283
284---
285
286[Content — structured appropriately for the function type]
287```
288
289### 收集层 (生活学习域)
290
291```markdown
292# [Title]
293
294> 日期:YYYY-MM-DD
295> 场景:[scene name]
296> 来源:[source if applicable]
297
298---
299
300[Original content — keep close to original, minimal formatting]
301```
302
303### 认知层 (生活学习域)
304
305```markdown
306# [Title]
307
308> 日期:YYYY-MM-DD
309> 维度:[dimension name]
310> 来源:[source — article name, conversation, experience, etc.]
311> 源文件:[corresponding inbox filename, e.g., 生活学习/收集层/学习成长/2026-03-13 蒙特梭利.md]
312> 标签:#tag1 #tag2
313
314---
315
316[Refined content — distilled, structured, insightful]
317
318## 核心要点
319- Point 1
320- Point 2
321```
322
323Note: When content skips 收集层 (short reflections/quotes), 源文件 field is "用户即时输入".
324
325### 指南层 (生活学习域)
326
327```markdown
328# [Title]
329
330> 更新日期:YYYY-MM-DD
331> 适用场景:[when to use this guide]
332> 验证状态:[已验证 / 待验证]
333> 来源:[corresponding cognition or inbox filename]
334
335---
336
337[Step-by-step guide, checklist, or methodology]
338```
339
340**Field defaults:**
341- 来源 missing → "用户即时输入"
342- Tags: 2-3 max, prefer topic/person/method keywords
343- Preserve original attribution for articles/lectures/books
344
345## Source Traceability
346
347- Every 认知层 entry must trace back to a 收集层 file or "用户即时输入"
348- Every 指南层 entry must trace back to 认知层 or 收集层
349- 事业域 files should note their source in the 来源 field
350- No orphaned conclusions without traceable context
351
352## Long Text Handling
353
354| Size | Strategy |
355|------|----------|
356| < 30,000 chars | Write directly |
357| ≥ 30,000 chars | Chunked write (≤20K per chunk, break at paragraph boundaries) |
358
359**Never use `obsidian-cli create --content`** — truncation bug.
360
361After every write, verify:
362```bash
363ls -la "<file>" # exists and reasonable size
364tail -5 "<file>" # content is complete
365```
366
367## 🔴 乱码检查(每次写入后必须执行)
368
369```bash
370python3 -c "c=open('<file_path>').read(); n=c.count('\ufffd'); print(f'{n}个乱码') if n else print('✅')"
371```
372
373Found U+FFFD (�) → infer correct character from context, fix with edit, re-verify.
374
375## Searching and Retrieval
376
377- `obsidian-cli search-content "<keyword>"` — search note content
378- `obsidian-cli search "<note name>"` — search note titles
379- `find` + `grep` — precise filesystem search
380
381## 🔴 目录构建规则(必须执行)
382
383### 事业域目录规则
384
3851. **顶层按功能分8个目录**:课程、运营、方法论产品、客户报告、活动档案、周会、素材、学习笔记
3862. **功能目录内部按需建子目录**:
387 - 单次活动1个文件 → 直接放 `YYYY-MM-DD 主题描述.md`
388 - 单次活动多个文件 → 建 `YYYY-MM-DD 活动名/` 子目录
389 - 跨日活动 → 建 `YYYY-MM 活动名/` 子目录
390 - 系列内容 → 建主题子目录(如 `课程/公开课系列/`)
3913. **新的功能类型**:如果内容不匹配现有8个目录,先考虑归入最近似的;确实需要新目录时,向用户确认后新建
392
393### 生活学习域——收集层目录规则
394
3951. **顶层按场景分目录**:学习成长、童言童语、育儿观察、灵感闪现、对话收获、生活记录等
3962. **重复类型独立建目录**:日报、周报、日志等定期产出物,不塞进「学习成长」,直接在收集层建独立场景目录
3973. **学习成长/内部的子目录规则**:
398 - 单次活动1个文件 → 直接放 `YYYY-MM-DD 主题描述.md`
399 - 单次活动多个文件 → 建 `YYYY-MM-DD 活动名/` 子目录
400 - 跨日活动(禅七、大会等)→ 建 `YYYY-MM 活动名/` 子目录
4014. **功能性文件可直接放收集层根目录**:如待办池、清单等不属于特定场景的文件
402
403### 生活学习域——认知层目录规则
404
4051. **What I Learn 按知识领域分子目录**:如 AI与技术、修行与心法、育儿与教育
4062. **What I Think 按理念主题分子目录**:如 AI理念、修行理念、教育理念
4073. **What I Create 按产出类型分子目录**:如 公众号文章、觉知日记
4084. **What I Collect 按素材类型分子目录**:如 金句库、选题库
4095. **Who We Are 扁平存放**:身份文档数量少,不需要子目录
4106. **🚫 禁止同名文件与目录共存**:如果存在 `事业理念/` 目录,就不能同时有 `事业理念.md` 文件。遇到这种情况,把 .md 文件移入目录并重命名
411
412### 生活学习域——指南层目录规则
413
4141. **顶层按项目/领域分目录**:如 写作系统、孩子教育、家庭OS系统、旅行规划
4152. **根目录零散文件清零**:每个文件都必须归入一个主题目录
4163. **项目目录内部按功能分子目录**:如 大纲/、成长规划报告/ 等
417
418## 🔴 反模式清单(遇到必须修复)
419
420| 反模式 | 正确做法 |
421|--------|---------|
422| 同名 .md 文件与目录共存 | 把文件移入目录并重命名 |
423| 根目录散落文件(指南层/认知层) | 归入对应主题目录 |
424| 标题含人名 | 去掉人名,放入 metadata |
425| 分隔符混用(`:`、`-`、`——`) | 统一用 `——` |
426| 同日期多文件未归入子目录 | 建活动子目录合并 |
427| 口语化/营销化标题 | 改为精准直接的概念描述 |
428| 产品俗称(龙虾) | 用正式名称(OpenClaw) |
429| 重复类型内容塞进「学习成长」 | 在收集层建独立场景目录 |
430| 事业内容放进生活学习域 | 路由到 `{business_name}/` 对应功能目录 |
431| 个人成长内容放进事业域 | 路由到 `生活学习/` 对应层级 |
432| 英文目录名(inbox/cognition/guidebook) | 用中文目录名(收集层/认知层/指南层) |
433
434## Full Directory Structure Reference
435
436```
437[vault_path]/
438├── {business_name}/ ← 事业域(用户自定义名称)
439│ ├── 课程/
440│ │ ├── 2026-03-15 公开课第一期/
441│ │ └── 课程体系设计.md
442│ ├── 运营/
443│ │ ├── 2026-03 增长策略.md
444│ │ └── 私域运营SOP.md
445│ ├── 方法论产品/
446│ │ └── 家庭AI实操指南.md
447│ ├── 客户报告/
448│ │ └── 2026-03-20 XX家庭成长规划.md
449│ ├── 活动档案/
450│ │ └── 2026-03-22 线下沙龙/
451│ ├── 周会/
452│ │ └── 2026-03-17 周会纪要.md
453│ ├── 素材/
454│ │ └── 朋友圈文案库.md
455│ └── 学习笔记/
456│ ├── 商业与创业/
457│ └── 2026-03-10 一人公司框架.md
458└── 生活学习/ ← 生活学习域(固定名称)
459 ├── 收集层/
460 │ ├── 学习成长/
461 │ │ ├── 2026-01 泉州禅七/
462 │ │ └── 2026-03-13 SWIS学校讲座.md
463 │ ├── 童言童语/
464 │ ├── 育儿观察/
465 │ ├── 灵感闪现/
466 │ ├── 对话收获/
467 │ └── 生活记录/
468 ├── 认知层/
469 │ ├── What I Learn/
470 │ │ ├── AI与技术/
471 │ │ ├── 修行与心法/
472 │ │ └── 育儿与教育/
473 │ ├── What I Think/
474 │ │ ├── AI理念/
475 │ │ ├── 修行理念/
476 │ │ └── 教育理念/
477 │ ├── What I Create/
478 │ ├── What I Collect/
479 │ └── Who We Are/
480 └── 指南层/
481 ├── 写作系统/
482 ├── 孩子教育/
483 ├── 家庭OS系统/
484 └── 旅行规划/
485```
486
487**IMPORTANT: Use Chinese directory names for the three layers. English aliases (inbox/cognition/guidebook) are NOT used — they cause duplicate directories.**