agentdb-query
Skill này làm gì
Skill này hướng dẫn agent dùng AgentDB, một kho bộ nhớ lưu kiến thức theo các tầng và liên kết các sự kiện liên quan. Phù hợp với người muốn agent nhớ và gợi lại thông tin qua các phiên làm việc.
Khi nào nên dùng
- ✓Khi bạn muốn kiến thức được lưu để gợi lại trong các phiên sau.
- ✓Khi bạn cần tìm các mẫu đã học từ những tác vụ trước.
- ✓Khi bạn muốn các sự kiện liên quan được liên kết thành một đồ thị tri thức.
Liên kết skill
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-agentdb/skills/agentdb-query/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Lưu quyết định dùng phát hành hằng tuần của chúng tôi, rồi gợi lại khi chúng tôi lên kế hoạch cho sprint tiếp theo.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra AgentDB có sẵn không, khởi động một phiên, lưu các sự kiện vào tầng working, episodic hoặc semantic, và tìm kiếm hoặc liên kết chúng khi được yêu cầu.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Các tầng bộ nhớ là gì?
Skill liệt kê các tầng working, episodic và semantic để lưu kiến thức.
Đồ thị nhân quả là gì?
Đó là tập hợp các liên kết giữa các sự kiện, cho thấy chúng liên quan hoặc dẫn đến nhau.
Nó có kiểm tra kho có đang chạy không?
Có. Bước đầu tiên là một kiểm tra sức khỏe để xác nhận AgentDB có sẵn.
Chi tiết
Mô tả gốc của tác giả
Query AgentDB through the controller bridge -- semantic routing, hierarchical recall, causal graphs, context synthesis, pattern store/search
repo: ruvnet/ruflo
Độ phổ biến
- Sao GitHub
- 81k
- Vị trí xếp hạng
- #1561
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-adaptive-coordinator
81kGiúp agent của bạn chia và cân bằng lại một nhóm agent AI khi khối lượng công việc thay đổi, chọn bố cục phù hợp với tác vụ.
agent-agent
81kDạy agent của bạn biến một mục tiêu lớn thành kế hoạch hành động có thứ tự, và lập lại kế hoạch khi điều kiện thay đổi.
agent-agentic-payments
81kGiúp agent của bạn quản lý ủy quyền chi tiêu cho mua sắm bằng AI, với hạn mức chi, khung thời gian, quy tắc người bán và phê duyệt có chữ ký.
agent-analyze-code-quality
81kGiúp agent của bạn rà soát chất lượng mã, tìm code smell, nợ kỹ thuật và gợi ý tái cấu trúc mà không thay đổi các file.
Skill tương tự
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
clickhouse-io
280kGiúp agent của bạn tối ưu truy vấn và schema trong ClickHouse theo thực hành tốt nhất cho phân tích dữ liệu hiệu năng cao khi truy vấn chậm.
scientific-db-pubmed-database
280kGiúp agent của bạn tìm bài báo khoa học trong lĩnh vực y sinh. Hữu ích cho nghiên cứu cần thông tin y khoa cụ thể.