跳到正文
Skillpedia
数据库81k · #1561

agentdb-query

它能做什么

这项技能引导智能体使用 AgentDB,这是一个分层保存知识并关联相关事实的记忆存储。适合希望智能体在多次工作会话之间记住并回忆信息的人。

适用场景

  • ✓当你希望保存知识,以便在之后的会话中回忆的时候。
  • ✓当你需要从早先任务中找出已学到的模式的时候。
  • ✓当你希望把相关事实链接在一起形成知识图谱的时候。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-agentdb/skills/agentdb-query/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-agentdb/skills/agentdb-query/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请保存我们决定每周发布的决定,等到规划下一次冲刺时再把它回忆出来。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会检查 AgentDB 是否可用,启动一个会话,把事实保存到工作、情节或语义层中,并在需要时进行搜索或链接。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

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
常见问题

记忆分为哪些层?

这项技能列出了用于存储知识的工作层、情节层和语义层。

什么是因果图?

它是事实之间的一组链接,显示哪些事实相关或导致了其他事实。

它会检查存储是否在运行吗?

会。第一步是健康检查,确认 AgentDB 可用。

详情

作者的原始描述

Query AgentDB through the controller bridge -- semantic routing, hierarchical recall, causal graphs, context synthesis, pattern store/search

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1561
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能