/brain:sessionfrom brain
Mirror 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".
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.
Working docs (PLAN.md, NOTES.md, design sketches, decision logs) are created in the repo/worktree exactly as usual — that stays the working copy. This skill ADDS a synced copy in the brAIn vault, so every session's memory is browsable in Obsidian and available on other machines. Never delete or relocate the worktree originals.
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"
DIR=$("$BRAIN" session-dir) # ensures sessions/<slug>/ with a frontmattered log.md
If it fails, stop and relay its message (the fix is /brain:init).
session-dir derives the slug from the current repo/worktree and branch and
seeds log.md with the frontmatter that feeds the vault's Sessions.base.
"$BRAIN" sync (tolerate a local-only result; mention it).$DIR:
$DIR,
same filename; re-copy whenever they change meaningfully.$DIR/log.md, each ending with the current provenance —
"$BRAIN" ref prints repo@branch#sha — so every entry records the
commit it was true of.[[Topic]]) where relevant — that's what makes
later consolidation easy./brain:consolidate when the user explicitly asks."$BRAIN" save "session $("$BRAIN" slug): <what>".Once this skill has been used, keep following it for the rest of the session: whenever a scratch/planning doc is created or substantially updated in the worktree, mirror it to the session folder. Project deliverables (code, README changes, docs that ship with the repo) live only in the repo — don't mirror those.
$ARGUMENTS optionally describes what to write down. If empty, mirror any
existing session docs from the worktree and record the session's current state:
what it's doing, decisions so far, open questions.
What SKILL.md sets; muted values are Claude Code's defaults
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./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.Other plugins' skills for the same job