agentdb-query — скилл для Claude Code: память между сессиями
Скилл для хранения и поиска знаний через AgentDB. Работает с иерархической памятью, графами причинно-следственных связей и семантическим маршрутизацией — нужен, если агент должен помнить контекст между запусками.
npx skills add ruvnet/ruflo --skill agentdb-query -a claude-codeЧто делает agentdb-query
agentdb-query даёт доступ к 20 MCP-инструментам для работы с AgentDB: иерархическое хранилище (рабочая, эпизодическая и семантическая память), поиск по сохранённым паттернам, синтез контекста и построение графов связей. Через единый интерфейс запрашиваешь знания, сохраняешь структурированные данные по уровням памяти, ищешь выученные паттерны и связываешь информацию в граф.
При вызове скилл проходит стандартный путь: проверка здоровья хранилища → старт сессии → сохранение или поиск данных → синтез контекста. Если сервис недоступен, есть fallback на встроенные инструменты memory_*. Для массовых операций предусмотрен batch-режим (до 500 записей). Важная деталь: инструменты иерархического и паттерн-хранилища не используют namespace — маршрутизация идёт по типу памяти или контроллеру.
Какие задачи решает
- сохранить знания агента между несколькими запусками
- найти релевантный контекст по семантической близости к запросу
- связать несколько фактов в граф причинно-следственных отношений
- отыскать выученные паттерны решения задач
- синтезировать ответ из нескольких слоёв памяти
Примеры запросов агенту
- Найди в памяти все решения для задачи типа «интеграция с REST API» и синтезируй контекст
- Сохрани каузальное ребро между узлом «конфигурация базы» и «оптимизация запросов»
- Поиск паттерна: как я раньше обработал циклические зависимости в графе?
Как установить agentdb-query
1Через Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill agentdb-query -a claude-code2Вручную: положить файлы
~/.claude/skills/agentdb-query/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/agentdb-query/
1Через Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill agentdb-query -a codex2Вручную: положить файлы
.agents/skills/agentdb-query/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill agentdb-query -a cursor2Вручную: положить файлы
.cursor/skills/agentdb-query/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install ruvnet/ruflo agentdb-query2Вручную: положить файлы
.github/skills/agentdb-query/SKILL.md1Через Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill agentdb-query -a gemini-cli2Командой платформы
gemini skills install https://github.com/ruvnet/ruflo --path plugins/ruflo-agentdb/skills/agentdb-queryВручную: положить файлы
.devin/skills/agentdb-query/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill agentdb-query -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора104
Весь набор →Похожие
Вопросы о agentdb-query
Как установить agentdb-query в Claude Code?
Запусти npx skills add ruvnet/ruflo --skill agentdb-query -a claude-code. Скилл будет доступен в ~/.claude/skills/agentdb-query/SKILL.md.
Что делает agentdb-query?
Это скилл для хранения и поиска знаний агента через AgentDB. Ты можешь сохранять структурированные данные в разные слои памяти (рабочую, эпизодическую, семантическую), искать информацию по смыслу, строить графы связей и извлекать выученные паттерны. Запросы маршрутизируются через контроллеры — это ускоряет поиск релевантного контекста.
Что делать, если AgentDB недоступен?
Скилл переключается на fallback — встроенные инструменты memory_store и memory_search. Это не ошибка, работа продолжится, но без графов и синтеза контекста. Проверить статус можно через инструмент mcp__plugin_ruflo-core_ruflo__agentdb_health.
Исходный текст
SKILL.md · MIT
--- name: agentdb-query description: Query AgentDB through the controller bridge -- semantic routing, hierarchical recall, causal graphs, context synthesis, pattern store/search argument-hint: "<query>" allowed-tools: mcp__plugin_ruflo-core_ruflo__agentdb_semantic-route mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-recall mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-store mcp__plugin_ruflo-core_ruflo__agentdb_context-synthesize mcp__plugin_ruflo-core_ruflo__agentdb_causal-edge mcp__plugin_ruflo-core_ruflo__agentdb_pattern-search mcp__plugin_ruflo-core_ruflo__agentdb_pattern-store mcp__plugin_ruflo-core_ruflo__agentdb_controllers mcp__plugin_ruflo-core_ruflo__agentdb_health mcp__plugin_ruflo-core_ruflo__agentdb_batch mcp__plugin_ruflo-core_ruflo__agentdb_feedback mcp__plugin_ruflo-core_ruflo__agentdb_consolidate mcp__plugin_ruflo-core_ruflo__agentdb_session-start mcp__plugin_ruflo-core_ruflo__agentdb_session-end Bash --- # AgentDB Query Query and manage AgentDB through the controller bridge. AgentDB exposes 20 `agentdb_*` MCP tools; this skill enumerates the standard usage path. ## When to use When you need to store, retrieve, or search knowledge across agent sessions. AgentDB provides hierarchical storage, causal knowledge graphs, semantic routing, and context synthesis. ## Steps 1. **Check health** — `mcp__plugin_ruflo-core_ruflo__agentdb_health`. Sanity-check `available: true`. 2. **Start session** — `mcp__plugin_ruflo-core_ruflo__agentdb_session-start` if not already active. 3. **Store knowledge** — `mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-store` for structured tier-keyed data (tiers: `working|episodic|semantic`). 4. **Recall knowledge** — `mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-recall` with a query. 5. **Search patterns** — `mcp__plugin_ruflo-core_ruflo__agentdb_pattern-search` for learned patterns (ReasoningBank-routed). 6. **Synthesize context** — `mcp__plugin_ruflo-core_ruflo__agentdb_context-synthesize` to combine multiple memories. 7. **Build causal graph** — `mcp__plugin_ruflo-core_ruflo__agentdb_causal-edge` to link related knowledge. ## Available controller groups Call `mcp__plugin_ruflo-core_ruflo__agentdb_controllers` to list the runtime registry. Functional categories surfaced via the 20 MCP tools: - **Hierarchical** — `agentdb_hierarchical-store`, `_recall` (tier-routed) - **Pattern** — `agentdb_pattern-store`, `_search` (ReasoningBank-routed) - **Semantic** — `agentdb_semantic-route`, `_context-synthesize` - **Causal** — `agentdb_causal-edge` (graph-node backend with bridge fallback) - **Lifecycle** — `agentdb_health`, `_controllers`, `_session-start`, `_session-end` - **Bulk** — `agentdb_batch` (≤500 entries), `_consolidate` - **Quality** — `agentdb_feedback` - **Graph reads** — `agentdb_graph-query` (k-hop / semantic / pagerank from a domain-prefixed node id such as `entity:xyz`; SQL k-hop is bounded at 3 hops, check `appliedDepth` and `truncated`) and `agentdb_graph-pathfinder` - **Deletes (destructive)** — `agentdb_hierarchical-delete`, `agentdb_causal-edge-delete`, `agentdb_causal-node-delete`. Confirm the exact ids with the user before calling; they are not undoable from this plugin. ## Important: namespace handling Namespace strings apply to `memory_*` and `embeddings_search` only. The `agentdb_hierarchical-*`, `agentdb_pattern-*`, and `agentdb_causal-edge` tools route by **tier** or **controller**, not namespace. Don't pass `namespace: 'foo'` to those tools — it will be silently ignored. See plugin README "Namespace convention". ## Operational fallbacks (branch on these) - `controller: 'memory-store-fallback'` — pattern persisted via `memory_store --namespace pattern`. NOT a failure. - `_graphNodeBackend: true` — causal-edge handled by `@ruvector/graph-node`. - `success: false, error: '...Use memory_store/memory_search instead.'` — bridge unavailable; switch to `memory_*` tools per the README replacement table. ## CLI alternative ```bash npx @claude-flow/cli@latest memory search --query "your query" --namespace patterns npx @claude-flow/cli@latest memory store --key "key" --value "value" --namespace patterns npx @claude-flow/cli@latest memory list --namespace patterns ```
© ruvnet · MIT · ruvnet/ruflo