Install any skill in seconds. Free to start, no credit card required.
Get Started Free →coreyhaines31/second-brain
When you want to capture into, compile, query, lint, or connect your personal Second Brain. Wraps the Karpathy LLM Wiki schema (Obsidian or any markdown vault) — raw/ (unprocessed sources), wiki/ (AI-compiled interlinked topic pages), outputs/ (generated artifacts). Tool-agnostic in design but defaults to a vault at ${SECOND_BRAIN_VAULT:-$HOME/Documents/SecondBrain}/. Six modes — capture (drop something into raw/), compile (process unprocessed raw files into wiki pages, update INDEX.md), query (
Passed 14 of 20 test cases with the skill, and 3 of 20 without it.
and 16 more in the full report
11 fixed3 passed either way6 still failing0 broke5 errored
Tokens, turns and time describe resource use, not a dollar price.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
I am starting a session in my second brain vault at /Users/test/Vault. It contains both /Users/test/Vault/CLAUDE.md and references/schema.md. Which file provides the authoritative schema rules for organizing my vault?
| Checked | Without skill | With skill |
|---|---|---|
| Identifies CLAUDE.md inside the vault as the authoritative schema | Missed | Passed |
| Prioritizes local vault schema files over references/schema.md | Missed | Passed |
The instructions your model reads when the skill loads.
Wraps an existing Second Brain in Obsidian (or any markdown-based vault). The wiki vault's schema doc (CLAUDE.md or AGENTS.md) is the authoritative schema — the skill orchestrates the operations the user has been doing manually.
Three layers, each with a clear role:
raw/ → wiki/ → outputs/
sources compiled generated
artifacts
article-, idea-, highlights-, braindump-, note-, resource-, tweet-). Never deleted — source of truth.[[wikilinks]]. INDEX.md at root.Folders to leave alone during wiki ops: Projects/, Daily/, Templates/, Inbox/, Notes/, Tasks.md, Kanban.md, Home.md.
references/vault-config.md for the vault path (default: ${SECOND_BRAIN_VAULT:-$HOME/Documents/SecondBrain}/)<vault>/CLAUDE.md or <vault>/AGENTS.md, whichever exists (if both, read both) — for the authoritative schema. If present, trust it over references/schema.md — the user's vault is the source of truth.references/schema.md.| Invocation | Mode |
|---|---|
/sb capture / /second-brain capture / "capture this" / "save this to my brain" | capture |
/sb compile / "compile the wiki" / "process raw notes" | compile |
/sb query <question> / "ask my brain X" / "what does my brain say about Y" | query |
/sb lint / "lint the wiki" / "health check my brain" | lint |
/sb connect / "find connections" / "suggest wikilinks" | connect |
/sb search <term> / "search my notes for X" | search |
test cases passed, vs 3 / 20 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.