From claudeclaw
Upgrades grep-based memory_search with QMD's hybrid BM25 + vector semantic search + LLM re-ranking. Fully local, no API keys needed.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claudeclaw:add-qmdThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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.
groups/*/memory/, groups/*/CLAUDE.md, groups/*/conversations/)memory_search in agent/runner/src/ipc-mcp-stdio.ts with QMD's APIQMD exposes its search as an MCP server. Add to the agent runner's mcpServers config:
qmd: {
command: 'npx',
args: ['qmd', 'mcp', '--collection', collectionPath],
env: {},
}
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/
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
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.
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.
npx claudepluginhub sbusso/claudeclaw2plugins reuse this skill
First indexed May 7, 2026
Sets up @tobilu/qmd for semantic search over mnemonic memories: registers collections from MNEMONIC_ROOT, builds indexes with qmd update, generates embeddings. One-time per-machine bootstrap.
Searches local Markdown notes and docs using BM25 keyword search, vector similarity, or hybrid LLM-reranked queries. Indexes collections for fast retrieval.
Indexes and searches local Markdown notes and docs using BM25 keyword or semantic vector search. Useful for quickly finding notes or retrieving documents from indexed collections.