memory-search
它能做什么
这项技能搜索 Ruflo 已存储的记忆,可使用基于含义的搜索、关键词匹配或两者结合。适用于想找回之前保存的笔记、却记不清确切措辞的人。
适用场景
- ✓当你想找回之前存入记忆的内容的时候。
- ✓当确切关键词可能对不上,因此你想按含义搜索的时候。
- ✓当你想一次搜索所有记忆命名空间的时候。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-rag-memory/skills/memory-search/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在我的记忆中搜索我们关于定价页面做过的所有决定。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能默认运行语义搜索;如果你要求,也可以运行关键词与含义相结合的搜索。它会报告实际运行的策略,因为某些选项可能会退回到普通搜索。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Memory Search
Search Ruflo's stored memories. Select a strategy supported by the Ruflo CLI or MCP tool, and report which one actually ran.
Strategy selection
- Default: semantic retrieval through
memory searchor MCPmemory_search. --hybrid: CLI keyword + semantic result union, deduplicated and sorted by score. This is not theruvector searchCLI and does not claim Graph RAG or sparse/dense RRF.--smart: request query expansion, RRF across variants, recency weighting, and MMR diversity. The MCP tool can fall back to plain search if the installed memory package lackssmartSearch; inspect the returned fallback note before claiming SmartRetrieval ran.- Cross-namespace: MCP
memory_search_unifiedmerges and deduplicates results from multiple namespaces.
If the user requests --graph-rag, explain that this plugin has no supported text-query Graph RAG command. Offer --smart semantic retrieval as a clearly labeled fallback; do not claim graph traversal.
Steps
Parse the query, optional namespace, result limit, and strategy flags. Omit
--namespaceto search all namespaces. For CLI commands, treat the query as untrusted shell input: use POSIX single-quote escaping for embedded apostrophes and reject embedded newlines. Do not interpolate it inside double quotes.Run one of the supported paths:
Semantic (default)
npx @claude-flow/cli@latest memory search --query 'QUERY' --limit 10MCP:
mcp__plugin_ruflo-core_ruflo__memory_search({ query: "QUERY", limit: 10 })Keyword + semantic union (
--hybrid)npx @claude-flow/cli@latest memory search --query 'QUERY' --type hybrid --limit 10Add
--namespace NAMESPACEonly when the user requests one.Smart retrieval (
--smart)npx @claude-flow/cli@latest memory search --query 'QUERY' --smart --limit 10MCP:
mcp__plugin_ruflo-core_ruflo__memory_search({ query: "QUERY", smart: true, limit: 10 })Cross-namespace bridge search
mcp__plugin_ruflo-core_ruflo__memory_search_unified({ query: "QUERY", limit: 10 })For a complex query, optionally request AgentDB context synthesis with its registered schema:
mcp__plugin_ruflo-core_ruflo__agentdb_context-synthesize({ query: "QUERY", maxEntries: 10 })Present the returned entries with namespace attribution. Distinguish raw
similarityfrom SmartRetrieval'srankingScore; neither is a probability of truth. State when SmartRetrieval fell back to plain search.
Namespace guide
| Namespace | Typical content |
|---|---|
patterns |
Reusable approaches |
tasks |
Task context |
solutions |
Resolved problems |
feedback |
User corrections |
security |
Security notes |
| (omit) | All available namespaces |
常见问题
混合搜索选项有什么作用?
它结合关键词结果和含义结果,去除重复项,并按得分排序。
它能做图搜索吗?
不能。来源说明没有受支持的图搜索命令,因此这项技能会提供一个标注清楚的语义搜索替代方案。
它会搜索每个命名空间吗?
会,除非你指定某一个特定的命名空间。
详情
作者的原始描述
Search Ruflo memory with semantic retrieval, keyword/semantic union, or optional SmartRetrieval reranking
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1682
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。