claude-code-vault-template
A minimal Obsidian vault architecture for working with Claude Code across several projects.
Claude Code Vault Template
A minimal Obsidian vault architecture for working with Claude Code across several projects without losing context.
I keep one vault per area of work. Claude Code runs at the root of the vault, reads a short CLAUDE.md, and opens only the notes a task needs. The rules live inside the vault as ordinary notes, so every session starts from the same context and follows the same process, and I can read and edit those rules in Obsidian like any other note.
This repo is the empty structure. Nothing in it comes from a real project.
Who it's for
Anyone juggling several projects who wants Claude Code to keep its context between sessions, with a structure small enough to understand in five minutes.
It is deliberately small. If you want a full second-brain kit with many skills and a setup wizard, projects like claudesidian and brain-starter go much further.
Why
- Context outlives the chat. Decisions and findings get written into notes, so the next session (or the next person) doesn't start from zero.
- The agent reads less and gets more right. A
CLAUDE.mdand anINDEX.mdtell Claude where things are, so it doesn't crawl the whole vault for every task. - Processes and facts don't mix. Instructions (how to do something) live apart from notes (what is true, or what was decided). Changing a process never rewrites a decision, and the other way around.
Structure
vault/
├─ CLAUDE.md entry point for Claude: rules and the table of instructions
├─ INDEX.md map of the vault: what is where, and when to open it
├─ Instructions/ one note per process
├─ Templates/ note templates to copy
├─ Inbox/ loose notes waiting to be filed
├─ Knowledge/ knowledge shared by more than one project
├─ Example Project/ one folder per project, with its own CLAUDE.md and task list
└─ .claude/skills/ thin skills that point to the instructions (hidden in Obsidian)
Three levels:
- Root: what serves the whole vault.
- Project: one folder per project, each with its own
CLAUDE.md, a main note and a task note. - Entity: one note (or one folder, once it has three or more notes) per concrete thing inside a project.
Design decisions
- Project
CLAUDE.mdfiles load on demand. Claude Code loads theCLAUDE.mdin the folder where it starts (and the folders above it) at launch, and loads a subfolder'sCLAUDE.mdonly once it reads or edits a file in that subfolder (Claude Code docs). Project rules cost nothing until you work on that project. - Instructions are linked, not imported. A file pulled in with
@importloads together with theCLAUDE.mdthat imports it, every session. Linking from a table means an instruction is read only when a task needs it. - Instructions are notes, so a human can edit them. Obsidian hides dot-folders like
.claude/. Processes live inInstructions/, where you can read and edit them; the skills in.claude/skills/are thin entry points that send Claude to those notes, so the process exists in one place. - Short files. Each
CLAUDE.mdstays well under the 200 lines the docs recommend. When one grows, the extra part usually belongs in an instruction. - Guidance, not enforcement.
CLAUDE.mdis context Claude follows, not configuration it can't break. If a rule must always hold, enforce it with a hook or a permission setting.
The rules that make it work
- Notes are the source of truth. If a decision only happened in the chat, it doesn't exist: write it down.
- Never invent facts. Data comes from the note that owns it. Anything unconfirmed is marked as "verify".
- Read before you write. If a human edited a note, keep their version and change only what the task needs.
- Close the loop. At the end of every task, update the affected notes without being asked.
- Rules go where they belong. A new working rule goes into the matching instruction, not into
CLAUDE.md.
How to use it
- Click Use this template (or clone the repo) and open the folder as a vault in Obsidian.
- Rename
Example Project/to your first project and fill in itsCLAUDE.md. - Run Claude Code from the vault root. It reads
CLAUDE.mdfirst. - Drop loose notes into
Inbox/and run/process-inbox. - Keep personal preferences you don't want to share in
CLAUDE.local.md. It's in.gitignore.
Adapting it
- Notes can be in any language. Keep note names unique across the vault: Obsidian resolves
[[links]]by name. - Write a new instruction the second time you catch yourself explaining the same process. If you want to call it as a command, add a skill that points to it, like
.claude/skills/process-inbox/. - Add a subfolder only when you have three or more notes of the same type.
About
Made by Franco Minutti, Bubble.io developer working AI-first with Claude Code.
License: MIT.
How to Install
- Download the ZIP or clone the repository
- Open the folder as a vault in Obsidian (File → Open Vault)
- Obsidian will prompt you to install required plugins
Stats
Stars
1
Forks
0
License
MIT
Last updated 3d ago
Categories
Tags