qmd for Openclaw

A high-performance local search and indexing CLI that combines BM25 keyword matching with vector-based semantic search and MCP support.

sonnenberglauramarie-afk
v1.0.0
Mar 7, 2026
0
959
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install qmd-quality-markdown

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install qmd-quality-markdown using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is qmd?

qmd is a specialized command-line utility built for developers who need to index and search local files with high precision. By integrating traditional BM25 search with modern vector embeddings and reranking, it provides a robust solution for navigating large local datasets, documentation, or codebases. This tool is a valuable addition to the ecosystem of Openclaw Skills, enabling users to maintain a local knowledge base that is both searchable and accessible to AI agents.

The tool is designed for privacy and speed, utilizing local resources for both indexing and inference. It serves as a bridge between your raw files and intelligent retrieval systems, ensuring that you can find exactly what you need without relying on external cloud services.

qmd Use Cases

  • Indexing and searching through extensive local markdown documentation.
  • Performing hybrid semantic searches across large code repositories to find context.
  • Enabling AI agents to access local file content via the Model Context Protocol (MCP).
  • Extracting specific line ranges from indexed files for precise technical referencing.

How qmd Works

  1. Add a collection of local files to the index using a directory path and optional file masks.
  2. Execute an update command to process files and generate searchable indices.
  3. Perform a search using BM25 for keyword matching or vector search for semantic relevance.
  4. Use hybrid query modes to combine search methods and rerank results via Ollama.
  5. Retrieve specific document fragments or metadata based on search rankings.

qmd Setup

To get started with this tool within the Openclaw Skills framework, install it via npm:

npm install -g https://github.com/tobi/qmd

Ensure you have Ollama running locally for embeddings and reranking support:

# Default URL: http://localhost:11434
export OLLAMA_URL="http://localhost:11434"

Initialize your first document collection:

qmd collection add /path/to/docs --name docs --mask "**/*.md"
qmd update

qmd Data Schema & Taxonomy

qmd organizes its indexing data locally to ensure performance and privacy. The system tracks the following components:

Component Details
Cache Storage Default location is ~/.cache/qmd.
Collections Named groups of files with specific inclusion masks (e.g., **/*.md).
Index Types Supports BM25 (keyword), Vector (embeddings), and Hybrid indices.
Metadata Stores file paths, status, and line counts for granular retrieval.

qmd Advanced Features

  • MCP Mode: Launch a Model Context Protocol server using qmd mcp for seamless AI agent integration.
  • Hybrid Querying: Combine vector and keyword search results for superior accuracy.
  • Local Reranking: Use local Ollama instances to rerank search results based on query context.
  • Granular Retrieval: Fetch specific line ranges from documents to minimize token usage in agent workflows.
  • Flexible Masking: Use glob patterns to precisely control which files are indexed in a collection.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*