qmd

Search and retrieve markdown documents from local knowledge bases using qmd. Supports BM25 keyword search, vector semantic search, and hybrid search with LLM re-ranking. Use for querying indexed notes, documentation, meeting transcripts, and any markdown-based knowledge. Requires qmd CLI installed (bun install -g https://github.com/tobi/qmd).

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "qmd" with this command: npx skills add davidsteelerose/k2ljl-qmd

QMD - Local Markdown Search

Search and retrieve documents from locally indexed markdown knowledge bases.

Installation

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

Setup

# Add a collection
qmd collection add ~/notes --name notes --mask "**/*.md"

# Generate embeddings (required for vsearch/query)
qmd embed

Usage Rules

Always use --json flag for structured output when invoking qmd commands.

Search Commands

search (BM25 keyword search - fast)

qmd search "authentication flow" --json
qmd search "error handling" --json -n 10
qmd search "config" --json -c notes

vsearch (vector semantic search)

qmd vsearch "how does login work" --json
qmd vsearch "authentication best practices" --json -n 20

query (hybrid with LLM re-ranking - best quality)

qmd query "implementing user auth" --json
qmd query "deployment process" --json --min-score 0.5

Search Options

OptionDescription
-n NUMNumber of results (default: 5, or 20 with --json)
-c, --collection NAMERestrict to specific collection
--min-score NUMMinimum score threshold
--fullReturn complete document content in results
--allReturn all matches

Retrieval Commands

get (single document)

qmd get docs/guide.md --json
qmd get "#a1b2c3" --json
qmd get notes/meeting.md:50 -l 100 --json

multi-get (multiple documents)

qmd multi-get "docs/*.md" --json
qmd multi-get "api.md, guide.md, #abc123" --json
qmd multi-get "notes/**/*.md" --json --max-bytes 20480

Maintenance Commands

qmd update              # Re-index changed files
qmd status              # Check index health
qmd collection list     # List all collections

Search Mode Selection

ModeSpeedQualityBest For
searchFastGoodExact keywords, known terms
vsearchMediumBetterConceptual queries, synonyms
querySlowBestComplex questions, uncertain terms

Performance note: vsearch and query have ~1 minute cold start latency for vector initialization. Prefer search for interactive use.

MCP Server

qmd can run as an MCP server for direct integration:

qmd mcp

Exposes tools: qmd_search, qmd_vsearch, qmd_query, qmd_get, qmd_multi_get, qmd_status

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Research

一站式学术Journal Club PPT制作技能

一站式学术Journal Club PPT制作技能。输入一篇科研论文PDF,自动完成:背景调研、作者信息整理、图表提取与标注、PPT脚本生成、配色美化,最终输出可直接演示的Journal Club幻灯片。支持Science/Nature/Cell等顶刊风格。

Registry SourceRecently Updated
Research

Stock Invest Master

解密全球顶尖投资大师逻辑,AI驱动投资逻辑。融合格雷厄姆、巴菲特、段永平、林奇等十位顶级大师投资理论,构建从顶层"志·道"到落地"术·器"的立体多层次分析矩阵。支持A股、港股、美股市场股票分析,AI时代的最强"投资大脑"。分析报告自动保存为 Markdown 格式至~/.stock-invest-master/目...

Registry SourceRecently Updated
Research

Autoresearch.Bak

Autonomous experiment loop for AI agents. Use when the user wants to run systematic experiments — optimizing hyperparameters, searching for better configurat...

Registry SourceRecently Updated
Research

Clone Anywebsite

High-fidelity visual-first web rebuilding from design references. Screenshot-driven analysis, DOM interrogation for exact CSS values, asset inspection (WebGL...

Registry SourceRecently Updated