# claude-second-brain > claude-second-brain is an open-source CLI (`npx claude-second-brain`) that scaffolds a personal knowledge base: a git repository that is also an Obsidian vault, where your AI coding agent (Claude Code, Codex, Cursor, GitHub Copilot, and others) reads your sources and maintains a cross-linked wiki, searchable locally with qmd. It is not a RAG system or a chatbot over your notes. The agent follows a schema file (`CLAUDE.md`, also reached through `AGENTS.md`) and a set of Agent Skills (`/brain-ingest`, `/brain-remember`, `/brain-search`, `/brain-refresh`, `/brain-rebuild`, `/lint`) to summarize sources, update topic and entity pages, flag contradictions, and answer questions with citations. Every page below is also available as Markdown at the linked `.md` URL, and the whole site is in one file at `llms-full.txt`. ## Docs - [claude-second-brain: CLI for an AI-maintained Obsidian knowledge base](https://jessepinkman9900.github.io/claude-second-brain/index.md): claude-second-brain is an open-source CLI (npx claude-second-brain) that scaffolds a personal knowledge base: an Obsidian vault and git repo where your AI coding agent (Claude Code, Codex, Cursor, Copilot) maintains a cross-linked wiki with local qmd search. - [Getting Started](https://jessepinkman9900.github.io/claude-second-brain/getting-started.md): Install and set up claude-second-brain in three steps: scaffold a brain with npx claude-second-brain, generate qmd vector embeddings, and open the folder as an Obsidian vault synced with git. - [Commands](https://jessepinkman9900.github.io/claude-second-brain/cli.md): Reference for the claude-second-brain CLI (alias csb): every command to create, list, switch and remove brains, install agent skills, run qmd, print paths, renew Cloudflare Artifacts git tokens, upgrade existing brains, and run csb doctor. - [csb create](https://jessepinkman9900.github.io/claude-second-brain/cli/create.md): csb create makes a new claude-second-brain: scaffolds the vault, installs dependencies, registers qmd collections, sets up a GitHub or Cloudflare Artifacts remote, and installs agent skills. - [csb ls](https://jessepinkman9900.github.io/claude-second-brain/cli/ls.md): csb ls lists every claude-second-brain brain registered in config.toml with its path, creation date and git remote, and marks the default brain. - [csb use](https://jessepinkman9900.github.io/claude-second-brain/cli/use.md): csb use sets the default claude-second-brain brain, which path, qmd, exec and the global agent skills resolve when no brain is named. - [csb rm](https://jessepinkman9900.github.io/claude-second-brain/cli/rm.md): csb rm deletes one or more claude-second-brain brains and their config entries, and can also delete their GitHub or Cloudflare Artifacts remotes. - [csb path](https://jessepinkman9900.github.io/claude-second-brain/cli/path.md): csb path prints the root directory, qmd index or config.toml path for the default or a named claude-second-brain brain, so scripts and skills work from anywhere. - [csb qmd](https://jessepinkman9900.github.io/claude-second-brain/cli/qmd.md): csb qmd runs the qmd search CLI against the default or a named claude-second-brain brain, with INDEX_PATH and the working directory already set. - [csb exec](https://jessepinkman9900.github.io/claude-second-brain/cli/exec.md): csb exec runs any command inside the default or a named claude-second-brain brain's directory with INDEX_PATH set, for vault-local scripts like pnpm qmd:reindex. - [csb skills](https://jessepinkman9900.github.io/claude-second-brain/cli/skills.md): csb skills installs or updates the claude-second-brain Agent Skills for Claude Code, Codex, Cursor, GitHub Copilot and 11 more agents, using the same layout as npx skills. - [csb git-token](https://jessepinkman9900.github.io/claude-second-brain/cli/git-token.md): csb git-token mints a new Cloudflare Artifacts git token for a claude-second-brain brain and saves it in the vault's .git/config so git push and pull work again. - [csb lint](https://jessepinkman9900.github.io/claude-second-brain/cli/lint.md): csb lint checks one or more brains, or any vault folder, for broken wikilinks, orphan pages, bad frontmatter and open contradictions, from any directory. - [csb reindex](https://jessepinkman9900.github.io/claude-second-brain/cli/reindex.md): csb reindex refreshes the qmd search index for one or more brains, or any vault folder, from any directory: it re-scans new and changed files and regenerates embeddings. - [csb upgrade](https://jessepinkman9900.github.io/claude-second-brain/cli/upgrade.md): csb upgrade brings an existing claude-second-brain brain up to the installed release: schema, vault skills, qmd scripts, .gitignore and global skills, keeping your edits and notes. - [csb doctor](https://jessepinkman9900.github.io/claude-second-brain/cli/doctor.md): csb doctor checks the tools, config.toml, registered brains, qmd indexes and installed agent skills that claude-second-brain needs, and prints a fix for each problem. - [How it works](https://jessepinkman9900.github.io/claude-second-brain/concepts/how-it-works.md): How claude-second-brain works: raw sources flow through your AI agent into a cross-linked wiki, qmd indexes every page for hybrid search, and git syncs the vault to Obsidian and every device. - [Wiki schema](https://jessepinkman9900.github.io/claude-second-brain/concepts/schema.md): The wiki schema your agent follows: directory layout, page types, YAML frontmatter fields, naming and wikilink rules, contradiction callouts, and the hard rules from CLAUDE.md. - [GitHub remote](https://jessepinkman9900.github.io/claude-second-brain/remotes/github.md): Use a private GitHub repository as the git backend for your claude-second-brain vault, with version history, access from any device, and Obsidian mobile sync. - [Cloudflare Artifacts remote](https://jessepinkman9900.github.io/claude-second-brain/remotes/cloudflare-artifacts.md): Use Cloudflare Artifacts as a git-compatible remote for your claude-second-brain vault, so your notes never touch GitHub. Covers setup, tokens, and csb git-token. - [Obsidian](https://jessepinkman9900.github.io/claude-second-brain/integrations/obsidian.md): Open a claude-second-brain vault in Obsidian: what the bundled .obsidian config turns on, how the wiki's frontmatter and wikilinks show up in graph view and backlinks, and what to leave alone. - [obsidian-git](https://jessepinkman9900.github.io/claude-second-brain/integrations/obsidian-git.md): How the obsidian-git plugin bundled with every claude-second-brain vault auto-commits, pulls and pushes your notes, which settings it ships with, and how to change them. - [iCloud sync](https://jessepinkman9900.github.io/claude-second-brain/integrations/icloud.md): Read your claude-second-brain wiki on iPhone and iPad through iCloud Drive: keep a second clone in Obsidian's iCloud folder that obsidian-git on your Mac keeps in sync, with git kept out of iCloud. - [Skills](https://jessepinkman9900.github.io/claude-second-brain/skills.md): The Agent Skills that run the claude-second-brain wiki in Claude Code, Codex, Cursor, Copilot and other agents: ingest, remember, search, refresh, rebuild and lint, plus how to install and update them. - [/brain-ingest](https://jessepinkman9900.github.io/claude-second-brain/skills/brain-ingest.md): The /brain-ingest skill: check the log so nothing is ingested twice, read a new source or URL, write a source summary page, update affected pages, flag contradictions, log it, and commit. - [/brain-remember](https://jessepinkman9900.github.io/claude-second-brain/skills/brain-remember.md): The /brain-remember skill: save the decisions, learnings and open questions from the current agent conversation into the wiki as a conversation source page, then fold them into related pages. - [/brain-search](https://jessepinkman9900.github.io/claude-second-brain/skills/brain-search.md): The /brain-search skill: query the wiki with qmd hybrid search, read the top pages, answer with [[wikilink]] citations, and optionally file the answer as a Q&A page. - [/brain-refresh](https://jessepinkman9900.github.io/claude-second-brain/skills/brain-refresh.md): The /brain-refresh skill: rescan the vault and regenerate qmd embeddings for new or changed files, or re-embed everything with force. - [/brain-rebuild](https://jessepinkman9900.github.io/claude-second-brain/skills/brain-rebuild.md): The /brain-rebuild skill (destructive): propose a new qmd collection and context schema, then drop and rebuild the search index from scratch after approval. - [/lint](https://jessepinkman9900.github.io/claude-second-brain/skills/lint.md): The /lint skill: health-check the wiki for orphan pages, broken wikilinks, unresolved contradictions, stale claims, missing pages and data gaps, and fix what is safe. ## Project - [GitHub repository](https://github.com/jessepinkman9900/claude-second-brain): Source code, issues, the `CLAUDE.md` schema, and the template vault copied on scaffold - [npm package](https://www.npmjs.com/package/claude-second-brain): The published CLI. Run `npx claude-second-brain` with no global install - [Full docs in one file](https://jessepinkman9900.github.io/claude-second-brain/llms-full.txt): Every docs page concatenated as Markdown ## Optional - [Ship log](https://jessepinkman9900.github.io/claude-second-brain/ship-log.md): Release history for the claude-second-brain npm package and its agent skills, newest first.