Process markdown notes to auto-insert [[wikilinks]] for key concepts and create stub concept notes. Trigger: When linking notes, extracting concepts, or user says "auto wikilink", "link concepts", "extract entities".
Process markdown notes to automatically insert [[wikilinks]] for recognized concepts, entities, and technical terms. Optionally creates stub notes for newly discovered concepts. Preserves existing formatting and avoids over-linking.
Manual wikilinking is tedious and inconsistent. Auto-wikilink scans note content, identifies key concepts that match existing notes or known entities, and inserts [[wikilinks]] without disrupting formatting. The goal is a well-connected knowledge graph — not maximum link density.
Before linking, build an index of known concepts from the vault:
.md file title is a linkable conceptaliases field provides alternate names for the same notewikilink-dictionary.md note with additional terms to recognize# Example concept index entry
- canonical: "Clean Architecture"
aliases: ["clean arch", "hexagonal architecture", "ports and adapters"]
note_exists: true
path: "architecture/Clean Architecture.md"
For large documents, process in chunks to maintain context without overwhelming:
Identify linkable entities in the text:
Always link:
Detect and suggest:
API, REST, OAuth2)Never link:
[[wikilinks]], code blocks, or URLs![[...]])Insert [[wikilinks]] following these rules:
Clean Architecture → [[Clean Architecture]]ports and adapters → [[Clean Architecture|ports and adapters]]components when Component note exists → [[Component|components]] (preserve original casing in display)[[link inside [[another]] link]]**[[Clean Architecture]]**When a detected entity has no matching note:
---