/onebrain:connectfrom onebrain
Scans notes to find conceptual overlaps, cause-effect, elaboration, contrast, sequence, and application connections, then suggests wikilinks to strengthen the knowledge graph.
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.
Find meaningful connections between your notes and suggest wikilinks to build a richer knowledge graph.
Ask (or infer from context):
AskUserQuestion:
Use the search tools if available for semantic search across notes; fallback: Glob [projects_folder]/**/*.md, [areas_folder]/**/*.md, [knowledge_folder]/**/*.md, [resources_folder]/**/*.md. For search-tool results, only carry forward candidates with rerank_score ≥ 0.30 (prefer ≥ 0.60) into Step 3 — drop anything below 0.30 rather than proposing a weak connection. For each note, extract:
If the total note count exceeds 20, delegate to the Knowledge Linker agent instead — see Step 2b.
If more than 20 notes are in scope: dispatch the Knowledge Linker agent (agents/knowledge-linker.md) as a foreground sub-agent (run_in_background: false, mode: "bypassPermissions"), passing vault_root, knowledge_folder, resources_folder, areas_folder, and projects_folder. The agent always scans the full vault regardless of the scope chosen in Step 1. Proceed to Step 4 immediately (the agent's output replaces Step 3).
For ≤20 notes: continue with Step 3.
Look for:
| Connection Type | Description |
|---|---|
| Conceptual overlap | Both notes discuss the same idea |
| Cause-effect | One note explains why something in another happens |
| Elaboration | One note goes deeper on a concept mentioned in another |
| Contrast | Notes present different perspectives on the same topic |
| Sequence | Notes form a natural progression of ideas |
| Application | One note shows how to apply a concept from another |
Group suggestions by note. For each suggestion, show:
──────────────────────────────────────────────────────────────
🔗 Connect — {N} suggestions found
──────────────────────────────────────────────────────────────
[{n}/{N}] `{Note A}` → `{Note B}`
Type: {connection type}
Reason: {reason}
Add to `{Note A}`:
Near "...{nearby text}..." → add [[{Note B}]]
No suggestions:
✅ No connections found — notes are already well-linked.
Maximum 10 suggestions. Ask user to approve each batch before implementing.
If more than 10 suggestions found, show first 10 and add: (showing 10 of {M} — run /connect again to see more)
For each approved suggestion:
After implementing:
✅ Added [[{Note B}]] link to {Note A}.
After connecting, optionally run:
Want me to list notes with no outbound links? These "orphan" notes might be missing connections.
List them if yes, let user decide what to do.
Skip this step if no wikilinks were approved or implemented in Step 5.
After implementing approved wikilinks, use AskUserQuestion to offer typed relationship frontmatter:
Want me to also add typed relationship properties to the frontmatter of connected notes? This makes connections machine-readable and shows relationship types in Obsidian Graph View. (yes / no)
If user agrees:
uses, depends_on, contradicts, supersedes, caused_byIf the user asks to retro-tag existing notes (e.g. "update all notes in 01-projects/onebrain/"):
.md filesFollow ../_shared/audit-log-format.md (canonical frontmatter, append-per-day algorithm, run-section heading, failure mode) with:
YYYY-MM-DD-connect.md — one file per day.[audit-log, connect]/connectPer-skill body template (canonical ## Run HH:MM heading; metadata in first bullet):
## Run HH:MM
- Scope: knowledge-folder
- Total: N links added across M notes
### Wikilinks added
- `03-knowledge/ai/Foo.md` → added `[[Bar]]`, `[[Baz]]`
- `03-knowledge/dev/Qux.md` → added `[[Foo]]`
This skill is long-running. Emit a 1-line status update after each major step so the user can see progress in real time.
In-session format:
→ [step N/M] <action being taken>
Examples:
→ [step 1/4] reading target note · finding candidate links...
→ [step 2/4] dispatching knowledge-linker sub-agent...
→ [step 3/4] linker returned 14 candidates · ranking...
→ [step 4/4] writing top suggestions + adding to ## Related...
Rules:
→ [step N/M] prefix exactly so they're visually distinct from skill output"Entire knowledge base" scope can be very large. If note count exceeds 20, Step 2b delegates to the Knowledge Linker agent — the inline Steps 3-4 path is only for small scopes. Do not try to hold hundreds of notes in context.
Avoid suggesting wikilinks that already exist. Before proposing a connection between Note A and Note B, check whether [[Note B]] (or [[Note B|...]]) already appears anywhere in Note A. Suggesting existing links adds noise without value.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
knowledge-graph, wikilinks, note-connections, vault-scanning
32 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./npx claudepluginhub onebrain-ai/onebrain --plugin onebrainOther plugins' skills for the same job