zvec

zvec is a skill for Claude Code, Codex from zvec-ai/zvec-agent-skills. It costs 102 tokens per session (1,823 once invoked), scanned A, original, Apache-2.0.

A development assistant for zvec, a vector database: software that stores numerical representations of data so applications can find items by meaning or similarity.

In plain words
What is it for?
Use it to build semantic search, retrieval-augmented generation (RAG), multimodal search for text and images, or hybrid keyword-and-meaning search in Python or Node.js.
Why use it?
It helps developers choose storage, indexes, and search designs instead of building vector retrieval systems from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build semantic search, retrieval-augmented generation (RAG), multimodal search for text and images, or hybrid keyword-and-meaning search in Python or Node.js.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zvec-ai/zvec-agent-skills/zvec
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zvec-ai/zvec-agent-skills --skill zvec
Clone the repo
git clone --depth 1 https://github.com/zvec-ai/zvec-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for zvec

README.md
[![agentmods](https://agentmods.dev/badge/skills/zvec-ai/zvec-agent-skills/zvec.svg)](https://agentmods.dev/skills/zvec-ai/zvec-agent-skills/zvec)
Your own site
<a href="https://agentmods.dev/skills/zvec-ai/zvec-agent-skills/zvec"><img src="https://agentmods.dev/badge/skills/zvec-ai/zvec-agent-skills/zvec.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,823 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.01823
Opus 5 $0.00051 $0.00911
Sonnet 5 $0.00020 $0.00365
Haiku 4.5 $0.00010 $0.00182

Measured 8d ago against content hash 7ea552aa25c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

zvec scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/zvec/SKILL.md · 220 lines

How it starts

The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Usage Instructions

Before starting, understand the following:

  1. Development Language: Python or Node.js?

    • Python: use pip install zvec
    • Node.js: use npm install @zvec/zvec
  2. Use Cases:

    • RAG document retrieval system
    • Semantic search
    • Multimodal search (image + text)
    • Hybrid search (keywords + semantic)
  3. Data Scale:

    • < 100k: use FLAT index (exact search)
    • 100k-10M: use HNSW index (recommended default)
    • 10M: use IVF index (memory optimized)

Decision Workflow

  • User needs vector search functionality
    • Choose development language (Python/Node.js)
    • Determine use case
      • RAG system → use single-vector search + document chunk management
      • E-commerce search → use hybrid search (vector + filter)
      • Multimodal → use multi-vector search + weighted ranking
    • Design Schema (vector fields + scalar fields)
    • Select index type (HNSW/FLAT/IVF)
    • Implement data synchronization strategy

Default Recommendations

  • Use create_and_open() / ZVecCreateAndOpen() to create Collection
  • Use cosine similarity (COSINE) as default distance metric
  • Use FP32 type for dense vectors
  • Create InvertIndexParam index for filter fields

Validation Checklist

  • Vector dimensions match Schema definition
  • Scalar field types are correct
  • Filter condition syntax is correct
  • Call optimize() after large batch writes

Quick Start

Python:

import zvec

# Create Collection
schema = zvec.CollectionSchema(
    name="my_collection",
    fields=[
        zvec.FieldSchema(name="title", data_type=zvec.DataType.STRING),
    ],
    vectors=[
        zvec.VectorSchema(
            name="embedding",
            data_type=zvec.DataType.VECTOR_FP32,
            dimension=768,
            index_param=zvec.HnswIndexParam(
                metric_type=zvec.MetricType.COSINE
            ),
        ),
    ],
)

collection = zvec.create_and_open("./my_data", schema)

# Insert document
collection.upsert(zvec.Doc(
    id="doc_1",
    vectors={"embedding": [0.1] * 768},
    fields={"title": "Hello World"},
))

# Search
results = collection.query(
    vectors=zvec.VectorQuery(
        field_name="embedding",
        vector=[0.1] * 768,
    ),
    topk=10,
)

Read the full file on GitHub · 220 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 220 lines · 102 tokens per session scan A 7ea552aa25c5

Subscribe to this mod's changes

zvec is a skill published in the GitHub repository zvec-ai/zvec-agent-skills (17 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 102 tokens to every session and 1,823 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.