Skip to content
Back to skills

Vector Setup

ASecurity

First-run setup for ruvector@0.3.13 — installs ONNX/Brain/SONA add-ons, registers the MCP server, and verifies the install via `doctor`

  • 82,861 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added May 27, 2026
data-airustbashnode

Works with

  • mcp

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 9, 2026

npx -y skills add ruvnet/ruflo --skill vector-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vector Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vector Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ruvnet-vector-setup/badge)](https://www.skillsdirectory.com/skills/ruvnet-vector-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vector-setup
description: First-run setup for ruvector@0.3.13 — installs ONNX/Brain/SONA add-ons, registers the MCP server, and verifies the install via `doctor`
argument-hint: "[--full]"
allowed-tools: Bash Read
disable-model-invocation: true
---

# Vector Setup

Bootstraps `ruvector@0.3.13` and its optional add-ons so every `/vector` subcommand actually works on first run.

## Why this exists

Out of the box, several `/vector` subcommands fail with a confusing dep error:

| Error | Missing package |
|-------|-----------------|
| `ONNX WASM files not bundled. The onnx/ directory is missing.` | none — upgrade to ruvector 0.3.3 or later, which bundles it (0.2.x lacks it) |
| `requires @ruvector/rabitq-wasm` (or diskann, router, graph, rvlite, rvf, tiny-dancer) | `npx -y ruvector@0.3.13 add <extra>` installs it into this project (0.3.8); `add --list` shows what is installed |
| `Brain commands require @ruvector/pi-brain` | `@ruvector/pi-brain` |
| `SONA not available. Native error: Cannot find module '/.../@ruvector/sona/index.js'` | `@ruvector/ruvllm` (JS fallback) |
| `LLM commands require @ruvector/ruvllm` | `@ruvector/ruvllm` |

This skill installs them in one pass.

## Steps

1. **Pin ruvector**:
   ```bash
   npm install ruvector@0.3.13
   ```
2. **Install the add-ons** (idempotent — only what's missing):
   ```bash
   npm install @ruvector/pi-brain \
               @ruvector/ruvllm
   ```
   For a leaner install, pass `--full` to also pull `@ruvector/graph-node` and `@ruvector/router`:
   ```bash
   npm install @ruvector/pi-brain \
               @ruvector/ruvllm \
               @ruvector/graph-node \
               @ruvector/router
   ```
3. **Verify the binary**:
   ```bash
   npx -y ruvector@0.3.13 doctor
   npx -y ruvector@0.3.13 info
   ```
4. **Register the MCP server**:
   ```bash
   claude mcp add ruvector -- npx -y ruvector@0.3.13 mcp start
   claude mcp list | grep ruvector
   ```
   Since 0.3.4 the MCP server is locked down by default. Two env vars widen it, and only on purpose:
   - `RUVECTOR_MCP_ALLOW_INIT=1` lets `hooks_init` and `hooks_doctor --fix` write project config. Without it they refuse.
   - `RUVECTOR_MCP_ROOTS=/path/a:/path/b` adds directories the hooks file tools may read. Without it they stay inside the working directory (0.3.7).

   Pass them with `claude mcp add ruvector -e RUVECTOR_MCP_ALLOW_INIT=1 -- npx -y ruvector@0.3.13 mcp start` only for a setup session, then re-register without the flag.

   Upgrading from an older pin: remove and re-add the server at 0.3.13 (`claude mcp remove ruvector`, then the `add` line above). The ruflo-console vector page runs `npx --offline -y ruvector@0.3.13`, which works only once 0.3.13 is in the npx cache.

   Since 0.3.5 a project with no `.ruvector/` directory uses its own store, not `~/.ruvector`. Memories recorded before that sit in the home store and do not show up in a new project.
5. **Sanity check** the most common subcommands:
   ```bash
   npx -y ruvector@0.3.13 hooks route "test"
   npx -y ruvector@0.3.13 attention list
   npx -y ruvector@0.3.13 rvf examples
   ```
6. **(Optional) Generate a pi identity** for brain + edge:
   ```bash
   npx -y ruvector@0.3.13 identity generate
   npx -y ruvector@0.3.13 identity show
   ```

## Smoke test

For a deterministic verification of the install, run the plugin's bundled smoke script:
```bash
bash plugins/ruflo-ruvector/scripts/smoke.sh
```

It checks: version pin, top-level subcommand visibility, `hooks ast-analyze`, `hooks route`, `attention list`, `rvf examples`, and `info`. Exits non-zero if any drift from the contracted surface is detected.

## What this does not install

- Native Rust toolchain (optional; only needed for source builds)
- Platform-specific native bindings (auto-detected by `@ruvector/core`)
- `@ruvector/sona` native binding (the JS fallback via `@ruvector/ruvllm` is sufficient on macOS arm64; Linux x64 has its own native binding)

If `doctor` still reports a problem after this skill runs, paste its output verbatim and ask.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.