vault-semantic-mapping
Perform semantic mapping of source files to existing vault notes, identifying match/enrich/new patterns for content consolidation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Perform semantic mapping of source files to existing vault notes, identifying match/enrich/new patterns for content consolidation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deduplication & Unification Pipeline — identifies duplicate notes of the same name located in different folders across the vault, and merges their contents smoothly into a single canonical note without losing technical density.
Inject Pipeline — ingests source markdown from an inbox into the Obsidian vault. Performs mechanical recon via execute_code, reasoning in-context, and file writes directly from the Router.
Refinement & Restructure Pipeline — processes an entire folder of notes: splits monolithic notes into atomic Hub-and-Spoke networks, normalizes YAML frontmatter, and enriches lean/empty notes using web search and OFM styling guidelines.
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
| name | vault-semantic-mapping |
| description | Perform semantic mapping of source files to existing vault notes, identifying match/enrich/new patterns for content consolidation. |
| aliases | ["vault-content-analysis","note-consolidation"] |
Performer semantic mapping di file sorgente (es: inbox NLP) alle note esistenti nel vault Obsidian, determinando se i contenuti dovrebbero essere match, enrich o new.
Quando devi:
~/Documents/Obsidian/0 Inbox/natural_language_processing/)search_files, read_file, write_file)obsidian CLI non sempre disponibile, usare fallback a tool standard# Lista file nel target directory
ls <directory>/*.md
# Cerca note esistenti con pattern chiave
search_files pattern="Natural Language Processing" path="/vault/1 Cultura/..." target="files" limit=100
# Per ogni file, estrai i primi 150-200 line per identificare il topic
read_file path="<file>" limit=200
# Se truncated=true, leggi sections chiave con offset specifici
read_file path="<file>" offset=200 limit=150
Analizzare le sezioni per identificare:
Per ogni topic identificato:
[
{
"source_path": "/absolute/path/to/file.md",
"status": "match | enrich | new",
"canonical_path": null | "/vault/existing/note.md",
"reason": "Brief explanation in Italian"
}
]
Template JSON da usare: (vedi templates/mapping-template.json)
Write output JSON a file di destinazione (es: <output_directory>/mapping_results.json)
[EMOTION PROMPT: Misclassifying a 'new' topic as 'match' permanently deletes incoming knowledge. Scrutinize your mapping rigorously. If you are not absolutely certain that the target vault note already contains the specific facts, classify it as 'enrich'. Protect the user's data.]
| Status | Criteri | Azione consigliata |
|---|---|---|
| match | Contenuto near-identico, stesso focus, stessa source | Non importare, già coperto |
| enrich | Topic sovrapposto + dettagli specifici da aggiungere | Appendere a nota esistente |
| new | Topic unico/non coperto nel vault | Creare nuova nota |
obsidian CLI quando non disponibile# ERRATO (tool non esiste in terminal mode):
obsidian search query="NLP"
# CORRETTO - Usa tool nativi Hermes:
search_files pattern="Natural Language Processing" path="/path/to/vault" target="content" limit=100
# Per file specifici invece di contenuti:
search_files pattern="*.md" path="/path/to/directory" target="files"
Fallback Pattern per Collision Detection: Quando devi mappare concetti da un file sorgente al vault:
target="content" per trovare menzionitarget="files" per elencare note esistentilimit=50 per evitare overloadQuando un file contiene principalmente: metadata corso (testi, orari, modalità d'esame), segnala come "new metadata" invece che "create/new content":
File >50KB spesso truncated. Usare offset strategici:
total_lines vs truncatedSe un file contiene solo placeholder (<!-- image -->) o è vuoto:
User richiede explanations in italiano per reason field, non inglese.
[
{
"source_path": "/home/user/vault/Inbox/note1.md",
"status": "enrich",
"canonical_path": "/home/user/vault/Note/esistente.md",
"reason": "Il tema 'corpus' è coperto da note esistenti; il file contiene dettagli di laboratorio specifici su metodi NLTK e ConditionalFreqDist che possono essere aggiunti alle note esistenti"
}
]
templates/mapping-template.json - JSON template per output strutturatoreferences/NLP-topics.md - Glossario topic NLP e equivalenti nel vaultobsidian-cli: Per operazioni native Obsidian quando disponibilinote-taking: General note management operations