/onebrain:searchfrom onebrain
Searches across vault knowledge layers (MEMORY.md, session logs, project notes) using lex+vec+hyde and grep fallback, answering both factual and decision-history questions.
Ships in onebrain. 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.
First-class retrieval skill that answers both what and why questions across all knowledge layers in the OneBrain vault.
Distinct from existing skills:
/distill synthesizes a topic into a new persisted note (write); /search is read-only/recap promotes session insights to memory/ (write); /search is read-only[agent_folder]/MEMORY.md — always-loaded persona/active-projects[agent_folder]/memory/*.md — match via MEMORY-INDEX topics[logs_folder]/session/**/*-session-*.md — past session logs[projects_folder]/**/*.md — project notes including embedded specs/plans/design docs[projects_folder]/)[knowledge_folder]/, [resources_folder]/, [areas_folder]/)[logs_folder]/checkpoint/*.md — in-session-state recovery (for current-day questions)search.collection is configured in onebrain.yml (legacy top-level qmd_collection still honored) (preferred) — follows the cascade in skills/startup/SEARCH.md^why\b (or the agent's bilingual intent inference on non-English equivalents) → "why mode"; else → "what mode"Every MCP hit carries a rerank_score (0–1). Apply the cascade's bands when composing the answer:
≥ 0.60 — confident; cite directly in the direct answer / decision chain.0.30 – 0.60 — possible; include only in the Sources list, not folded into the direct-answer synthesis as settled fact.< 0.30 — no strong match; drop it. If, after the cascade's Grep fallback, nothing clears 0.30, output an honest no strong match result instead of stitching noise into an answer (see Output format below).For "what is X" / "what's the current state of X" questions, synthesize a direct answer + cite top 5 sources:
📌 Direct answer (1–3 sentences synthesized from sources)
📚 Sources (top 5 by relevance):
1. <file path>:<heading> — <1-line excerpt>
2. ...
No strong match (all candidates scored below 0.30 and the cascade's Grep fallback found nothing either):
🔴 No strong match for "<query>" — nothing in the vault clears the confidence bar.
For "why did X" / "why is X" questions, reconstruct chronological decision chain:
🕐 Decision chain (chronological):
YYYY-MM-DD · <event/decision> · "<key quote or rationale>"
YYYY-MM-DD · <next event> · "<rationale>"
...
📚 Sources: <list of files referenced in chain>
why keyword or default to what)--all flag returns full ranked listonebrain search reindex if recent vault changes not reflectedThis skill is long-running for large vaults. Emit:
→ [step 1/4] detecting question type · routing to search...
→ [step 2/4] running search lex+vec+hyde across all sources...
→ [step 3/4] scoring + ranking results...
→ [step 4/4] formatting answer...
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub onebrain-ai/onebrain --plugin onebrain32 skills in this plugin
/bookmarkQuick URL bookmark capture : paste a link, AI generates name and description, suggests category, saves to Bookmarks.md in awesome-list format. Invoke when user wants to save a URL for later — bare URL with no other context defaults to this. Do NOT use for: deeply processing or summarizing the URL content now (use summarize), saving a note that is not a URL (use capture), or researching a topic from scratch (use research)./braindumpCapture a stream of raw thoughts : classify them and file to inbox with action items extracted. Use when the user signals a free-form, stream-of-consciousness dump with multiple unrelated threads — 'let me dump everything on my mind'. Do NOT use for: a single titled idea (use capture), saving a URL (use bookmark), or anything structured and focused./captureQuick note capture with automatic wikilink suggestions to related existing notes. Use when the user wants to save a single, specific, titled idea, insight, or piece of information to the vault. Do NOT use for: unstructured multi-thread thought dumps (use braindump), saving a URL for later (use bookmark), deeply summarizing an article or URL (use summarize), processing a book (use reading-notes), or teaching the agent a preference (use learn)./cloneClone your agent's portable context (agent folder including MEMORY.md) to a folder for transfer to another vault. Use only when the user explicitly wants to migrate or copy agent memory to a new vault. Do NOT use for: backing up the whole vault, updating OneBrain (use update), or reviewing memory (use memory-review)./connectFind connections between notes and suggest wikilinks to strengthen the knowledge graph. Use when the user wants to discover how existing notes relate to each other — 'find connections', 'what links to this note', 'strengthen my graph'. Do NOT use for: creating new notes (use capture), processing inbox (use consolidate), or searching for specific content (search directly)./consolidateReview inbox and recent notes, synthesize and merge into the knowledge base. Use when the user wants to process, organize, or clear the inbox regardless of topic — 'clean up my inbox', 'process my notes'. Do NOT use for: capturing new information now (use capture or braindump), synthesizing already-vaulted notes on a specific topic (use distill — consolidate works on the inbox), or finding note connections (use connect).Other plugins' skills for the same job