agentdb-query
它能做什么
这项技能引导智能体使用 AgentDB,这是一个分层保存知识并关联相关事实的记忆存储。适合希望智能体在多次工作会话之间记住并回忆信息的人。
适用场景
- ✓当你希望保存知识,以便在之后的会话中回忆的时候。
- ✓当你需要从早先任务中找出已学到的模式的时候。
- ✓当你希望把相关事实链接在一起形成知识图谱的时候。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-agentdb/skills/agentdb-query/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
- Check health —
mcp__plugin_ruflo-core_ruflo__agentdb_health. Sanity-checkavailable: true. - Start session —
mcp__plugin_ruflo-core_ruflo__agentdb_session-startif not already active. - Store knowledge —
mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-storefor structured tier-keyed data (tiers:working|episodic|semantic). - Recall knowledge —
mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-recallwith a query. - Search patterns —
mcp__plugin_ruflo-core_ruflo__agentdb_pattern-searchfor learned patterns (ReasoningBank-routed). - Synthesize context —
mcp__plugin_ruflo-core_ruflo__agentdb_context-synthesizeto combine multiple memories. - Build causal graph —
mcp__plugin_ruflo-core_ruflo__agentdb_causal-edgeto 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 asentity:xyz; SQL k-hop is bounded at 3 hops, checkappliedDepthandtruncated) andagentdb_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 viamemory_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 tomemory_*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
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。