search-vector-architect

search-vector-architect is a skill for Claude Code from k1lgor/virtual-company. It costs 38 tokens per session (3,543 once invoked), scanned A, original, MIT.

A method for designing keyword search, vector search, and hybrid search systems. Vector search finds items by meaning, while RAG combines search with generated answers using retrieved information.

In plain words
What is it for?
Use it to design Elasticsearch indexes and queries, Pinecone or Weaviate vector search, documentation RAG systems, product search, semantic search, and relevance evaluations.
Why use it?
It provides measurable checks for whether search results are relevant instead of judging them by appearance alone. It also helps choose matching methods for different search needs.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Part of the virtual-company plugin — 27 skills, 1 command, 6 agents, 3 hooks shipped together

Good fit Use it to design Elasticsearch indexes and queries, Pinecone or Weaviate vector search, documentation RAG systems, product search, semantic search, and relevance evaluations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/k1lgor/virtual-company/23-search-vector-architect
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 k1lgor/virtual-company --skill 23-search-vector-architect
Clone the repo
git clone --depth 1 https://github.com/k1lgor/virtual-company

Made for: Claude Code.

Or install virtual-company, the plugin that ships this one along with the rest of its 27 skills, 1 command, 6 agents, 3 hooks.

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 search-vector-architect

README.md
[![agentmods](https://agentmods.dev/badge/skills/k1lgor/virtual-company/23-search-vector-architect/github.svg)](https://agentmods.dev/skills/k1lgor/virtual-company/23-search-vector-architect)
Your own site
<a href="https://agentmods.dev/skills/k1lgor/virtual-company/23-search-vector-architect"><img src="https://agentmods.dev/badge/skills/k1lgor/virtual-company/23-search-vector-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for search-vector-architect

Your own site · 80×15
<a href="https://agentmods.dev/skills/k1lgor/virtual-company/23-search-vector-architect"><img src="https://agentmods.dev/badge/skills/k1lgor/virtual-company/23-search-vector-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,543 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.00038 $0.03543
Opus 5 $0.00019 $0.01772
Sonnet 5 $0.00008 $0.00709
Haiku 4.5 $0.00004 $0.00354

Measured 12d ago against content hash 687bb6db8c56, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

search-vector-architect 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 12d 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/23-search-vector-architect/SKILL.md · 367 lines

How it starts

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

🔍 Search & Vector Architect

You are the Lead Search Engineer. You design and optimize search systems — from traditional full-text search (Elasticsearch) to modern vector search (Pinecone, Weaviate) and RAG architectures.

🛑 The Iron Law

NO SEARCH SYSTEM WITHOUT RELEVANCE EVALUATION METRICS

Every search system must be evaluated with concrete metrics (precision@k, recall@k, MRR, or nDCG). "It seems to return good results" is not evaluation. Measure it.

🛠️ Tool Guidance

  • Discovery: Use Read to audit existing index mappings or vector configurations.
  • Implementation: Use Edit to generate index schemas, queries, or RAG pipeline code.
  • Verification: Use Bash to run queries and check relevance/latency.

📍 When to Apply

  • "Set up Elasticsearch for our product catalog."
  • "Build a RAG system for our documentation."
  • "Improve search relevance for our e-commerce site."
  • "Design a vector search pipeline for semantic search."

Decision Tree: Search System Design

graph TD
    A[Search Requirement] --> B{What type of matching?}
    B -->|Exact/keyword| C[Elasticsearch/BM25]
    B -->|Semantic/meaning| D[Vector search]
    B -->|Both| E[Hybrid search]
    C --> F[Define index mapping + analyzers]
    D --> G[Choose embedding model + vector DB]
    E --> H[Combine BM25 + vector scores]
    F --> I[Build evaluation dataset]
    G --> I
    H --> I
    I --> J[Calculate precision@k, recall@k]
    J --> K{Meets threshold?}
    K -->|No| L[Tune: analyzers, embedding model, reranker]
    L --> J
    K -->|Yes| M[Test latency at scale]
    M --> N{Latency acceptable?}
    N -->|No| O[Optimize: caching, sharding, quantization]
    O --> M
    N -->|Yes| P[✅ Search system ready]

Read the full file on GitHub · 367 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 367 lines · 38 tokens per session scan A 687bb6db8c56

Subscribe to this mod's changes

search-vector-architect is a skill published in the GitHub repository k1lgor/virtual-company (4 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 3,543 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

vector-and-embedding-weaknesses

Hunt vector / embedding weaknesses (OWASP LLM08:2025) — adversarial inputs against the RAG / similarity layer that cause cross-tenant leak, embedding-inversion privacy loss, semantic confusion, and retriever-driven prompt injection.

PurpleAILAB/Decepticon · 59 tokens

sensitive-information-disclosure

Hunt LLM sensitive-information disclosure (OWASP LLM02:2025) — leakage of PII, secrets, internal source, model details, and other-tenant data through model outputs, training-data extraction, or retrieval-side joins.

PurpleAILAB/Decepticon · 55 tokens

aatmf-t12-rag-poisoning

AATMF T12 — RAG & Knowledge Base Manipulation. PoisonedRAG, vector store flood, embedding collision, retrieval-bias attacks.

PurpleAILAB/Decepticon · 41 tokens

molecular-rag

Retrieve structurally similar compounds with known properties from ChEMBL/ZINC to ground predictions and inform optimization. Based on MolRAG (Xian 2025, ACL).

synthetic-sciences/openscience · 40 tokens

browserwing-admin

Manage and operate BrowserWing — an intelligent browser automation platform. Install dependencies, configure LLM, create/manage/execute automation scripts, use AI-driven exploration to generate scripts, browse the script marketplace, and troubleshoot issues.

MemTensor/MemOS · 47 tokens

unified-llm-api

Call model APIs through @prismshadow/agenthub — streaming text generation, image generation, speech synthesis, embeddings and the supported-model registry with one client.

Prism-Shadow/penguin-harness · 39 tokens