add-qmd
Skill194 starsChanged 8 months agoMITView on GitHub
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".
In this repository26 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-compactSkill
- add-discordSkill
- add-gmailSkill
- add-image-visionSkill
- add-ollama-toolSkill
- add-parallelSkill
- add-pdf-readerSkill
- add-reactionsSkill
- add-telegramSkill
- add-telegram-swarmSkill
- add-voice-transcriptionSkill
- add-whatsappSkill
- convert-to-apple-containerSkill
- customizeSkill
- debugSkill
- get-qodo-rulesSkill
- install-extensionSkill
- qodo-pr-resolverSkill
- setupSkill
- uninstall-extensionSkill
- uninstallSkill
- update-claudeclawSkill
- update-skillsSkill
- use-local-whisperSkill
- x-integrationSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 63
If QMD is not installed or indexing fails, fall back to the built-in grep-based search.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 scoresFallback
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

