/brain:initfrom brain
Set up a new brAIn memory vault on this machine — create it from the brAIn template repo (or clone the user's existing vault) and configure the BRAIN_VAULT environment variable. Use when the user wants to create their brain/memory vault or when another brain skill reports BRAIN_VAULT is not configured.
Ships in brain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A brAIn is a private git repo of Markdown notes (an Obsidian vault) used as
persistent memory by the user and AI sessions. All brain skills locate it via the
BRAIN_VAULT environment variable — there is no default path.
Template: https://github.com/rcamf/brAIn-template
Use only plain git — do not assume gh or any other forge CLI is installed.
BRAIN_VAULT is set and the directory is a git
repo, the vault is already configured — report that and stop.$ARGUMENTS):
User already has a vault repo (e.g. created on another machine) → ask for
its git URL and the local path to clone to, then git clone <url> <path>.
Brand new vault → ask for a local path, then create it from the template with fresh history:
git clone --depth 1 https://github.com/rcamf/brAIn-template "<path>"
rm -rf "<path>/.git"
git -C "<path>" init -b main
git -C "<path>" add -A
git -C "<path>" commit -m "Initialize brAIn vault from template"
Then ask the user to create an empty private repo on their forge of choice (GitHub/GitLab/etc. — it's their memory, keep it private) and paste its git URL. When they do:
git -C "<path>" remote add origin <url>
git -C "<path>" push -u origin main
If they'd rather skip the remote for now, that's fine — the vault works locally; remind them it won't sync until they add one.
export BRAIN_VAULT="<absolute path>". Pick the
right file: honor $ZDOTDIR if set ($ZDOTDIR/.zshrc), else ~/.zshrc
for zsh or ~/.bashrc for bash (check $SHELL). Skip if an identical line
exists.{"env": {"BRAIN_VAULT": "<absolute path>"}} into
${CLAUDE_CONFIG_DIR:-$HOME/.claude}/settings.json — read the file if it
exists and add/update only the env.BRAIN_VAULT key, never overwrite other
settings (use python3/jq for the JSON merge, and create the file with just
that env block if missing). If the user runs multiple Claude config dirs,
offer to update each./brain:session). It is OFF by default — ask the user whether to enable
it. If yes, persist BRAIN_SESSION_AUTOSTART=1 exactly like BRAIN_VAULT
(shell profile + Claude settings env); if no, do nothing and mention it
can be enabled later the same way.scripts/brain.sh at the plugin
root, two directories above this skill's base directory):
BRAIN_VAULT="<absolute path>" <plugin root>/scripts/brain.sh vault must
print the path, and the path must contain CLAUDE.md and Home.md.BRAIN_VAULT takes effect in new
shells/sessions.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub rcamf/claude-plugins --plugin brain7 skills in this plugin
/consolidatePromote a session's working notes from the brAIn vault's sessions/ area into the main knowledge graph, then archive the session folder. ONLY run when the user explicitly asks to consolidate — never automatically at session end./ingestTransform a whole code repository into interlinked notes in the brAIn vault — an architecture overview plus one note per subsystem/key concept, wikilinked into the knowledge graph. Use when the user says "ingest this repo", "turn this repo into notes", "document this repo in my brain", or wants a repo mapped into their vault. Re-running updates the existing notes./recallSearch the user's brAIn vault (their Obsidian-style markdown knowledge base synced via git, located by $BRAIN_VAULT) and answer from it. Use when the user asks "what do I know about X", "check my brain/vault/notes", or when past personal notes would answer their question.