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.md and an INDEX.md tell 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:

  1. Root: what serves the whole vault.
  2. Project: one folder per project, each with its own CLAUDE.md, a main note and a task note.
  3. Entity: one note (or one folder, once it has three or more notes) per concrete thing inside a project.

Design decisions

  • Project CLAUDE.md files load on demand. Claude Code loads the CLAUDE.md in the folder where it starts (and the folders above it) at launch, and loads a subfolder's CLAUDE.md only 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 @import loads together with the CLAUDE.md that 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 in Instructions/, 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.md stays well under the 200 lines the docs recommend. When one grows, the extra part usually belongs in an instruction.
  • Guidance, not enforcement. CLAUDE.md is 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

  1. Click Use this template (or clone the repo) and open the folder as a vault in Obsidian.
  2. Rename Example Project/ to your first project and fill in its CLAUDE.md.
  3. Run Claude Code from the vault root. It reads CLAUDE.md first.
  4. Drop loose notes into Inbox/ and run /process-inbox.
  5. 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.

Related

How to Install

  1. Download the ZIP or clone the repository
  2. Open the folder as a vault in Obsidian (File → Open Vault)
  3. Obsidian will prompt you to install required plugins

Stats

Stars

1

Forks

0

License

MIT

Last updated 3d ago

Categories

Tags

claude-codeclaude-mdknowledge-managementobsidianobsidian-vault-templatetemplate