add-qmd
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "add-qmd" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1dd4245a18ba20b4e523109406a47ab68ee08a2cd655bcbbb48f37351fe69203. Verify the upstream source and version against https://github.com/sbusso/claudeclaw before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Add QMD (Query Marked Documents) as an advanced memory-search backend, upgrading the built-in grep-based memory_search to a hybrid BM25 + vector semantic search with LLM re-ranking, running entirely locally without an API key. Example trigger keywords: "add qmd", "qmd memory", "semantic memory search", "upgrade memory".
Introduction source: third_party · sbusso · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Add QMD (Query Markup Documents) as an advanced memory search backend. Upgrades the built-in grep-based memory_search with hybrid BM25 + vector semantic search + LLM re-ranking. Fully local, no API keys needed. Triggers on "add qmd", "qmd memory", "semantic memory search", "upgrade memory".
- Software, accounts and paid services
- ClaudeClaw with memory tools already working (memory_search, memory_save, memory_get) ~2GB disk space for GGUF embedding + reranking models (downloaded on first run) Node.js 20+
- Testing
- Not tested
Browse files
Frontmatter
name: add-qmd
description: Add QMD (Query Markup Documents) as an advanced memory search backend. Upgrades the built-in grep-based memory_search with hybrid BM25 + vector semantic search + LLM re-ranking. Fully local, no API keys needed. Triggers on "add qmd", "qmd memory", "semantic memory search", "upgrade memory".Add QMD Memory Backend
QMD (https://github.com/tobi/qmd) is a local search engine for markdown files. It combines BM25 keyword search, vector semantic search, and LLM re-ranking — all running on-device via node-llama-cpp with GGUF models.
This skill upgrades ClaudeClaw's built-in grep-based memory_search MCP tool with QMD's hybrid search, giving agents much better recall across large memory collections.
Prerequisites
- ClaudeClaw with memory tools already working (memory_search, memory_save, memory_get)
- ~2GB disk space for GGUF embedding + reranking models (downloaded on first run)
- Node.js 20+
What This Skill Does
- Installs QMD as an MCP server dependency
- Configures QMD to index all group memory directories (
groups/*/memory/,groups/*/CLAUDE.md,groups/*/conversations/) - Replaces the grep-based
memory_searchinagent/runner/src/ipc-mcp-stdio.tswith QMD's API - Adds QMD indexing to the agent startup flow (incremental re-index on each run)
Implementation Notes
QMD MCP Server
QMD exposes its search as an MCP server. Add to the agent runner's mcpServers config:
qmd: {
command: 'npx',
args: ['qmd', 'mcp', '--collection', collectionPath],
env: {},
}
Indexing
QMD indexes markdown files into a local SQLite database. The collection should be configured per-group:
# Index a group's memory
qmd index --collection groups/{folder}/.qmd groups/{folder}/memory/ groups/{folder}/CLAUDE.md groups/{folder}/conversations/
Search Integration
Replace the grep-based memory_search tool body with a call to QMD's MCP:
// Before (grep-based):
const results = grepFiles(args.query, allFiles);
// After (QMD):
// Use the qmd MCP server's search tool
// Returns semantically ranked results with relevance scores
Fallback
If QMD is not installed or indexing fails, fall back to the built-in grep-based search. This ensures memory tools always work even without QMD.
Not Implemented Yet
This skill is a specification for future implementation. The built-in grep-based memory tools work without QMD. Run this skill when you want to upgrade to semantic search.
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- Skill 提供了明确的技术价值,通过升级记忆搜索后端显著提升搜索准确性和效率,满足高级用户的明确需求。
Highlights
- 触发关键词精准完整,覆盖多种变体,边界清晰,能有效触发 Skill。
Highlights
- 文档结构清晰,步骤划分明确,包含端到端示例和回退机制,frontmatter 完整,符合规范。
Areas to improve
-
Skill 为规范说明,未包含实际可执行脚本 Reported severity: Minor
Skill 内容为未来实现的规范说明,未提供实际可执行的脚本或自动化部署流程,可能影响用户直接部署的可靠性。
Recommendation: 建议补充实际可执行的脚本或自动化部署流程,以提升 Skill 的即插即用性和执行可靠性。
Highlights
- 工具来源明确,参数正确,覆盖了主要异常,并设计了回退机制确保 memory tools 始终可用。
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 33
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
ClaudeClaw with memory tools already working (memory_search, memory_save, memory_get) ~2GB disk space for GGUF embedding + reranking models (downloaded on first run) Node.js 20+
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.