qmd
यह क्या करती है
यह स्किल एजेंट को QMD, एक सिमेंटिक सर्च टूल, से निजी नोट्स वॉल्ट में खोजना सिखाती है। यह बिना हर फ़ाइल पढ़े पुराने फ़ैसले, मीटिंग और लोगों को ढूँढने के लिए है।
कब इस्तेमाल करें
- ✓जब यूज़र अपने नोट्स में दर्ज किसी पुराने फ़ैसले, घटना, मीटिंग या व्यक्ति के बारे में पूछता है।
- ✓जब एजेंट को पूरी फ़ाइलें पढ़ने से पहले संबंधित नोट्स खोजने हों।
- ✓जब यूज़र पूछता है कि उसके वॉल्ट में किसी विषय पर क्या लिखा है।
Skill का लिंक
https://github.com/breferrari/obsidian-mind/blob/main/.claude/skills/qmd/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“पिछली तिमाही में प्राइसिंग बदलाव पर हमने क्या फ़ैसला लिया था? मेरे वॉल्ट में उसे खोजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
उपलब्ध होने पर एजेंट पहले QMD के टूल्स इस्तेमाल करता है, फिर कमांड लाइन वर्ज़न, और फ़ाइलें सीधे सिर्फ़ आखिरी उपाय के रूप में पढ़ता है। वह पूरी फ़ाइलें पढ़े बिना संबंधित अंश लौटाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
QMD — Vault Semantic Search
Before reading vault files directly, search with QMD first. It returns relevant snippets without burning context on full file reads.
Tool Surfaces — Preference Order
Pick the highest surface available and stop. All three read the same SQLite store (see Named Index), so they return the same results; the choice is about interface ergonomics and context cost.
- MCP tools (preferred when registered) —
mcp__qmd__query,mcp__qmd__get,mcp__qmd__multi_get,mcp__qmd__status. If these appear in your tool menu, the MCP server is live and pre-scoped to this vault. Call them directly — no--indexargument needed, no shell involved, typed arguments. This is the intended path during a session. - CLI fallback —
qmd --index <name> query|search|vsearch|get|multi-get. Use when the MCP server isn't registered (older vault clones, Windows install drift, disabled in.mcp.json), or for one-off shell checks outside a session. Always pass--index <name>. - Grep / Glob / Read — last resort, only when QMD is not installed at all. These burn context on full file reads and don't rank by relevance.
Never fall through surfaces without cause — if MCP is registered, calling the CLI in a Bash tool is just a slower path to the same result.
Named Index (This Vault)
This vault uses a named QMD index so queries, updates, and context strings stay scoped to this vault — not blended with any other vault that shares the machine. Every QMD command in this document passes --index <name>.
The name resolves the same way on all three surfaces (CLI, MCP, SessionStart hook), so they always point at the same SQLite store:
qmd_indexinvault-manifest.json, when set — an explicit pin.- Otherwise the vault folder name, slugified. The template ships
qmd_indexempty so every install gets its own store without being asked a question.
Pin the field if you want a name that survives renaming the vault folder, or want to keep a store you already built.
Read the resolved name before running commands rather than assuming either branch:
INDEX=$(node -e '
const ok = (s) => typeof s === "string" && /^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(s);
const m = JSON.parse(require("fs").readFileSync("vault-manifest.json", "utf8"));
if (m.qmd_index && !ok(m.qmd_index)) {
process.stderr.write("qmd_index is set to an invalid name: " + JSON.stringify(m.qmd_index) + "\n");
process.exit(1);
}
const slug = require("path").basename(process.cwd()).normalize("NFKD").toLowerCase()
.replace(/[^a-z0-9._-]+/g, "-").replace(/-{2,}/g, "-").replace(/^[^a-z0-9]+|[-._]+$/g, "");
const name = [m.qmd_index, slug, m.template].find(ok);
if (!name) { process.stderr.write("no usable qmd index name — set qmd_index in vault-manifest.json\n"); process.exit(1); }
process.stdout.write(name);
') || exit 1
qmd --index "$INDEX" query "..."
The value is used as both a CLI argument and a filesystem path (~/.cache/qmd/<name>.sqlite), so an invalid pin must fail here rather than propagate — hence the explicit check instead of m.qmd_index || slug.
In-session, substitute the resolved value directly in your commands — it is stable across the vault's lifetime unless the folder is renamed.
Commands
Each operation lists the MCP call first, then the CLI equivalent. Prefer MCP when available.
Search (pick one per query)
- Hybrid (best quality) —
mcp__qmd__querywithsearches=[{type:"lex", query:"..."}, {type:"vec", query:"..."}]and anintentarg. CLI:qmd --index <name> query "..." --json -n 10. Use for complex or conceptual queries. - Keyword (fast BM25) —
mcp__qmd__querywithsearches=[{type:"lex", query:"..."}]. CLI:qmd --index <name> search "..." --json -n 10. Use for exact terms, names, ticket numbers, dates. - Semantic only —
mcp__qmd__querywithsearches=[{type:"vec", query:"..."}]. CLI:qmd --index <name> vsearch "..." --json -n 5. Use for exploratory queries where you don't know the exact words.
Retrieve
- By path —
mcp__qmd__getwithpatharg. CLI:qmd --index <name> get "path/to/file.md". - By docid —
mcp__qmd__getwith#abc123syntax. CLI:qmd --index <name> get "#docid". - Batch by glob —
mcp__qmd__multi_getwithpatternarg. CLI:qmd --index <name> multi-get "org/people/*.md" --json -l 40.
Index Management (CLI only — MCP exposes read surfaces)
- `qmd --index <name> up
अक्सर पूछे जाने वाले सवाल
फ़ाइलें पढ़ने से पहले खोजना क्यों?
स्किल कहती है कि खोज पूरी फ़ाइलें पढ़े बिना संबंधित अंश देती है, जिससे संदर्भ की जगह बचती है।
अगर QMD इंस्टॉल न हो तो क्या?
स्किल कहती है कि तब फ़ाइल-खोज टूल्स पर लौटें, जो धीमे हैं और प्रासंगिकता से रैंक नहीं करते।
कौन-सा टूल क्रम पसंद किया जाता है?
पहले QMD के टूल्स, फिर कमांड लाइन, फिर grep, glob और read।
जानकारी
लेखक का मूल विवरण
Search the vault using QMD semantic search. Use PROACTIVELY before reading files. Preference order: (1) MCP tools — mcp__qmd__query, mcp__qmd__get, mcp__qmd__multi_get, mcp__qmd__status — if they appear in your tool menu, use them first; (2) CLI `qmd --index <name> ...` as fallback; (3) Grep/Glob only when QMD is not installed. Trigger proactively for past decisions, incidents, people, meetings, architecture, patterns, or any vault content — and after creating/editing notes to check for duplicates and related content.
repo: breferrari/obsidian-mind
लोकप्रियता
- GitHub स्टार
- 5.5k
- रैंकिंग में स्थान
- #14842
- लाइसेंस
- MIT
- अपडेट की गई
- 17/10/2026
कमेंट
- …
इस repository की और skills
excalidraw-diagram
5.5kयह आपके एजेंट को टेक्स्ट से Excalidraw डायग्राम बनाने देती है, जो Obsidian नोट, सामान्य Excalidraw फ़ाइल या एनिमेटेड रूप में सेव होते हैं।
mermaid-visualizer
5.5kयह आपके एजेंट को टेक्स्ट से साफ़ Mermaid डायग्राम बनाने देती है, जैसे फ़्लोचार्ट, आर्किटेक्चर और तुलना, जो Obsidian और GitHub में दिखते हैं।
मिलती-जुलती skills
graincrawl
394kयह आपके एजेंट को सेव की गई Granola मीटिंग नोट्स और ट्रांसक्रिप्ट में खोजने, उनकी ताज़गी जांचने और किसी अवधि के हिसाब से गिनती करने देती है।
notcrawl
394kयह आपके एजेंट को Notion वर्कस्पेस की सेव की गई कॉपी में खोजने, पेज और डेटाबेस देखने और पेजों को Markdown फ़ाइलों में निर्यात करने देती है।
knowledge-entities
394kयह आपके एजेंट को लोगों, कंपनियों और प्रोजेक्ट्स की पहचान करने और आपके Knowledge vault में स्रोत-आधारित प्रोफ़ाइल पेज लिखने देती है।