/brain:consolidatefrom brain
Promote 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.
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.
Session folders under sessions/ are raw working memory. Consolidation distills
what is worth keeping into proper topic notes. This is deliberate and
user-driven: run it only on explicit request.
All vault mechanics go through the plugin's helper CLI, scripts/brain.sh at
the plugin root (two directories above this skill's base directory):
BRAIN="<this skill's base directory>/../../scripts/brain.sh"
VAULT=$("$BRAIN" vault)
If vault fails, stop and relay its message (the fix is /brain:init).
"$BRAIN" sync.$ARGUMENTS names a session slug. If empty, list
"$VAULT/sessions/" (excluding archive/) and ask the user which to
consolidate ("all" is a valid answer — then do each in turn)."$BRAIN" search <term> finds them), otherwise create new ones.log.md frontmatter
records the repo path — AREA=$("$BRAIN" area <that repo path>) resolves
(or creates) the project's area folder, and new notes go there. Put a note
elsewhere only when it is clearly not about that repo. Never write at the
vault root unless the user explicitly asks.log.md frontmatter) and commit — prefer the
(repo@branch#sha) refs already inline in the session's log entries; for
material without one, "$BRAIN" ref <repo path> gives the repo's current
ref. New notes carry it as frontmatter (source/branch/commit);
appended entries end with the inline (repo@branch#sha) form.[[wikilinks]], use absolute dates, link new areas from Home.md.mkdir -p "$VAULT/sessions/archive" && git -C "$VAULT" mv "sessions/<slug>" "sessions/archive/<slug>".
Only delete instead of archiving if the user explicitly says to delete."$BRAIN" save "consolidate session <slug>".What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/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./initSet 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./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./rememberSave a fact, idea, or note into the user's brAIn vault (their Obsidian-style markdown knowledge base synced via git, located by $BRAIN_VAULT). Use when the user says "remember X", "add to my brain/vault", or wants to capture knowledge for later. Searches for an existing note first, updates or creates one with wikilinks, then commits and pushes./sessionMirror this session's working docs (plans, notes, design docs, decision logs) into the brAIn vault's sessions/ area so they are browsable in Obsidian and synced across machines. Use whenever creating or updating a scratch/planning markdown doc in a repo or worktree — keep the worktree copy AND mirror it to the vault. Also use when the user says "note this down" or "add session notes to the brain"./updateMerge the latest improvements from the brAIn template repo (conventions, templates, bases) into the user's own vault. Use when the user asks to update their brain/vault to the newest template, or sync template changes into their fork.npx claudepluginhub rcamf/claude-plugins --plugin brain