QMD Search
/install anshumanbh-qmd
QMD Search Skill
Search markdown knowledge bases efficiently using qmd, a local indexing tool that uses BM25 + vector embeddings to return only relevant snippets instead of full files.
Why Use This
- 96% token reduction - Returns relevant snippets instead of reading entire files
- Instant results - Pre-indexed content means fast searches
- Local & private - All indexing and search happens locally
- Hybrid search - BM25 for keyword matching, vector search for semantic similarity
Commands
Search (BM25 keyword matching)
qmd search "your query" --collection \x3Cname>
Fast, accurate keyword-based search. Best for specific terms or phrases.
Vector Search (semantic)
qmd vsearch "your query" --collection \x3Cname>
Semantic similarity search. Best for conceptual queries where exact words may vary.
Hybrid Search (both + reranking)
qmd hybrid "your query" --collection \x3Cname>
Combines both approaches with LLM reranking. Most thorough but often overkill.
How to Use
-
Check if collection exists:
qmd collection list -
Search the collection:
# For specific terms qmd search "api authentication" --collection notes # For conceptual queries qmd vsearch "how to handle errors gracefully" --collection notes -
Read results: qmd returns relevant snippets with file paths and context
Setup (if qmd not installed)
# Install qmd
bun install -g https://github.com/tobi/qmd
# Add a collection (e.g., Obsidian vault)
qmd collection add ~/path/to/vault --name notes
# Generate embeddings for vector search
qmd embed --collection notes
Invocation Examples
/qmd api authentication # BM25 search for "api authentication"
/qmd how to handle errors --semantic # Vector search for conceptual query
/qmd --setup # Guide through initial setup
Best Practices
- Use BM25 search (
qmd search) for specific terms, names, or technical keywords - Use vector search (
qmd vsearch) when looking for concepts where wording may vary - Avoid hybrid search unless you need maximum recall - it's slower
- Re-run
qmd embedafter adding significant new content to keep vectors current
Handling Arguments
$ARGUMENTScontains the full search query- If
--semanticflag is present, useqmd vsearchinstead ofqmd search - If
--setupflag is present, guide user through installation and collection setup - If
--collection \x3Cname>is specified, use that collection; otherwise default to checking available collections
Workflow
- Parse arguments from
$ARGUMENTS - Check if qmd is installed (
which qmd) - If not installed, offer to guide setup
- If searching:
- List collections if none specified
- Run appropriate search command
- Present results to user with file paths
- If user wants to read a specific result, use the Read tool on the file path
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install anshumanbh-qmd - 安装完成后,直接呼叫该 Skill 的名称或使用
/anshumanbh-qmd触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
QMD Search 是什么?
Search markdown knowledge bases efficiently using qmd. Use this when searching Obsidian vaults or markdown collections to find relevant content with minimal token usage. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2227 次。
如何安装 QMD Search?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install anshumanbh-qmd」即可一键安装,无需额外配置。
QMD Search 是免费的吗?
是的,QMD Search 完全免费(开源免费),可自由下载、安装和使用。
QMD Search 支持哪些平台?
QMD Search 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 QMD Search?
由 Anshuman Bhartiya(@anshumanbh)开发并维护,当前版本 v1.0.0。