From superbrain
Injects freeform text into a SuperBrain vault, routing each item to the appropriate scope (project, decision, capture, etc.), linking related notes, and updating the daily note. Supports verbatim and distill modes.
How this command is triggered — by the user, by Claude, or both
Slash command
/superbrain:injectThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /superbrain:inject Manual ingestion path. Auto-capture remains the default — this is for content SuperBrain can't observe. ## What it does 1. Validates input (non-empty, alphanumeric, ≤32 KB). 2. Auto-detects mode: **verbatim** for ≤200 chars with no blank-line separator; **distill** otherwise. Flags `--verbatim` / `--distill` override. 3. **Verbatim**: writes a single `capture/<date>-<slug>.md` (or `projects/<slug>.md` append if `--project` is passed). No LLM call. 4. **Distill**: pulls top-5 related vault notes via recall, lists existing project slugs, calls Sonnet 4.6 with the injec...
Manual ingestion path. Auto-capture remains the default — this is for content SuperBrain can't observe.
--verbatim / --distill override.capture/<date>-<slug>.md (or projects/<slug>.md append if --project is passed). No LLM call.route() the session distiller uses.~/.superbrain/inject.log.capture/. (Project notes are created only by /superbrain:discover.)--project <slug> always wins over anything the model emits.Step 1 — gather the user's text. The slash command argument string is in $ARGUMENTS. If $ARGUMENTS is empty, ask the user what they'd like to inject before running the command.
Step 2 — invoke the CLI. Pass the argument string straight through; the CLI parses flags itself.
node "${CLAUDE_PLUGIN_ROOT}/dist/bin/sb-inject.js" $ARGUMENTS
If the user wants to inject the contents of a file (e.g. a meeting summary they pasted into ~/Downloads/meeting.md), use --from-file:
node "${CLAUDE_PLUGIN_ROOT}/dist/bin/sb-inject.js" --from-file "<path>"
Step 3 — when the call returns, surface the output verbatim (it lists the rel paths of every note written) so the user knows where each piece landed.
If exit code is non-zero, surface the stderr message. Common reasons:
empty input / no alphanumeric content / input exceeds 32 KB — user fixable.checkpoint in progress — tell the user to retry in a moment.vault write failed / other — check ~/.superbrain/last-failure.txt./superbrain:discover — discovery synthesizes a project note from a code repo; inject ingests freeform user content.inject --from-file or pastes it as the argument.npx claudepluginhub m3talux/superbrain --plugin superbrain/insightCaptures an insight from conversation into an Obsidian vault session notes file via sb CLI, adding frontmatter with git context and timestamp.
/obsidian-archiveExtracts learnings from the current Claude Code session using progressive summarization and archives them as Zettelkasten notes in Obsidian vault after user approval.
/create_noteCaptures provided content as a persistent Markdown note in ./thoughts/shared/notes/YYYY-MM-DD/description.md with YAML frontmatter, git metadata, context, and sources.
/obsManages Obsidian agent memory vault — initialize, analyze projects, recap sessions, scaffold projects, create notes, update TODOs, lookup knowledge, manage relationships.
/mempalace-mineMines project files and conversation exports into the MemPalace with auto-classification.