second-brain
Obsidian second-brain vault framework built for Claude Code: agent contract, skills, templates, Dataview dashboards
Second Brain
An Obsidian vault built to be worked in with Claude Code. It covers personal projects, investments and interests, and has a fenced-off agent zone where the AI keeps its own memory from one session to the next.
This repo holds the framework only: folder structure, conventions, templates, dashboards, Claude Code skills and automation scripts. No personal notes are included.
Why
Most second-brain setups fall apart for two reasons: notes pile up without ever being processed, and AI assistants forget everything between sessions. This vault deals with both:
- A weekly review ritual (guided by a skill) keeps the inbox, projects and portfolio current.
- An agent contract gives Claude Code a defined place to read and write persistent project memory, and keeps it out of everything else unless you approve.
Layout
00-Inbox/ raw, unprocessed capture
10-Projects/ time-bound work: career / side / creative / life
20-Interests/ ongoing, no deadline: learning, hobbies-media
30-Investments/ positions, theses, watchlist, reviews
40-Resources/ books, articles, people, research dossiers
50-Archive/ finished projects, dead theses, resolved inbox items
60-Journal/ daily (optional) + weekly notes
70-MOCs/ hub pages and Dataview dashboards (start at Home.md)
80-Agents/ agent zone: project memory, session logs, scratch
99-Meta/ vault README, conventions, templates
.claude/ Claude Code skills, hooks, helper scripts
CLAUDE.md agent bootstrap, loaded automatically by Claude Code
Rule of thumb: at most 2 levels deep below any top-level folder. If you need more structure, make a MOC.
Claude Code integration
The agent contract
80-Agents/README.md is the contract every agent reads at session start:
- Free to write: anything under
80-Agents/ - Needs confirmation first: every user-owned folder (
10-…99-,.claude/) - Never touches:
.obsidian/ - Marks its work:
#agent-writtentag +author: agentfrontmatter - At session end: updates
80-Agents/projects/<Project>.md(current state, decisions, open questions, next actions, gotchas). Writes a session log only if the session actually mattered.
Skills
| Skill | What it does |
|---|---|
/weekly-review | Guided weekly ritual: inbox, project statuses, investment snapshots, stale theses, weekly note |
/daily-review | End-of-day pass: summarises today's notes and files captured ideas |
/process-inbox | Goes through 00-Inbox/ one item at a time: promote, file, archive or delete |
/new-project | Creates a project note with the right frontmatter |
/new-thesis | Creates an investment thesis for a ticker and links any matching position or watchlist note |
/research | Web research saved as a cited dossier in 40-Resources/research/ |
/obsidian-emerge | Surfaces recurring themes and unstated conclusions from recent notes |
Automation
- Auto-archive hook (
.claude/settings.json→scripts/auto-archive-inbox.ps1): when an inbox note is set tostatus: resolved, it moves to50-Archive/. - Quick capture (
scripts/capture-idea.ahk): a globalCtrl+Alt+Ihotkey opens a Spotlight-style bar that appends a timestamped bullet to today's inbox file. Runscripts/setup-capture-shortcut.ps1once to register it at logon (needs AutoHotkey v2).
Dashboards
70-MOCs/ holds Dataview pages for Home, Tasks, Projects, Investments (open positions, portfolio total, watchlist, theses not reviewed in 90+ days), Learning and Media. Projects and positions also have core Bases views (.base) as a fallback if you don't want Dataview.
Conventions
The full reference is in 99-Meta/conventions.md. The short version:
- Filenames in
Title Case With Spaces.md; daily notesYYYY-MM-DD.md, weekly notesYYYY-Www.md [[wikilinks]]inside the vault, markdown links for external URLs only- Hierarchical lowercase tags:
#status/…,#type/…,#topic/… - Every typed note (project, position, thesis, watchlist, learning, book, media) has a required frontmatter schema, and templates in
99-Meta/templates/match each one
Getting started
- Clone the repo and open the folder as a vault in Obsidian.
- Install the one community plugin, Dataview. Everything else uses core plugins.
- Point the Templates and Daily Notes core plugins at
99-Meta/templates/and60-Journal/daily/. - Update hardcoded paths. The hook in
.claude/settings.jsonand the scripts in.claude/scripts/assume the vault lives atC:\Work\second-brain. Change them to your own location. - Run
claudein the vault folder. It loadsCLAUDE.mdand the agent contract automatically. Then try/new-projector/weekly-review.
Privacy by default
.gitignore is a whitelist. Only the framework files above are tracked, and every note in the content folders is ignored, so personal notes stay off GitHub even if you commit from your live vault. Empty folders are kept with .gitkeep.
How to Install
- Download the template file from GitHub
- Move it anywhere in your vault (or your sidebar notes)
- Open it in Obsidian — done!
Stats
Stars
0
Forks
0
Last updated 1d ago