# Send Zettel Link to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "zettel-link",
    "name": "Zettel Link",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/hxy9243/zettel-link",
    "canonicalUrl": "https://clawhub.ai/hxy9243/zettel-link",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/zettel-link",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=zettel-link",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "TODO.md",
      "_meta.json",
      "config/config.json",
      "scripts/config.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "zettel-link",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-11T12:20:07.543Z",
      "expiresAt": "2026-05-18T12:20:07.543Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=zettel-link",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=zettel-link",
        "contentDisposition": "attachment; filename=\"zettel-link-1.1.3.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "zettel-link"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/zettel-link"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/zettel-link",
    "downloadUrl": "https://openagent3.xyz/downloads/zettel-link",
    "agentUrl": "https://openagent3.xyz/skills/zettel-link/agent",
    "manifestUrl": "https://openagent3.xyz/skills/zettel-link/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/zettel-link/agent.md"
  }
}
```
## Documentation

### Zettel Link Skill

This 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.

### Dependencies

uv 0.10.0+
Python 3.10+
One of the following embedding providers:

Ollama with mxbai-embed-large (local, default)
OpenAI API with text-embedding-3-small
Google Gemini API with text-embedding-004

### Overview of Commands

uv run scripts/config.py: Configure the embedding model and other settings.
uv run scripts/embed.py: Embed notes and cache to .embeddings/embeddings.json
uv run scripts/search.py: Semantic search over embedded notes
uv run scripts/link.py: Discover semantic connections, output to .embeddings/links.json

### Step 0 — Setup and Config

If 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

### Step 1 — Create Embeddings

uv run scripts/embed.py --input <directory>

This creates <directory>/.embeddings/embeddings.json with the embedding cache.

Incremental updates: Only re-embeds files that have been modified since the last run (based on file modification time).
Text truncation: Automatically truncates text to max_input_length before embedding.
Stale pruning: Removes entries for files that no longer exist.
Force re-embed: Use --force to re-embed everything.

### Step 2 — Semantic Search

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 <directory>/.embeddings/search_results.json.

### Step 3 — Semantic Connection Discovery

uv run scripts/link.py --input <directory>

This computes cosine similarity for all note pairs and outputs connections above the default_threshold to <directory>/.embeddings/links.json.

The output includes:

A flat list of all link pairs with scores
A per-note grouping for easy lookup

Tuning: Adjust --threshold to widen or narrow the connection discovery.

### Cache

Format: JSON with metadata envelope (metadata + data)
Location: <directory>/.embeddings/embeddings.json
Metadata: Tracks generation timestamp, model, provider, embedding size
Invalidation: Based on file modification time (mtime)
Force rebuild: Delete the cache file or use --force flag

### Agent Instructions

When using this skill:

Always run config.py first if config/config.json does not exist.
Run embed.py before search.py or link.py — the cache must exist.
For remote providers (openai, gemini), ensure the API key environment variable is set (or provide a local .env file in the skill directory).
All scripts are idempotent and safe to re-run.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: hxy9243
- Version: 1.1.3
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-11T12:20:07.543Z
- Expires at: 2026-05-18T12:20:07.543Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/zettel-link)
- [Send to Agent page](https://openagent3.xyz/skills/zettel-link/agent)
- [JSON manifest](https://openagent3.xyz/skills/zettel-link/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/zettel-link/agent.md)
- [Download page](https://openagent3.xyz/downloads/zettel-link)