New to Claude Skills? Learn how to install them →

ruvnet on GitHub

Vector Embed

Free

Generate and store vector embeddings for semantic tasks.

by ruvnet67.6k stars on ruvnet/ruflo
1 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What Vector Embed does

Vector Embed is a skill designed for developers and data scientists who need to generate vector embeddings from text, code, or documents. Utilizing the ruvector npm package, this skill allows you to convert your input into 384-dimensional vectors that can be used for various applications such as semantic search, similarity comparison, or clustering. The underlying technology leverages the ONNX all-MiniLM-L6-v2 model, which is optimized for performance with HNSW indexing, enabling over 52,000 inserts per second and approximately 0.045 milliseconds for search operations.

To get started, you need to ensure that the ruvector@0.2.25 package is installed in your environment. The skill provides straightforward commands for embedding text, either as a single string or from a file. Although batch processing is not directly supported, you can easily loop through files in your shell to achieve similar results. Additionally, the skill offers an adaptive variant for domain-specific tasks, such as embedding code, allowing for greater flexibility in your applications.

Once the embeddings are generated, you can store metadata in AgentDB for future reference, enhancing your ability to manage and retrieve vector data effectively. This skill is particularly useful in scenarios where you need to perform semantic analysis or build recommendation systems based on text similarity. By integrating Vector Embed into your workflow, you can streamline the process of creating and managing vector embeddings, making it a valuable addition to your development toolkit.

When to use it

This skill is ideal when you need to convert text or documents into vector embeddings for tasks like semantic search and clustering.

When not to use it

If you require built-in batch processing or advanced file handling features, this skill may not meet your needs.

What you can build with it

Semantic Search Implementation

Use Vector Embed to generate embeddings for a dataset of documents, enabling efficient semantic search capabilities.

Text Similarity Analysis

Generate vector embeddings for multiple texts to compare their semantic similarity, facilitating clustering and categorization.

Code Embedding for Analysis

Utilize the adaptive variant of Vector Embed to create embeddings for code snippets, allowing for enhanced code similarity analysis.

How to install Vector Embed

View source

1. Install with the skills CLI

npx skills add ruvnet/ruflo/vector-embed --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by ruvnet

Vector Embed

Generate and store vector embeddings using the ruvector npm package.

When to use

Use this skill to embed text, code, or documents into 384-dimensional vectors for semantic search, similarity comparison, or clustering. ruvector uses ONNX all-MiniLM-L6-v2 with HNSW indexing (52,000+ inserts/sec, ~0.045ms search).

Steps

  1. Ensure ruvector@0.2.25 is available:
    npm ls ruvector 2>/dev/null | grep '0.2.25' || npm install ruvector@0.2.25
    
    If embed text later reports ONNX WASM files not bundled, also run:
    npm install ruvector-onnx-embeddings-wasm
    
  2. Embed the input (use the text subcommand, with text as a positional arg):
    • Single string: npx -y ruvector@0.2.25 embed text "your text here"
    • With output file: npx -y ruvector@0.2.25 embed text "your text here" -o vec.json
    • For a file: read its content via the Read tool, then pass it as the positional argument.
    • For batch: loop over files in shell — ruvector@0.2.25 has no built-in --batch/--glob flags.
  3. Adaptive (LoRA) variant: npx -y ruvector@0.2.25 embed text "..." --adaptive --domain code
  4. Confirm — report vector dimension (384), norm, and any output path written.
  5. Store metadata in AgentDB if needed: mcp__plugin_ruflo-core_ruflo__memory_store({ key: "embed-SOURCE", value: "VECTOR_METADATA", namespace: "vector-patterns" })

MCP alternative

Register the MCP server once with the pinned version:

claude mcp add ruvector -- npx -y ruvector@0.2.25 mcp start

Then call MCP tools directly: hooks_rag_context (semantic context), brain_search (collective brain), hooks_ast_analyze, hooks_route.

Caveats

  • The embed --batch --glob and embed --file flags do not exist in ruvector@0.2.25; only embed text <text> is supported. Read files yourself and call embed text per file.
  • ONNX runtime is not bundled by default. If embedding fails, install ruvector-onnx-embeddings-wasm or run npx -y ruvector@0.2.25 doctor to diagnose.

Frequently asked questions about Vector Embed

Similar skills