second-brain
Skill3 starsChanged 4 months agoMITView on GitHub
Set up and operate a file-based second brain — a knowledge vault that every Claude Code session reads on start and writes back to before it ends, so context compounds across sessions instead of evaporating. Use "second-brain setup" to bootstrap a new vault (folder structure, brain CLAUDE.md, note templates, optional session-log hook), and follow the OPERATE rules in every session once a vault exists. Built for Obsidian-flavored markdown but works with any plain-markdown folder.
25 other projects use a version of this.
Adopted by
Most recently taken up by
- 0xsarwagya/agent-skills-alycdtheir own version, first seen Nov 8, 2026
- DaraBoth/skilljmskilltheir own version, first seen Nov 8, 2026
- dmitrax/second-brain-setuptheir own version, first seen Nov 7, 2026
- gaetanbaudime-dot/Claude-skilltheir own version, first seen Nov 1, 2026
- luizsiqueira-eng/skillstheir own version, first seen Oct 20, 2026
- alycd/agent-skillstheir own version, first seen Oct 20, 2026
Used with
Projects with it also use weekly-review.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
QuixiAISkillweekly-review
Review the past week across goals, tasks, calendar, journal, and commitments, then propose the next week
Also in 3 projects that use this
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- coreyhaines31/makerskills★ 893same name
- NicholasSpisak/second-brain★ 718same name
- uussnn/second-brain★ 82same name
- sean-esk/second-brain-gtd★ 48same name
- calebnewtonusc/Chewbacca★ 8same name
- stancsz/second-brain★ 7same name
- DaraBoth/skilljmskill★ 2same name
- dmitrax/second-brain-setup★ 2same name
- Dressi123/second-brain-skill★ 2same name
- HEXACT-INC/second-brain-claude-skills★ 2same name
15 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- extract-approachSkill
- focus-groupSkill
- review-panelSkill
- sales-councilSkill
- storm-researchSkill
- vault-gardenerSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Boot from the brain: Every session starts by reading the vault's own CLAUDE.md — the registry, the rules, the pointers to deeper indexes.
- Distinctive: line 57
Seed, don't backfill: Create index notes for the 2-3 most active projects now.
- Very specific: line 64
Check Session-Logs/{project-slug}/ for recent logs, and search System/learnings/Learnings Index.md for known pitfalls relevant to the task.
- Very specific: line 68
Update any index note, dashboard, or reference note whose facts changed.
“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Second Brain — the vault every session reads and feeds
A session's context dies when the session ends. A vault of plain markdown files does not. This skill sets up and operates that vault: one folder tree that holds the registry of everything you work on, the conventions for writing it down, and the accumulated lessons that make every future session smarter than the last one.
The machinery is three habits enforced by files:
- Boot from the brain. Every session starts by reading the vault's own CLAUDE.md — the registry, the rules, the pointers to deeper indexes.
- Write back before ending. Substantive sessions end with a session log, updated notes, and new learnings. No mental notes; files or it didn't happen.
- Garden continuously. A recurring pass (see the
vault-gardenerskill) removes entropy so recall stays precise as the vault grows.
Mode 1: SETUP — bootstrap a new vault
Trigger: "second-brain setup" or any request to create a knowledge vault. Ask only for two things if not evident: where the vault should live ({VAULT}, e.g. ~/Documents/brain — pick a synced folder if the user works across machines) and the user's main work contexts (businesses, clients, or domains — these become the registry rows and #ctx/* tags).
- Create the structure:
{VAULT}/
├── Projects/ One folder per active project; each gets a Title Case index note
├── Areas/ Ongoing responsibilities with no end date
├── Resources/ Reference material, guides, imported docs
├── Inbox/ Quick capture; the gardener files it later
├── Session-Logs/ One subfolder per project slug
├── Archive/ Completed/inactive items from anywhere above
├── Templates/ Note templates
└── System/
├── learnings/ One lesson per file (see extract-approach)
├── standards/ Pass/fail quality bars per deliverable type
└── dashboards/ Optional overview notesProjects/Areas/Resources/Archive is Tiago Forte's PARA method; Session-Logs and System are our additions — the session memory and the self-improvement machinery respectively.
- Write the brain's CLAUDE.md at
{VAULT}/CLAUDE.mdfrom references/brain-claude-md-template.md, filled in with the user's contexts. This file is the boot sector: registry table, conventions, tag taxonomy, and a pointer to the learnings index. Keep it under ~200 lines — it loads into every session, so every line costs tokens forever. The learnings index itself lives inSystem/learnings/Learnings Index.md, searched on demand, never inline here (an inline index grows without bound; ours hit 60KB before we moved it). - Copy the note templates from references/ into
{VAULT}/Templates/: session log and project note. Adjust frontmatter fields to taste, but keeptype,project,tags,date— the gardener audits against them. - Wire the boot instruction into the user's global
~/.claude/CLAUDE.md:
## Second brain (always)
My knowledge vault is at {VAULT}. At the start of every session: read
{VAULT}/CLAUDE.md (registry, conventions, learnings rules), identify which
project/context the task belongs to, and read that project's index note.
After every substantive session, write back before ending: a session log to
Session-Logs/{project-slug}/YYYY-MM-DD-HH_MM-topic.md, updates to any note
whose facts changed, and new learnings per the vault rules. Never mix
contexts across projects.- Optional but recommended — install the write-back nudge hook from references/session-log-nudge.sh as a Claude Code Stop hook. It fires when a session ends without a recent session log and asks the model to write one (or explicitly decide the session was trivial). Discipline that depends on remembering fails; hooks don't forget. Show the user the script and where it goes (
settings.jsonStop hook) rather than installing it silently. - Seed, don't backfill. Create index notes for the 2-3 most active projects now; let the rest accrete through real sessions. An empty-but-correct structure beats a week of imported clutter the gardener has to untangle.
Mode 2: OPERATE — the per-session ritual
Session start (before the first substantive action):
- Read
{VAULT}/CLAUDE.md. - Identify which registry context the task belongs to; read that project's index note.
- Check
Session-Logs/{project-slug}/for recent logs, and searchSystem/learnings/Learnings Index.mdfor known pitfalls relevant to the task.
Session end (before finishing, unless the interaction was trivial):
- Session log to
Session-Logs/{project-slug}/YYYY-MM-DD-HH_MM-topic.md: what was done, decisions with rationale, open items, gotchas. - Update any index note, dashboard, or reference note whose facts changed. Link related notes with
[[wikilinks]]. - New lessons → one file each in
System/learnings/+ one index line inSystem/learnings/Learnings Index.md— never in the brain's CLAUDE.md (the extract-approach skill covers what qualifies and the format). Log mistakes the moment they happen, not at session end. - Unsorted knowledge with no clear home →
Inbox/.
Standing rules:
- The vault holds knowledge only (markdown). Code lives in repos; binaries (spreadsheets, PDFs) live in a documents folder and get linked, never copied in. The registry table maps knowledge ↔ code path ↔ context.
- Never mix contexts. Notes belong to one project/business; cross-cutting notes carry every context tag they genuinely touch.
- Folder index notes are Title Case matching the subject (
Acme Ops.md), neverindex.md/overview.md— generic names make graphs and search unreadable. - Tags are namespaced so trends are visible:
#ctx/<context>(owning domain),#theme/<topic>(cross-cutting, controlled vocabulary),#status/<active|done|archived>. In YAML frontmatter, write tags hashless. - Decisions get logged with rationale — a decision without its why is a fact you'll re-litigate.
Why this compounds
Each mechanism feeds another: session logs keep index notes true; learnings prune every future model's search tree; standards sharpen the review-panel's rubric; the gardener keeps all of it findable. The loops are documented in docs/second-brain.md — read it once when adopting, and point skeptics at it when they ask why the setup pays rent.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

