Use only when the user explicitly says "qmd" to search local markdown collections (Obsidian vaults, docs folders, QMD collections). Do not use for web search or generic repo code search.
-c <collection> whenever you canqmd query for most retrieval work, qmd search for exact title or filename lookup, and qmd vsearch mainly as a fallback or second opinionqmd get or qmd multi-get before making accuracy-sensitive claimsqmd status first.vec: or hyde: searches, load the semantic-patterns skillqmd update &> /dev/null && qmd embed &> /dev/null && qmd cleanup &> /dev/null && qmd status && qmd lsqmd query first unless the user gave an exact title, path, or filename.qmd get or qmd multi-get.Read extra material only when needed:
references/retrieval-workflow.md — health checks, collection scoping, mode choice, evidence discipline, common mistakesreferences/query-patterns.md — query documents, intent: / lex: / vec: / hyde:, weighting, ambiguity handlingreferences/command-cheatsheet.md — high-value flags, command patterns, setup, indexing, maintenancereferences/mcp-setup.md — keep MCP details out of the main path; read only if the user explicitly asks about MCPUsers may ask for QMD retrieval with very little detail. These examples show effective prompt patterns for common retrieval tasks.
Unless the user says otherwise
&& when it saves stepsUse QMD CLI only
In collection: vendors
Find the repo or project for: pi
Then identify: the documentation root
Then return: a tree of all docs and examples
Prefer:
- exact repo or path matching first
- targeted discovery only if needed
- reopen the best matching documents before answering
Return:
- the resolved QMD URI root
- a clean tree of the docs and examples
Conclude with a 2-3 sentence summary of what this project and its documentation cover
Use QMD CLI only
In collection: vendors
Find the repo or project for: pi
Then find: the canonical document for extensions
Prefer:
- exact repo, path, or title matching first
- targeted discovery only if needed
- reopen the best matching documents before answering
Return:
- the resolved QMD URI(s)
- the canonical document
- 2-5 relevant alternatives if they exist
Conclude with a 2-3 sentence summary of what the extensions documentation covers
Use QMD CLI only
In collection: vendors
Find the repo or project for: pi
Then answer this question: how does extension loading work?
Prefer:
- exact repo or path discovery first
- targeted search only if needed
- reopen the strongest matching documents before answering
Return:
- the resolved QMD URI(s)
- a cited answer based on the reopened documents
Conclude with a 2-3 sentence summary of how extension loading works
Use QMD CLI only
Across collections:
- vendors
- vault_obsidian
Find information about: Pi extensions
First:
- identify the most relevant documents in each collection
- reopen the strongest matches
- compare the findings by collection
Return:
- grouped results by collection
- best-match QMD URI(s)
- a short summary for each collection
- a final synthesis
Conclude with a 2-3 sentence summary of the main differences or overlaps
Use QMD CLI only
In collection: vault_obsidian
Find my note about: local markdown retrieval being better than grep for AI agents
Prefer:
- `qmd query` first
- semantic recall over exact title matching
- reopen the strongest matches before answering
Return:
- best-match QMD URI(s)
- a short explanation of why each match is relevant
- a 2-3 sentence synthesis
Use QMD CLI only
In collection: vault_obsidian
Find the note titled something like: QMD roadmap
Prefer:
- exact title or filename matching first
- reopen the best hit before answering
Return:
- the resolved QMD URI
- the note title and path
- a 2-3 sentence summary
Use QMD CLI only
My markdown files changed on disk and QMD results look stale.
Return:
- the exact commands I should run
- the correct order for update vs embed
- a short explanation of what each command fixes