BrainRepo
Your personal knowledge repository. Capture fast, organize automatically, retrieve instantly.
Brain Location
Fixed path: INLINECODE0
This is not configurable. All brain data lives here.
First Run Check
Before any action, check if brainrepo is initialized:
- 1. Check if
~/Documents/brainrepo/ exists with expected structure (Inbox/, Projects/, Areas/) - If NOT found → Run onboarding automatically
- If found → Proceed with user request
Onboarding
Triggers automatically on first interaction, or when user says "set up brainrepo":
- 1. Create brain at INLINECODE2
- Create the folder structure:
CODEBLOCK0
- 3. Create initial files from templates in
assets/templates/:
-
Tasks/index.md — task hub
-
Areas/personal-growth/index.md — personal growth area
-
Areas/family/index.md — family area
- 4. Initialize git (optional):
CODEBLOCK1
- 5. Confirm setup and show quick start commands
Core Concept
DUMP → PROCESS → RETRIEVE
- 1. Dump — Capture everything to Inbox/ (don't organize yet)
- Process — Evening review: Inbox → permanent home
- Retrieve — Ask AI to find anything
Repository Structure
CODEBLOCK2
See references/structure.md for detailed breakdown.
Capture Rules
What to Capture (Immediately)
| Type | Destination | Example |
|---|
| Quick thought | INLINECODE7 | "Maybe we should..." |
| Decision made |
Inbox/ or
Notes/ | "Decided to use Next.js" |
| Person info |
People/ | New contact or update |
| Project update |
Projects/<name>/ | Meeting notes, progress |
| Task/Todo |
Tasks/index.md | "Need to finish X" |
| Link/Article |
Resources/ or
Inbox/ | URL with context |
| Personal growth |
Areas/personal-growth/ | Health, habits, learning |
| Family info |
Areas/family/ | Important dates, notes |
What NOT to Capture
- - Casual chat without information value
- Temporary queries ("what time is it")
- Information easily searchable online
Note Format
Every note uses minimal frontmatter:
CODEBLOCK3
Use templates from assets/templates/ when creating new notes.
Daily Workflow
During Day
- - Dump everything to INLINECODE18
- Don't organize — just capture
Evening (5-10 min)
Process Inbox/:
- 1. Each item → permanent home or delete
- Update
Journal/YYYY-MM-DD.md with summary - INLINECODE20
Weekly Review (Sunday, 15 min)
- 1. Review all Projects/ — still active?
- Check Areas/ — anything neglected?
- Move completed projects to Archive/
- Update INLINECODE21
See references/workflows.md for detailed workflows.
Commands
| User says | Action |
|---|
| "Set up brainrepo" | Run onboarding, create structure |
| "Save this: [text]" |
Capture to Inbox/ |
| "New project: [name]" | Create Projects/name/ with template |
| "Add person: [name]" | Create People/name.md with template |
| "What do I know about X?" | Search & retrieve |
| "Daily review" | Process Inbox/, update Journal/ |
| "Weekly review" | Full system review |
Linking
Use [[wiki-links]] to connect notes:
CODEBLOCK4
Projects vs Areas
| Projects | Areas |
|---|
| Have deadlines | No end date |
| Can be "done" |
Maintained forever |
| Specific outcome | Standard to uphold |
File Naming
- - Folders: INLINECODE23
- Files: INLINECODE24
- Dates: INLINECODE25
- People: INLINECODE26
References
BrainRepo
你的个人知识库。快速捕捉,自动整理,即时检索。
脑库位置
固定路径: ~/Documents/brainrepo/
此路径不可配置。所有脑库数据均存储于此。
首次运行检查
在执行任何操作之前,检查 brainrepo 是否已初始化:
- 1. 检查 ~/Documents/brainrepo/ 是否存在且包含预期结构(Inbox/、Projects/、Areas/)
- 如果未找到 → 自动运行引导流程
- 如果已找到 → 继续处理用户请求
引导流程
在首次交互时自动触发,或当用户说设置 brainrepo时触发:
- 1. 在 ~/Documents/brainrepo/ 创建脑库
- 创建文件夹结构:
bash
mkdir -p <路径>/{Inbox,Projects,Areas/personal-growth,Areas/family,Notes,Resources,Journal,People,Tasks,Archive}
- 3. 从 assets/templates/ 中的模板创建初始文件:
- Tasks/index.md — 任务中心
- Areas/personal-growth/index.md — 个人成长领域
- Areas/family/index.md — 家庭领域
- 4. 初始化 git(可选):
bash
cd <路径> && git init && git add -A && git commit -m init: brainrepo
- 5. 确认设置并显示快速启动命令
核心概念
倾倒 → 处理 → 检索
- 1. 倾倒 — 将所有内容捕捉到 Inbox/(暂不整理)
- 处理 — 晚间回顾:Inbox → 永久归宿
- 检索 — 让 AI 查找任何内容
仓库结构
brainrepo/
├── Inbox/ # 快速捕捉(每日清空)
├── Projects/ # 有截止日期的活跃工作
├── Areas/ # 持续责任(无截止日期)
├── Notes/ # 永久性原子知识
├── Resources/ # 外部链接、文章、参考资料
├── Journal/ # 每日笔记(YYYY-MM-DD.md)
├── People/ # 每人一条笔记
├── Tasks/ # 集中任务追踪
└── Archive/ # 已完成的项目
详细分解请参见 references/structure.md。
捕捉规则
需要捕捉的内容(立即执行)
| 类型 | 目标位置 | 示例 |
|---|
| 快速想法 | Inbox/ | 也许我们应该…… |
| 已做决定 |
Inbox/ 或 Notes/ | 决定使用 Next.js |
| 人员信息 | People/ | 新联系人或更新 |
| 项目更新 | Projects/<名称>/ | 会议记录、进展 |
| 任务/待办 | Tasks/index.md | 需要完成 X |
| 链接/文章 | Resources/ 或 Inbox/ | 带上下文的 URL |
| 个人成长 | Areas/personal-growth/ | 健康、习惯、学习 |
| 家庭信息 | Areas/family/ | 重要日期、笔记 |
不需要捕捉的内容
- - 无信息价值的随意聊天
- 临时查询(现在几点了)
- 可轻松在线搜索的信息
笔记格式
每条笔记使用最小化的前置元数据:
markdown
created: YYYY-MM-DD
tags: [tag1, tag2]
related: [[[其他笔记]]]
标题
此处为内容。自由链接到 [[相关笔记]]。
创建新笔记时使用 assets/templates/ 中的模板。
每日工作流程
白天
- - 将所有内容倾倒到 Inbox/
- 不要整理——只管捕捉
晚间(5-10 分钟)
处理 Inbox/:
- 1. 每条内容 → 永久归宿或删除
- 用摘要更新 Journal/YYYY-MM-DD.md
- git commit -am daily processing
每周回顾(周日,15 分钟)
- 1. 检查所有 Projects/——是否仍活跃?
- 检查 Areas/——是否有被忽视的?
- 将已完成的项目移至 Archive/
- 更新 Tasks/index.md
详细工作流程请参见 references/workflows.md。
命令
| 用户说 | 操作 |
|---|
| 设置 brainrepo | 运行引导流程,创建结构 |
| 保存这个:[文本] |
捕捉到 Inbox/ |
| 新建项目:[名称] | 使用模板创建 Projects/名称/ |
| 添加联系人:[名称] | 使用模板创建 People/名称.md |
| 关于 X 我知道什么? | 搜索并检索 |
| 每日回顾 | 处理 Inbox/,更新 Journal/ |
| 每周回顾 | 完整系统审查 |
链接
使用 [[wiki-links]] 连接笔记:
markdown
与 [[People/john]] 会面,讨论 [[Projects/acme/index|ACME 项目]]。
相关洞见:[[Notes/negotiation-tactics]]
项目 vs 领域
永久维护 |
| 特定成果 | 需维持的标准 |
文件命名
- - 文件夹:kebab-case/
- 文件:kebab-case.md
- 日期:YYYY-MM-DD.md
- 人员:firstname-lastname.md
参考资料