zettel-linkThis skill maintains the Note Embeddings for Zettelkasten, to search notes, retrieve notes, and discover connections between notes.
Install via ClawdBot CLI:
clawdbot install hxy9243/zettel-linkThis skill provides a suite of idempotent Python scripts to embed, search, and link notes in an Obsidian vault using semantic similarity. All scripts live in scripts/ and support multiple embedding providers.
The skill should be triggered when the user wants to search notes, retrieve notes, or discover connections between notes.
If the search directory is indexed with embeddings, the skill should prompt the user if they want to create new embeddings.
mxbai-embed-large (local, default)text-embedding-3-smalltext-embedding-004uv run scripts/config.py: Configure the embedding model and other settings.uv run scripts/embed.py: Embed notes and cache to .embeddings/embeddings.jsonuv run scripts/search.py: Semantic search over embedded notesuv run scripts/link.py: Discover semantic connections, output to .embeddings/links.jsonIf the config/config.json file does not exist, create it:
uv run scripts/config.py
This creates config/config.json with defaults:
{
"model": "mxbai-embed-large",
"provider": {
"name": "ollama",
"url": "http://localhost:11434"
},
"max_input_length": 8192,
"cache_dir": ".embeddings",
"default_threshold": 0.65,
"top_k": 5,
"skip_dirs": [".obsidian", ".trash", ".embeddings", "Spaces", "templates"],
"skip_files": ["CLAUDE.md", "Vault.md", "Dashboard.md", "templates.md"]
}
To use a remote provider:
# OpenAI
uv run scripts/config.py --provider openai
# Gemini
uv run scripts/config.py --provider gemini
# Custom model
uv run scripts/config.py --provider openai --model text-embedding-3-large
To adjust tuning parameters:
uv run scripts/config.py --top-k 10 --threshold 0.7 --max-input-length 4096
uv run scripts/embed.py --input <directory>
This creates with the embedding cache.
max_input_length before embedding.--force to re-embed everything.uv run scripts/search.py --input <directory> --query "<query>"
This embeds the query using the configured provider and compares it with all cached embeddings, returning the top_k most similar notes.
Results are saved to .
uv run scripts/link.py --input <directory>
This computes cosine similarity for all note pairs and outputs connections above the default_threshold to .
The output includes:
Tuning: Adjust --threshold to widen or narrow the connection discovery.
metadata + data)/.embeddings/embeddings.json mtime)--force flagWhen using this skill:
config.py first if config/config.json does not exist.embed.py before search.py or link.py ā the cache must exist..env file in the skill directory).Generated Mar 1, 2026
Researchers use the skill to embed and search academic papers or notes, enabling semantic discovery of connections between concepts across a large corpus. It helps identify relevant literature and uncover interdisciplinary links, streamlining literature reviews and hypothesis generation.
Writers and content creators embed their notes to search for related ideas and discover hidden connections between topics, enhancing creativity and consistency. This supports building comprehensive articles, books, or digital content from a personal knowledge base.
Organizations embed internal documents, policies, and reports to enable semantic search for compliance audits or training materials. It helps employees quickly find relevant information and identify relationships between regulatory requirements and company procedures.
Medical professionals embed patient notes, research studies, and clinical guidelines to search for similar cases or discover connections between symptoms and treatments. This aids in diagnosis support, research analysis, and improving patient care through linked insights.
Developers embed code documentation, issue reports, and project notes to semantically search for related technical information and discover connections between features or bugs. It enhances collaboration and knowledge sharing within development teams.
Offer a cloud-based service where users upload their notes or documents to access semantic search and linking features via a web interface. Revenue is generated through monthly or annual subscriptions, with tiers based on storage, embedding volume, and advanced analytics.
Sell licenses to large organizations for integrating the skill into their existing knowledge management systems, such as intranets or document repositories. Revenue comes from one-time licensing fees, customization services, and ongoing support contracts.
Provide a free version with basic embedding and search capabilities for personal use, while charging for premium features like higher embedding limits, remote provider integrations, or team collaboration tools. Revenue is generated through in-app purchases or upgrades.
š¬ Integration Tip
Ensure the Obsidian vault directory is correctly specified and API keys for remote providers are set in environment variables or a .env file to avoid errors during embedding.
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
Create, search, and manage Bear notes via grizzly CLI.
Track water and sleep with JSON file storage
Notion API for creating and managing pages, databases, and blocks.
Smart ClawdBot documentation access with local search index, cached snippets, and on-demand fetch. Token-efficient and freshness-aware.
Work with Obsidian vaults as a knowledge base. Features: fuzzy/phonetic search across all notes, auto-folder detection for new notes, create/read/edit notes with frontmatter, manage tags and wikilinks. Use when: querying knowledge base, saving notes/documents, editing existing notes by user instructions.