zettel-link
由 hxy9243 提供
Search & Research简介
This skill maintains the Note Embeddings for Zettelkasten, to search notes, retrieve notes, and discover.
描述
该技能的功能
Maintains semantic embeddings for an Obsidian vault to enable note search, retrieval, and connection discovery. Uses cosine similarity to find related notes across a Zettelkasten. Supports local (Ollama) and cloud (OpenAI, Gemini) embedding providers.
Semantic search finds conceptually related notes even when they share no keywords, which keyword search and manual tagging cannot do.
何时使用
- Finding notes related to a half-remembered idea
- Discovering unexpected links between research notes
- Rebuilding broken connections after reorganizing a vault
- Searching notes by meaning rather than exact keywords
- Generating a graph of semantically connected notes
示例工作流
User asks: find notes related to 'epistemology and belief formation'
- 1
Run config.py to confirm config/config.json exists
- 2
Run embed.py --input <vault_dir> to generate or update the embedding cache
- 3
Run search.py --input <vault_dir> --query 'epistemology and belief formation'
- 4
Read search results from .embeddings/search_results.json
- 5
Return the top matching note titles and snippets to the user
List of the 5 most semantically similar notes with similarity scores
前置要求
- Ollama installed locally with mxbai-embed-large model pulled (if using local provider)
- OPENAI_API_KEY environment variable (if using OpenAI provider)
- GEMINI_API_KEY environment variable (if using Gemini provider)
安装
clawhub install hxy9243/zettel-link运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。