← 返回 Skills 市场
anshumanbh

QMD Search

作者 Anshuman Bhartiya · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
2227
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install anshumanbh-qmd
功能描述
Search markdown knowledge bases efficiently using qmd. Use this when searching Obsidian vaults or markdown collections to find relevant content with minimal token usage.
使用说明 (SKILL.md)

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

  1. Check if collection exists:

    qmd collection list
    
  2. Search the collection:

    # For specific terms
    qmd search "api authentication" --collection notes
    
    # For conceptual queries
    qmd vsearch "how to handle errors gracefully" --collection notes
    
  3. 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 embed after adding significant new content to keep vectors current

Handling Arguments

  • $ARGUMENTS contains the full search query
  • If --semantic flag is present, use qmd vsearch instead of qmd search
  • If --setup flag is present, guide user through installation and collection setup
  • If --collection \x3Cname> is specified, use that collection; otherwise default to checking available collections

Workflow

  1. Parse arguments from $ARGUMENTS
  2. Check if qmd is installed (which qmd)
  3. If not installed, offer to guide setup
  4. If searching:
    • List collections if none specified
    • Run appropriate search command
    • Present results to user with file paths
  5. If user wants to read a specific result, use the Read tool on the file path
安全使用建议
This skill is a local-search helper for the qmd tool and looks coherent. Before installing/using it: (1) Be prepared that the agent may read local Markdown files and file paths it returns — avoid enabling it on folders containing sensitive data. (2) If you choose to install qmd, verify the GitHub repo (https://github.com/tobi/qmd) yourself before running the provided bun install command. (3) The skill will prompt to run qmd commands and to use a Read tool to show file contents; only allow those actions if you trust the environment and the files it will access.
功能分析
Type: OpenClaw Skill Name: anshumanbh-qmd Version: 1.0.0 The skill is suspicious due to two main high-risk behaviors. First, it instructs the AI agent to install a package globally from a GitHub repository (`bun install -g https://github.com/tobi/qmd`) during setup, which is a supply chain risk as it executes arbitrary remote code. Second, the `SKILL.md` instructs the agent to 'use the Read tool on the file path' for search results. This creates a potential arbitrary local file read vulnerability if the `qmd` tool (or a crafted user query) can be made to return sensitive file paths (e.g., via path traversal), allowing the agent to read and potentially expose their contents.
能力评估
Purpose & Capability
The name/description match the instructions: everything is about using the local 'qmd' tool to search markdown collections. Minor note: the skill does not declare 'qmd' as a required binary up front, but the runtime instructions explicitly check for and install it if missing — this is reasonable for an instruction-only skill.
Instruction Scope
Instructions stay within scope (list collections, run qmd search/vsearch/hybrid, present snippets and file paths). They direct the agent to use a 'Read' tool on returned file paths to show content — this is expected for a search/read workflow but does grant the agent the ability to read local files, so users should be aware the agent will access files you point it at.
Install Mechanism
No install spec in the registry (lowest-risk). SKILL.md includes suggested manual install commands (bun install -g https://github.com/tobi/qmd), which are reasonable guidance for users; the skill itself does not auto-download or execute installers.
Credentials
No environment variables, credentials, or config paths are requested. The skill's needs are proportional to its functionality.
Persistence & Privilege
always is false and the skill does not request persistent/system-wide changes or elevated privileges. It does not modify other skills or global configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install anshumanbh-qmd
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /anshumanbh-qmd 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - efficient markdown knowledge base search using qmd
元数据
Slug anshumanbh-qmd
版本 1.0.0
许可证
累计安装 3
当前安装数 3
历史版本数 1
常见问题

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。

💬 留言讨论