From superbrain
Injects freeform text into the SuperBrain vault, splitting multi-topic input into scoped notes (project, decision, capture, etc.), linking related notes, and updating today's 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/obsidian-captureCaptures a quick idea into the Obsidian vault, creating or appending to a note in the ideas folder and adding a mention to today's daily note.
/insightCaptures an insight from conversation into an Obsidian vault session notes file via sb CLI, adding frontmatter with git context and timestamp.
/captureSaves a URL, thought, snippet, or file as a single clean note in the correct vault folder, fetching URL content for a tight summary.
/add-to-daily-noteCaptures a short summary into today's Obsidian daily note via the native CLI, with optional vault override.
/create_noteCaptures findings, insights, or session context as a persistent markdown note in the thoughts system, preserving content losslessly with metadata and syncing to disk.
/obsidian-archiveArchives learnings from the current Claude Code session to an Obsidian vault as Zettelkasten notes, using progressive summarization and MOC updates.