Claude Second Brain & Folder Workflow: The Complete GuideClaude 第二大脑与文件夹工作流:完整指南
Cover image from the original X Article (decorative).
原帖封面图(装饰性)。
Opening开篇
Build your AI-native second brain using simple Markdown folders and a CLAUDE.md index file map用简单的 Markdown 文件夹和一份 CLAUDE.md 索引地图,搭一套 AI 原生的第二大脑
"Second brain" sounds a bit pretentious, but at the end of the day, it is just a handful of text files stashed in a few folders, managed by a single index file that guides the AI on where to look. No Obsidian, no complex databases, no bloated apps, just plain Markdown sitting on your drive.
「第二大脑」听起来有点装,但说到底,就是几个文件夹里塞着一堆文本文件,再用一份索引文件告诉 AI 该去哪儿找。不用 Obsidian,不用复杂数据库,不用臃肿 App——就是硬盘上的纯 Markdown。
In this walkthrough, we will build this architecture from the ground up: organizing the directory structure, writing your roadmap (the CLAUDE.md file), setting naming conventions, and explaining exactly how the agent parses it all. By the time you are done, you will have a robust system you can replicate and start populating immediately.
这篇 walkthrough 会从零搭这套架构:整理目录结构、写你的路线图(CLAUDE.md)、定命名规范,并讲清楚智能体到底怎么解析这一切。做完之后,你会得到一套能立刻复制、立刻往里填内容的稳健系统。
The Short Answer一句话答案
The Short Answer一句话答案
A "second brain" is nothing more than a collection of flat .md files organized in simple folders, with a single CLAUDE.md file in the root serving as your index. It acts as a compass, informing the agent where information resides, how files are structured, and the protocols for reading them. The golden rule: one topic per file. The CLAUDE.md is the map the agent follows to navigate your knowledge. You do not need a dedicated note-taking app.
「第二大脑」不过是一批扁平的 .md 文件,按简单文件夹组织,根目录放一份 CLAUDE.md 当索引。它像指南针,告诉智能体信息在哪、文件怎么组织、该按什么协议去读。黄金法则:一个主题一个文件。CLAUDE.md 就是智能体导航你知识库的地图。你不需要专门的笔记 App。
What You Will Need你需要什么
What You will Need你需要什么
Three things:
三样东西:
- An AI agent that can read project directories (like Claude Code or similar).一个能读项目目录的 AI 智能体(例如 Claude Code 或同类工具)。
- Any text editor. These are standard .md files; they work with everything.随便一个文本编辑器。这些就是标准 .md 文件,什么都能打开。
- Five minutes. That is enough time to set up the folders. You can fill them in as you go, there is no need to front-load all your data.五分钟。够你把文件夹建好。内容可以边用边填,不必一次性搬完所有资料。
The Principle: Flat Files Over Apps原则:扁平文件优于 App
The Principle: Flat Files Over Apps原则:扁平文件优于 App
The instinct to download Obsidian or build a fancy Notion database is usually a trap. Apps impose their own proprietary formats, storage logic, and interfaces, which often create friction for an AI. An agent works best when it can read a simple text file on your disk directly, without any middle layers.
一上来就想下载 Obsidian、或搭一套花哨 Notion 数据库,通常是陷阱。App 会强加专有格式、存储逻辑和界面,这些对 AI 常常是摩擦。智能体最顺手的场景,是直接读你磁盘上的纯文本,中间不要有任何层。
That is why the foundation here is flat Markdown files. "Flat" means plain text with standard formatting (headers, bullet points), no nested databases and no proprietary links. It is accessible anywhere, readable by both humans and AI. This is not a sacrifice for the sake of simplicity, it is a strategic advantage: the cleaner the format, the fewer walls stand between your knowledge and the agent.
所以这里的地基是扁平 Markdown。「扁平」指带标准格式(标题、列表)的纯文本,没有嵌套数据库,也没有专有链接。哪儿都能打开,人和 AI 都能读。这不是为了简单而牺牲,而是战略优势:格式越干净,知识与智能体之间的墙就越少。
The Skeleton: Semantic Folders骨架:语义化文件夹
The Skeleton: Semantic Folders骨架:语义化文件夹
The layout relies on semantic organization, grouping folders based on their content. Here is the basic structure:
布局靠语义组织:按内容给文件夹分组。基本结构如下:
Original image: folder tree of second-brain/. Text transcribed below. 原文为图片,已转录。
原图:second-brain/ 目录树。文字已转录如下。原文为图片,已转录。
second-brain/
├── CLAUDE.md <- The Master Map
├── notes/ <- Facts, topics, and general info
├── people/ <- People and companies (one card each)
├── projects/ <- Active projects and their status
├── MEMORY.md <- Core, high-level facts about you
├── LEARNINGS.md <- Lessons and retrospectives
└── decisions.md <- Decision log: the "what" and the "why"second-brain/
├── CLAUDE.md <- 总地图
├── notes/ <- 事实、主题与一般信息
├── people/ <- 人物与公司(一人一卡)
├── projects/ <- 进行中的项目及其状态
├── MEMORY.md <- 关于你的长期核心事实
├── LEARNINGS.md <- 经验教训与复盘
└── decisions.md <- 决策日志:做了什么、为什么These three core folders cover almost every use case:
这三个核心文件夹几乎能覆盖所有用法:
- notes/: Facts and topic-specific entries. If you learn something, distill it here. One file per topic.notes/:事实与按主题整理的条目。学到东西就蒸馏到这里。一个主题一个文件。
- people/: Cards for contacts or companies: who they are, meeting summaries, key details. One file per person.people/:联系人或公司卡片——是谁、会面摘要、关键细节。一人一个文件。
- projects/: Project status: what you are currently working on, where you paused, and the next steps.projects/:项目状态——正在做什么、停在哪儿、下一步是什么。
Additionally, use the root-level files for metadata about your workflow: MEMORY.md (long-term, core info), LEARNINGS.md (lessons learned), and decisions.md (an audit log of your choices).
另外,用根目录文件记工作流元数据:MEMORY.md(长期核心信息)、LEARNINGS.md(经验教训)、decisions.md(选择的审计日志)。
CLAUDE.md, The MapCLAUDE.md,那张地图
CLAUDE.md, The MapCLAUDE.md,那张地图
This is the brain's nervous system. Folders are just storage; to make them actionable, you need a map. The CLAUDE.md file in the root tells the agent how to interpret your structure.
这是大脑的神经系统。文件夹只是仓库;要让它们能被行动起来,你需要一张地图。根目录的 CLAUDE.md 告诉智能体怎么理解你的结构。
Why CLAUDE.md? If you use Claude Code, it loads this file into the system prompt automatically on startup. You do not have to prompt the agent to "read the map", it already knows the rules of engagement before your first question.
为什么叫 CLAUDE.md?如果你用 Claude Code,它会在启动时自动把这份文件载入系统提示。你不用再催智能体「去读地图」——问第一个问题之前,它已经知道交战规则。
Example of your map file:
地图文件示例:
Original image: sample CLAUDE.md content. Text transcribed below as a reusable template. 原文为图片,已转录。
原图:CLAUDE.md 示例内容。文字已转录为可直接替换的模板。原文为图片,已转录。
# Second Brain: Index
Personal knowledge base. Use to answer questions. Do not invent info.
## Navigation
- notes/ — Facts. One topic = one file.
- people/ — Contact cards.
- projects/ — Status and progress.
- MEMORY.md — Long-term core context.
- LEARNINGS.md — Lessons and past mistakes.
- decisions.md — Log of key decisions.
## Protocol
- One file per topic.
- Naming: lowercase with hyphens (e.g., vps-setup.md).
- Answer ONLY from these files. Cite sources when possible.
- If missing, say "not found." Do not guess.
- Append new facts, do not create duplicates.# 第二大脑:索引
个人知识库。用来回答问题。不要编造信息。
## 导航
- notes/ — 事实。一个主题 = 一个文件。
- people/ — 联系人卡片。
- projects/ — 状态与进展。
- MEMORY.md — 长期核心上下文。
- LEARNINGS.md — 经验教训与过去的失误。
- decisions.md — 关键决策日志。
## 协议
- 一个主题一个文件。
- 命名:小写加连字符(例如 vps-setup.md)。
- 只根据这些文件作答。能引用出处就引用。
- 找不到就说「未找到」。不要猜。
- 追加新事实,不要造重复文件。Pro-Tip: Leveraging @-Connections进阶提示:用好 @ 引用
Pro-Tip: Leveraging @-Connections进阶提示:用好 @ 引用
For a more advanced setup, you can prime the agent: your CLAUDE.md can directly reference core files using @ paths. By adding @MEMORY.md or @decisions.md to the map, the agent keeps that high-level context in its active memory at all times. Use this sparingly, only for what truly needs to be in focus consistently.
更进阶的做法是给智能体预热:CLAUDE.md 可以用 @ 路径直接引用核心文件。在地图里加上 @MEMORY.md 或 @decisions.md,智能体就会把这些高层上下文一直放在活动记忆里。要省着用——只留给真正需要持续盯着的东西。
Naming Rules: Discipline is Everything命名规则:纪律就是一切
Naming Rules: Discipline is Everything命名规则:纪律就是一切
The "one file = one topic" rule is where most systems succeed or fail.
「一个文件 = 一个主题」这条规则,决定了大多数系统成还是败。
- One File = One Topic. Avoid "dumping" several unrelated points into notes.md. If it is about "Tax Policy," create tax-policy.md.一个文件 = 一个主题。别把互不相关的几点全倒进 notes.md。如果讲的是「税务政策」,就建 tax-policy.md。
- Topic as Name. Name the file for what it contains. Use ivan-petrov.md instead of note-12.md.主题即文件名。用内容命名。用 ivan-petrov.md,别用 note-12.md。
- Unified Style. Stick to lowercase and hyphens to avoid ambiguity.风格统一。坚持小写加连字符,减少歧义。
How the Agent Reads It智能体怎么读
How the Agent Reads It智能体怎么读
When you initiate a session, the agent ingests CLAUDE.md. When you ask a question, it uses the map to locate the correct file, parses it, and synthesizes an answer, complete with a citation. If the info is not there, it reports a failure rather than hallucinating. Your only responsibility is maintaining a clean structure; the agent handles the retrieval.
你一开会话,智能体就吞下 CLAUDE.md。你提问时,它用地图定位正确文件、解析内容、合成带出处的回答。信息不在那里,它会报告失败,而不是幻觉。你唯一要做的是把结构维持干净;检索交给智能体。
Common Pitfalls常见坑
Common Pitfalls常见坑
Original image: troubleshooting table (Problem / Likely Cause / Solution). Text transcribed below. 原文为图片,已转录。
原图:排错表(问题 / 可能原因 / 解决办法)。文字已转录如下。原文为图片,已转录。
| Problem | Likely Cause | Solution |
|---|---|---|
| Agent misses info | Folder not in map | Add folder/rules to CLAUDE.md |
| Answers are vague | Files are too broad/cluttered | Split files: one topic per file |
| Agent hallucinates | Missing "source-only" constraint | Add rule: "Answer only from files" |
| Duplicates | No clear categorization | Consolidate facts into existing files || 问题 | 可能原因 | 解决办法 |
|---|---|---|
| 智能体漏信息 | 地图里没写这个文件夹 | 把文件夹/规则写进 CLAUDE.md |
| 回答含糊 | 文件太宽、太乱 | 拆文件:一个主题一个文件 |
| 智能体幻觉 | 缺少「只看源文件」约束 | 加规则:「只根据这些文件作答」 |
| 内容重复 | 分类不清 | 把事实合并进已有文件 |FAQ常见问题
FAQ常见问题
- Must the map be called CLAUDE.md? If you use Claude Code, yes, it is automatic. For other agents, use a README.md or an equivalent root-level index.地图必须叫 CLAUDE.md 吗?如果你用 Claude Code,是的,它会自动加载。换其他智能体,用 README.md 或等价的根目录索引即可。
- How many folders should I start with? Keep it simple. Stick to three primary folders and your root-level files. Expand only when a topic becomes large enough to warrant its own directory.一开始该建几个文件夹?保持简单。三个主文件夹加根目录文件就够。某个主题大到值得单独开目录时再扩展。
- Do I have to move all my old notes? No. Build the skeleton now and migrate or create new content as you go.必须把旧笔记全搬过来吗?不必。先搭骨架,边用边迁移或新建。
The Bottom Line结语
The Bottom Line结语
Your second brain is simply a mix of flat .md files, a strict "one topic = one file" discipline, and a CLAUDE.md map to guide the agent. Forget the complex software, just keep your text files organized on your disk. Invest your time in the map; a clear CLAUDE.md is the difference between a disorganized mess and a functional AI assistant.
你的第二大脑,不过是扁平 .md 文件 +「一个主题一个文件」的严格纪律 + 一份引导智能体的 CLAUDE.md 地图。忘掉复杂软件,把磁盘上的文本文件整理好就行。把时间投在地图上——一份清晰的 CLAUDE.md,决定了你得到的是一团乱,还是一个能干活的 AI 助手。
— Bober_smart
—— Bober_smart