vector-setup — скилл для Claude Code: что делает и как установить
Готовит окружение для [email protected], ставит нужные дополнения и регистрирует MCP-сервер. Пригодится при ошибках нехватки модулей в командах /vector.
npx skills add ruvnet/ruflo --skill vector-setup -a claude-codeЧто делает vector-setup
Скилл выполняет первичную настройку пакета [email protected] и устраняет ошибки нехватки модулей при запуске подкоманд /vector. Без этой подготовки вызовы падают из-за отсутствия файлов ONNX или пакетов @ruvector/pi-brain и @ruvector/ruvllm.
Процесс состоит из нескольких шагов в Bash. Сначала ставится версия [email protected], затем подтягиваются дополнения. Флаг --full дополнительно устанавливает @ruvector/graph-node и @ruvector/router. Далее регистрируется MCP-сервер командой claude mcp add и выполняется проверка через doctor и info. Для полной проверки запускается скрипт plugins/ruflo-ruvector/scripts/smoke.sh.
Нативная цепочка инструментов Rust не ставится, потому что она нужна только для сборки из исходников. На macOS arm64 используется JS-заглушка из @ruvector/ruvllm, поэтому компилировать нативный биндинг SONA вручную не придётся.
Какие задачи решает
- зафиксировать версию
[email protected]и подготовить файлы ONNX - доустановить пакеты
@ruvector/pi-brainи@ruvector/ruvllm - зарегистрировать локальный MCP-сервер ruvector в Claude Code
- запустить диагностику через
ruvector doctorи smoke-скрипт
Примеры запросов агенту
- Настрой ruvector и установи все базовые зависимости
- Запусти vector-setup с флагом --full
- Проверь установку ruvector через doctor и подключи MCP-сервер
Как установить vector-setup
1Через Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill vector-setup -a claude-code2Вручную: положить файлы
~/.claude/skills/vector-setup/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/vector-setup/
1Через Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill vector-setup -a codex2Вручную: положить файлы
.agents/skills/vector-setup/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill vector-setup -a cursor2Вручную: положить файлы
.cursor/skills/vector-setup/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install ruvnet/ruflo vector-setup2Вручную: положить файлы
.github/skills/vector-setup/SKILL.md1Через Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill vector-setup -a gemini-cli2Командой платформы
gemini skills install https://github.com/ruvnet/ruflo --path plugins/ruflo-ruvector/skills/vector-setupВручную: положить файлы
.devin/skills/vector-setup/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill vector-setup -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора104
Весь набор →Похожие
Вопросы о vector-setup
Как установить vector-setup в Claude Code?
Выполните в терминале команду npx skills add ruvnet/ruflo --skill vector-setup -a claude-code. Конфигурация сохранится по пути ~/.claude/skills/vector-setup/SKILL.md.
Зачем запускать vector-setup перед работой с ruvector?
Свежая установка ruvector выдаёт ошибки модулей при вызове команд Brain, SONA или ONNX. Скилл ставит нужные npm-пакеты в один проход, регистрирует MCP-сервер и проверяет рабочее состояние утилиты.
Что добавляет флаг --full при установке?
С аргументом --full скилл дополнительно ставит пакеты @ruvector/graph-node и @ruvector/router помимо базовых @ruvector/pi-brain и @ruvector/ruvllm.
Исходный текст
SKILL.md · MIT
--- name: vector-setup description: First-run setup for [email protected] — installs ONNX/Brain/SONA add-ons, registers the MCP server, and verifies the install via `doctor` argument-hint: "[--full]" allowed-tools: Bash Read --- # Vector Setup Bootstraps `[email protected]` 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, which bundles it (0.2.x lacks it) | | `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 [email protected] ``` 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 [email protected] doctor npx -y [email protected] info ``` 4. **Register the MCP server**: ```bash claude mcp add ruvector -- npx -y [email protected] mcp start claude mcp list | grep ruvector ``` 5. **Sanity check** the most common subcommands: ```bash npx -y [email protected] hooks route "test" npx -y [email protected] attention list npx -y [email protected] rvf examples ``` 6. **(Optional) Generate a pi identity** for brain + edge: ```bash npx -y [email protected] identity generate npx -y [email protected] 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.
© ruvnet · MIT · ruvnet/ruflo