qmd
Qué hace
Esta skill enseña a un agente a buscar en una bóveda personal de notas con QMD, una herramienta de búsqueda semántica. Sirve para encontrar decisiones pasadas, reuniones y personas sin leer cada archivo.
Cuándo usarla
- ✓Cuando un usuario pregunta por una decisión, un incidente, una reunión o una persona anotados en sus notas.
- ✓Cuando un agente necesita encontrar notas relevantes antes de leer archivos completos.
- ✓Cuando un usuario pregunta qué dice su bóveda sobre un tema.
Link de la skill
https://github.com/breferrari/obsidian-mind/blob/main/.claude/skills/qmd/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Qué decidimos el trimestre pasado sobre el cambio de precios? Búscalo en mi bóveda.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente usa primero las herramientas de búsqueda de QMD cuando están disponibles, después la versión de línea de comandos, y solo lee los archivos directamente como último recurso. Devuelve fragmentos relevantes sin leer archivos completos.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Por qué buscar antes de leer archivos?
La skill indica que la búsqueda devuelve fragmentos relevantes sin gastar contexto en leer archivos completos.
¿Qué pasa si QMD no está instalado?
La skill indica que hay que recurrir a las herramientas de búsqueda de archivos, que son más lentas y no ordenan por relevancia.
¿Qué orden de herramientas prefiere?
Primero las herramientas de QMD, después la línea de comandos, y luego grep, glob y lectura.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 5,5 mil
- Posición en el ranking
- #14842
- Licencia
- MIT
- Actualizada
- 17/10/2026
Comentarios
- …
Más skills de este repositorio
excalidraw-diagram
5,5 milAyuda a tu agente a convertir texto en diagramas de Excalidraw, guardados como notas de Obsidian, archivos estándar de Excalidraw o versiones animadas.
mermaid-visualizer
5,5 milAyuda a tu agente a convertir texto en diagramas Mermaid limpios, como diagramas de flujo, arquitecturas y comparativas, que se muestran en Obsidian y GitHub.
Skills parecidas
graincrawl
394 milPermite que tu agente busque tus notas y transcripciones guardadas de reuniones de Granola, revise qué tan recientes son y las cuente en un periodo.
notcrawl
394 milPermite que tu agente busque en una copia guardada de tu espacio de Notion, consulte páginas y bases de datos y exporte páginas a archivos Markdown.
knowledge-entities
394 milAyuda a tu agente a identificar personas, empresas y proyectos, y después a redactar páginas de perfil con fuentes en tu bóveda de Knowledge.