qmd for Openclaw

A local hybrid search engine designed to index and retrieve Markdown notes and documents with lightning speed.

levineam
v1.1.0
Jan 28, 2026
7
4.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install qmd-external

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-external 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 high-performance local search engine specifically built for Markdown-based knowledge bases and documentation. It bridges the gap between simple grep searches and complex vector databases by offering a hybrid approach. This Openclaw Skills utility enables users and AI agents to instantly find content within thousands of local files using BM25 keyword matching or deep semantic similarity via local GGUF models.

By running entirely on your local machine, qmd ensures your private notes and documentation stay secure while providing the retrieval performance required for modern AI workflows. It handles messy Markdown with ease, utilizing content-based chunking rather than requiring strict structural formatting. Whether you are managing a digital garden, a technical wiki, or personal journals, this tool provides the essential search infrastructure for your local workspace.

qmd Use Cases

  • Searching personal knowledge bases, digital gardens, or vaults for specific information.
  • Finding semantically related content when exact keyword matches are unavailable.
  • Retrieving specific Markdown documents to provide context for AI agent tasks.
  • Indexing local technical documentation for rapid developer reference.

How qmd Works

  1. The user defines a collection by pointing qmd to a local directory containing Markdown files.
  2. The system indexes the content, creating a searchable database optimized for BM25 keyword matching.
  3. Running the embed command triggers a local LLM to generate vector embeddings for semantic search capabilities.
  4. When a search is initiated, qmd scans the index and returns the most relevant chunks or files with associated relevance scores.
  5. Documents can be retrieved in full or as specific fragments via document IDs or file paths.

qmd Setup

To get started with this skill, ensure you have Bun and SQLite installed on your system. You can then install the tool and initialize your first collection using the following commands:

bun install -g https://github.com/tobi/qmd
qmd collection add /path/to/notes --name notes --mask "**/*.md"
qmd embed

Ensure your shell PATH includes $HOME/.bun/bin to allow Openclaw Skills to execute the binary correctly.

qmd Data Schema & Taxonomy

qmd organizes its data using a collection-based system and stores metadata in a local SQLite database. The following table describes the primary data elements:

Element Description
Collection A logical grouping of files defined by a name and a glob pattern (e.g., 'notes').
Doc ID A unique identifier (prefixed with #) assigned to every indexed chunk.
BM25 Score A metric used for keyword search relevance.
Vector Embedding A numerical representation of text used for semantic (vsearch) lookups.
Model Cache Local storage for GGUF models located at ~/.cache/qmd/models/.

qmd Advanced Features

  • Hybrid Querying: Combine keyword search with LLM reranking for the highest possible precision in search results.
  • Automated Maintenance: Schedule re-indexing tasks using cron jobs to keep the search index synchronized with your file changes.
  • Agent-Friendly Output: Utilize the --json and --files flags to generate machine-readable data for seamless integration with other Openclaw Skills.
  • Multi-Get Retrieval: Efficiently fetch multiple documents at once using glob patterns or a list of document IDs.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*