ruvector-integrations
FreeNo executable scriptsNot checkedUse the optional native and WASM accelerators that the `ruvector` npm package wires in, including RaBitQ-accelerated hook memory recall, the DiskANN on-disk…
by ruvnet★ 4,727 GitHub starsAbout this skill
ruvector integrations
ruvector keeps a dependency-light core and loads its accelerators lazily.
Each accelerator below is either an optional dependency, installed by
default and skipped silently where it cannot install, or an extra, which
you install with npx ruvector add <name>. Every path still works when its
package is missing: it falls back to a pure-JS implementation or prints an
install hint.
Check what is installed:
npx ruvector add --list # extras and their install state
npx ruvector add --list --json # machine-readable
Over MCP, hooks_capabilities reports the same list.
Hook memory recall: RaBitQ (@ruvector/rabitq-wasm, optional dependency)
The MCP tools hooks_recall and hooks_suggest_context, and the library's
IntelligenceEngine.recall(), scan every memory embedding while the store is
small. (The one-shot CLI command hooks recall always scans.) Once a store reaches RUVECTOR_RABITQ_THRESHOLD memories (default
5000; 0 turns it off), recall works in two steps:
- A 1-bit RaBitQ index proposes a candidate pool of 10 x k.
- The pool is re-scored with exact cosine similarity, so the scores you get back are exact.
How the index behaves:
- Build timing. The index is built on the second eligible recall in a process. A one-shot hook command never pays the build cost (about 0.4 s for 5k x 384). The long-lived MCP server builds it once and then answers in about 0.5 to 3 ms instead of a full scan (about 9 ms at 5k, 38 ms at 20k).
- Inserts and deletes after the build take effect immediately, without a rebuild. The index rebuilds once those changes reach about 10% of its size.
- Which engine ran.
IntelligenceEngine#getStats().recallEnginereports'rabitq'or'brute-force'for the most recent recall.
If the package is missing, recall stays on the exact scan. Nothing else changes.
DiskANN on-disk index (@ruvector/diskann, extra)
npx ruvector add diskann
npx ruvector diskann build ./idx -i vectors.json [--max-degree 64] [--alpha 1.2] [--json]
npx ruvector diskann search ./idx -v 0.1,0.2,0.3 -k 10 [--json]
vectors.jsonis a JSON array of{ "id": "...", "vector": [ ... ] }. All vectors must share one dimension, and ids must be unique.- Search distances are squared L2.
- The MCP tools are
diskann_build(path,vectors) anddiskann_search(path,vector,k). Their paths are confined to the server's working directory (andRUVECTOR_MCP_ROOTS). - From the library, use
buildDiskAnnIndex(dir, records),searchDiskAnnIndex(dir, query, k), or the lower-levelDiskAnnIndex.
Code-graph analysis (@ruvector/mincut-wasm, optional dependency)
npx ruvector hooks graph-mincut src/*.ts
npx ruvector hooks graph-cluster src/*.ts --method louvain
npx ruvector hooks graph-cluster src/*.ts --method spectral --clusters 3
These commands build an undirected graph from relative imports between the
files you pass. They recognise both from './x' and require('./x'), with or
without an extension.
graph-mincutreturnsgroups,cutWeight,modularityandengine.engineismincut-wasmwhen the WASM solver is installed andtypescriptotherwise. Both engines are exact and give the same cut.graph-clusterreturnsassignments(file to cluster),groupsandmodularity. The spectral method also returnseigenvalues. Both methods are deterministic.
The MCP equivalents are hooks_graph_mincut and hooks_graph_cluster.
Other extras
| Extra | Package | What it backs |
|---|---|---|
rabitq |
@ruvector/rabitq-wasm |
RabitqIndex library API (also used by recall, above) |
diskann |
@ruvector/diskann |
ruvector diskann, diskann_* MCP tools |
rvlite |
rvlite |
rvlite_sql, rvlite_cypher, rvlite_sparql MCP tools |
rvf |
@ruvector/rvf |
ruvector rvf ..., rvf_* MCP tools |
graph |
@ruvector/graph-node |
CodeGraph (incl. PageRank) library API |
npx ruvector add <name> uses the project's own package manager. It uses
npm, pnpm, yarn or bun according to the lockfile, and
--dry-run prints the exact command without running it.
Installing this skill into a project
npx ruvector skills install # .claude/skills (Claude Code) and .agents/skills (Codex)
npx ruvector skills install --target codex
npx ruvector skills list
Install ruvector-integrations in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the ruvector-integrations skill do?
Use the optional native and WASM accelerators that the `ruvector` npm package wires in, including RaBitQ-accelerated hook memory recall, the DiskANN on-disk index (CLI and MCP), MinCut/Louvain/spectral code-graph analysis, and `npx ruvector add` extras. Use when a task involves large hook memory stores, building or searching a vector index on disk, finding module boundaries or communities in a codebase, or deciding which ruvector extra to install. Do not use for generic vector-database questions that the core `ruvector` API already answers.
How do I install the ruvector-integrations skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the ruvector-integrations skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic