qmd Local Search
by @bheemreddy181
Fast local search for markdown files, notes, and docs using qmd CLI. Use instead of `find` for file discovery. Combines BM25 full-text search, vector semantic search, and LLM reranking—all running locally. Use when searching for files, finding code, locating documentation, or discovering content in indexed collections.
clawhub install qmd-local-search📖 About This Skill
name: qmd description: Fast local search for markdown files, notes, and docs using qmd CLI. Use instead of
find for file discovery. Combines BM25 full-text search, vector semantic search, and LLM reranking—all running locally. Use when searching for files, finding code, locating documentation, or discovering content in indexed collections.
qmd — Fast Local Markdown Search
When to Use
find across large directories (avoids hangs)Quick Reference
Search (most common)
# Keyword search (BM25)
qmd search "alpaca API" -c projectsSemantic search (understands meaning)
qmd vsearch "how to implement stop loss"Combined search with reranking (best quality)
qmd query "trading rules for breakouts"File paths only (fast discovery)
qmd search "config" --files -c kellFull document content
qmd search "pattern detection" --full --line-numbers
Collections
# List collections
qmd collection listAdd new collection
qmd collection add /path/to/folder --name myproject --mask "*.md,*.py"Re-index after changes
qmd update
Get Files
# Get full file
qmd get myproject/README.mdGet specific lines
qmd get myproject/config.py:50 -l 30Get multiple files by glob
qmd multi-get "*.yaml" -l 50 --max-bytes 10240
Output Formats
--files — paths + scores (for file discovery)--json — structured with snippets--md — markdown formatted-n 10 — limit resultsTips
1. Always use collections (-c name) to scope searches
2. Run qmd update after adding new files
3. Use qmd embed to enable vector search (one-time, takes a few minutes)
4. Prefer qmd search --files over find for large directories
Models (auto-downloaded)
All run locally — no API keys needed.
⚡ When to Use
📋 Tips & Best Practices
1. Always use collections (-c name) to scope searches
2. Run qmd update after adding new files
3. Use qmd embed to enable vector search (one-time, takes a few minutes)
4. Prefer qmd search --files over find for large directories