Anshumanbh qmd

From lxyeternal/MalSkillBench · View interactive version

Anshumanbh qmd is an AI agent skill from the GitHub repository lxyeternal/MalSkillBench. Search markdown knowledge bases efficiently using qmd. Use this when searching Obsidian vaults or markdown collections to find relevant content with minimal token usage.

How to use this skill

Skill file

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

Commands

Search (BM25 keyword matching)

qmd search "your query" --collection <name>

Fast, accurate keyword-based search. Best for specific terms or phrases.

Vector Search (semantic)

qmd vsearch "your query" --collection <name>

Semantic similarity search. Best for conceptual queries where exact words may vary.

Hybrid Search (both + reranking)

qmd hybrid "your query" --collection <name>

Combines both approaches with LLM reranking. Most thorough but often overkill.

How to Use

  1. Check if collection exists:

```bash

qmd collection list

```

  1. Search the collection:

```bash

# For specific terms

qmd search "api authentication" --collection notes

# For conceptual queries

qmd vsearch "how to handle errors gracefully" --collection notes

```

  1. 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

Handling Arguments

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:
  1. If user wants to read a specific result, use the Read tool on the file path
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.