add-qmd

add-qmd is a skill for Claude Code from sbusso/claudeclaw. It costs 73 tokens per session (613 once invoked), scanned A, original, MIT.

An upgrade that adds QMD, a local search engine for Markdown files, to ClaudeClaw's memory search. It combines keyword and meaning-based search with local result ranking.

In plain words
What is it for?
Use it to index group memories and search them more effectively without API keys, using models stored and run on the device.
Why use it?
It helps agents find relevant memories when exact words do not match, especially across large collections of notes and conversations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the claudeclaw plugin — 27 skills shipped together

Good fit Use it to index group memories and search them more effectively without API keys, using models stored and run on the device.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sbusso/claudeclaw/add-qmd
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sbusso/claudeclaw --skill add-qmd
Clone the repo
git clone --depth 1 https://github.com/sbusso/claudeclaw

Made for: Claude Code.

Or install claudeclaw, the plugin that ships this one along with the rest of its 27 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-qmd

README.md
[![agentmods](https://agentmods.dev/badge/skills/sbusso/claudeclaw/add-qmd/github.svg)](https://agentmods.dev/skills/sbusso/claudeclaw/add-qmd)
Your own site
<a href="https://agentmods.dev/skills/sbusso/claudeclaw/add-qmd"><img src="https://agentmods.dev/badge/skills/sbusso/claudeclaw/add-qmd/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-qmd

Your own site · 80×15
<a href="https://agentmods.dev/skills/sbusso/claudeclaw/add-qmd"><img src="https://agentmods.dev/badge/skills/sbusso/claudeclaw/add-qmd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.00613
Opus 5 $0.00036 $0.00307
Sonnet 5 $0.00015 $0.00123
Haiku 4.5 $0.00007 $0.00061

Measured 9d ago against content hash 9f88144cbe8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

add-qmd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/add-qmd/SKILL.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  1. Installs QMD as an MCP server dependency
  2. Configures QMD to index all group memory directories (groups/*/memory/, groups/*/CLAUDE.md, groups/*/conversations/)
  3. Replaces the grep-based memory_search in agent/runner/src/ipc-mcp-stdio.ts with QMD's API
  4. 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

Read the full file on GitHub · 68 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 68 lines · 73 tokens per session scan A 9f88144cbe8a

Subscribe to this mod's changes

add-qmd is a skill published in the GitHub repository sbusso/claudeclaw (192 stars, last pushed 27d ago), licensed MIT. It adds 73 tokens to every session and 613 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories