qmd
하는 일
이 스킬은 QMD라는 의미 검색 도구로 개인 메모 볼트를 검색하는 방법을 에이전트에게 가르칩니다. 모든 파일을 읽지 않고 과거의 결정, 회의, 사람을 찾는 데 쓰입니다.
사용하는 경우
- ✓사용자가 메모에 기록된 과거 결정, 사고, 회의, 사람에 대해 물을 때.
- ✓에이전트가 전체 파일을 읽기 전에 관련 메모를 찾아야 할 때.
- ✓사용자가 볼트에 특정 주제에 대해 무엇이 적혀 있는지 묻는 경우.
스킬 링크
https://github.com/breferrari/obsidian-mind/blob/main/.claude/skills/qmd/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“지난 분기에 가격 변경에 대해 무엇을 결정했나요? 제 볼트에서 찾아 주세요.”
매주 새 스킬 5개. 읽는 데 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
- 업데이트
- 2026. 10. 17.
댓글
- …
이 저장소의 다른 스킬
excalidraw-diagram
5.5k에이전트가 텍스트를 Excalidraw 다이어그램으로 바꾸도록 돕습니다. Obsidian 노트, 표준 Excalidraw 파일, 또는 애니메이션 버전으로 저장할 수 있습니다.
mermaid-visualizer
5.5k에이전트가 텍스트를 Obsidian과 GitHub에서 표시되는 순서도, 아키텍처, 비교표 같은 깔끔한 Mermaid 다이어그램으로 바꾸도록 돕습니다.
비슷한 스킬
graincrawl
394k에이전트가 저장된 Granola 회의 메모와 기록을 검색하고, 최신 상태를 확인하며, 일정 기간 동안 개수를 세도록 돕습니다.
notcrawl
394k에이전트가 저장된 Notion 워크스페이스 사본을 검색하고, 페이지와 데이터베이스를 찾아보며, 페이지를 Markdown 파일로 내보내도록 돕습니다.
knowledge-entities
394k에이전트가 사람, 회사, 프로젝트가 무엇인지 식별한 뒤, Knowledge 볼트에 출처가 있는 프로필 페이지를 작성하도록 돕습니다.