← 返回 Skills 市场
95
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install dual-retrieval
功能描述
Combines M-Flow graph topology and QMD BM25+vector retrieval to merge and rank results for precise multi-hop and semantic search.
使用说明 (SKILL.md)
Dual Retrieval Skill - Phase 4
描述
双重检索:M-Flow(图拓扑检索)+ QMD(BM25+向量检索)优势互补。
M-Flow vs QMD 对比
| 特性 | M-Flow | QMD |
|---|---|---|
| 检索方式 | 图拓扑 + Bundle Search | BM25 + 向量 + rerank |
| 适合场景 | 精确问答、多跳推理 | 关键词搜索、语义相似 |
| 记忆结构 | 四层 Cone Graph | 多 Collection |
| 优势 | 时间推理、关联推理 | 灵活、已配置 |
工作流程
Query →
├── M-Flow.search() → Episode + Facet + Entity
└── QMD search → 文件 + 片段
↓
结果合并 → 去重 → 排序 → 返回
文件结构
dual-retrieval/
├── SKILL.md
├── scripts/
│ ├── __init__.py # DualRetrievalPipeline
│ └── test_dual.py # 测试
依赖
- m-flow-memory skill (MFlowMemory)
- QMD (qmd tools)
安全使用建议
This skill does what it claims (combines M-Flow and QMD results) but the implementation reads a hard-coded local QMD SQLite database and dynamically loads a local 'm-flow' module without declaring those accesses. Before installing or running:
- Treat this as potentially accessing private local documents (QMD DB). Do not run it in an environment with sensitive data unless you reviewed or sandboxed it.
- Inspect or run the scripts in a safe, isolated environment (disposable VM or container). Confirm the C:/Users/Administrator/.cache/qmd/index.sqlite path and any data it contains.
- If you expect to use it, ask the author to parameterize the DB path and m-flow location (don’t hard-code C:\Users\Administrator...), declare required config paths in metadata, and avoid printing or writing raw document content.
- Verify the dynamically loaded m-flow code is from a trusted source before allowing the skill to import it.
- If you cannot confirm these changes, consider the skill suspicious and avoid granting it access to your real data or environment.
功能分析
Type: OpenClaw Skill
Name: dual-retrieval
Version: 1.0.0
The skill implements a dual retrieval pipeline but contains several indicators of poor security hygiene and environment-specific targeting. Most notably, scripts/qmd_search.py hardcodes an absolute path to a sensitive user directory (C:/Users/Administrator/.cache/qmd/index.sqlite), which is a privacy risk and a vulnerability. Additionally, the bundle includes diagnostic scripts like scripts/check_qmd_schema.py and scripts/qmd_debug.py that dump database schema and sample data to the console, which could facilitate unauthorized data inspection. While these behaviors align with the stated goal of document retrieval, the hardcoded high-privilege paths and data-dumping utilities warrant a suspicious classification.
能力评估
Purpose & Capability
The name and description match the code: it combines M-Flow and QMD search results and implements merging strategies. However, the skill expects local QMD artifacts and a local 'm-flow' skill directory (loaded dynamically) even though SKILL.md and registry metadata declare no config paths or credentials. The requirement to access a local QMD DB and a sibling skill directory is not declared in the metadata.
Instruction Scope
SKILL.md describes the high-level pipeline but does not mention reading the user's local QMD SQLite DB or writing a report to disk. The included Python code directly opens C:/Users/Administrator/.cache/qmd/index.sqlite, issues arbitrary SQL, prints sample rows, and the test writes a report to a knowledge/ directory. Those file accesses and outputs are outside what the SKILL.md explicitly documents and could expose private data.
Install Mechanism
There is no installer (instruction-only from registry perspective). That reduces supply-chain risk. However, the skill includes Python code files that will be executed when the skill is used; no network downloads or third-party package installations are declared in the install metadata.
Credentials
The skill requests no environment variables or credentials, yet it reads a hard-coded, absolute Windows path (C:/Users/Administrator/.cache/qmd/index.sqlite) and attempts to load a .env from a sibling m_flow directory. Access to a user's local document index (QMD DB) is equivalent to requesting access to potentially sensitive data and should have been declared as a required config path or credential. Dynamic importing of a local 'm-flow' skill directory also implies access to code and env that belong to other skills without declaration.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. It does write a report file in the test code (knowledge/dual-retrieval-report.md) and may create directories, but it does not modify other skills' configurations or request persistent agent-level privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dual-retrieval - 安装完成后,直接呼叫该 Skill 的名称或使用
/dual-retrieval触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: M-Flow + QMD hybrid retrieval pipeline
元数据
常见问题
Dual Retrieval 是什么?
Combines M-Flow graph topology and QMD BM25+vector retrieval to merge and rank results for precise multi-hop and semantic search. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 95 次。
如何安装 Dual Retrieval?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dual-retrieval」即可一键安装,无需额外配置。
Dual Retrieval 是免费的吗?
是的,Dual Retrieval 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Dual Retrieval 支持哪些平台?
Dual Retrieval 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Dual Retrieval?
由 sune(@sora-mury)开发并维护,当前版本 v1.0.0。
推荐 Skills