Nestor G Pestelos Jr · Writing

Building a Second Brain with Claude Code - The Setup

Published March 19, 2026

Building a Second Brain with Claude Code: The Setup

TL;DR

Claude Code, configured with a CLAUDE.md file plus custom skills and commands, now runs my Second Brain vault end to end: reading, organizing, and committing changes, so CODE's four steps stop depending on manual follow-through.


You built the Second Brain. You have the Obsidian vault, the PARA folders, the Readwise integration. You captured hundreds of notes. Maybe thousands.

Last week I needed a framework I'd captured three months ago. I knew I'd saved it. I spent twenty minutes searching folder by folder before giving up. It was in a Readwise import I'd never organized.

CODE says: Capture, Organize, Distill, Express. But doing all four, manually, every time, across every piece of knowledge that enters your system? That's where most vaults die. Not from lack of capture. From lack of follow-through.

I stopped doing it manually. Claude Code, Anthropic's CLI tool for working with Claude, is designed for software projects. I repurpose it as the runtime for my knowledge system. It reads my vault, writes to my vault, searches files, moves documents between PARA folders, and commits changes to git, all from the terminal with full access to every file.

The difference from chat-based AI: Claude Code starts every session already knowing your project because it reads a file called CLAUDE.md at the root of your directory.

CLAUDE.md: How You Configure It

CLAUDE.md is a markdown file that Claude Code loads automatically at the start of every session. In software projects, developers use it to describe their codebase. I use it to describe my knowledge system.

Mine teaches Claude:

I don't repeat myself across sessions. Claude already knows my PARA structure, my family context, my professional background, my verification standards. Instead of prompting an AI each time, you configure a persistent system once and refine it as you go.

Skills and Commands: Patterns That Compound

Two concepts make this system scale.

Commands are slash-invoked workflows. Type /journal spouse and the entry routes to the Spouse area with a timestamp. Type /synthesize and Claude runs a multi-step pipeline: scan a source document, apply Progressive Summarization, extract atomic notes, route them to topic folders, archive the source. Type /morning and it orchestrates your entire morning routine: Readwise import, daily briefing, burnout check-in, orientation.

Each one encodes a workflow I used to do manually.

Skills are reusable knowledge that Claude activates automatically when relevant. When I'm writing a Progressive Summary, the progressive-summarization-technique skill loads the exact layer format. When I'm placing a new document, the resource-placement-rule skill enforces where unsynthesized content goes versus synthesized atomic notes. When I'm organizing files, the archive-topic-organizer skill handles the methodology.

Each one captures a pattern I discovered, debugged, and refined through use. A skill I wrote in January for handling Unicode filenames in Readwise imports still saves me from bugs every week.

Every change is version-controlled through git. I can see exactly what Claude modified, revert mistakes, and track the evolution of my vault over time. This morning's session produced 11 commits.

Try It

I published a starter repo with a minimal CLAUDE.md, three commands, and a PARA folder structure: para-starter on GitHub. Clone it, open Claude Code, and type /journal to see how it works.

The Cost

The skills and commands represent months of daily use. The first week, the system is just a fancy terminal. By month three, it handles most routine knowledge work without custom instructions.

I spent two weeks in January debugging a synthesis workflow that kept archiving source documents to the wrong folder. The bug was a path mismatch between how the scan script listed files and how the archive script moved them. Fixing it meant adding a verification step that checks the destination exists before moving. The two weeks felt like wasted effort while I was in them. That skill now runs correctly on every synthesis, hundreds of times since January.