qmd
Skill4.9k starsChanged 4 months agoMITView on GitHub
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.
15 other projects use a version of this, 2 of them edited.
Trending
Quiet since October.thin dataabout the whole repository
Most recently taken up by
- ManceRayder42/jarvis-ostheir own version, first seen Oct 1, 2026
- compozy/compozytheir own version, first seen Oct 1, 2026
- timscheuerai/gtm-architecture-templatetheir own version, first seen Sep 14, 2026
- SamuelNDCE/claude-super-skill-librarytheir own version, first seen Aug 1, 2026
- ckorhonen/claude-skillstheir own version, first seen Jul 5, 2026
- benoror/obsidianos_worktheir own version, first seen Jun 11, 2026
Who's talking about breferrari/obsidian-mind
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 breferrari / obsidian-mind ⭐ 3,950 (+113) 🗒 TypeScript A …”Bluesky · Jul 25, 2026 · 4 likes
- A Hacker News story“Obsidian vault template for engineering work docs via Claude Code”Hacker News · Mar 27, 2026 · 4 points
- @github-trending-js.bsky.social“📦 breferrari / obsidian-mind ⭐ 4,871 (+45) 🗒 TypeScript A self-organizing Obsidian vault that gives AI …”Bluesky · Oct 3, 2026 · 2 likes
- @tom-doerr.bsky.social“https://github.com/breferrari/obsidian-mind”Bluesky · Apr 3, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.breferrari.obsidian-mind: 9.0.1 → 9.1.0”GitHub · Oct 6, 2026
The biggest 5 of 12 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 12
Talked about on GitHub, Bluesky and Hacker News (12 times).
On GitHub · 8
- Oct 6, 2026agent-skills.github.breferrari.obsidian-mind: 9.0.1 → 9.1.0 — sudosubin/agents.nix0 reactions
- Oct 5, 2026agent-skills.github.breferrari.obsidian-mind: 9.0.0 → 9.0.1 — sudosubin/agents.nix0 reactions
- Oct 5, 2026chore(release): 0.2.0 — breferrari/shardmind0 reactions
- Oct 3, 2026agent-skills.github.breferrari.obsidian-mind: 8.4.0 → 9.0.0 — sudosubin/agents.nix0 reactions
- Sep 26, 2026agent-skills.github.breferrari.obsidian-mind: init at 8.4.0 — sudosubin/agents.nix0 reactions
3 more on GitHub
- Aug 18, 2026[feature] https://github.com/breferrari/obsidian-mind and https://github.com/Graphify-Labs/graphify — JustineDevs/meta-architect0 reactions
- May 21, 2026is there a plan to integrate text search engine like qmd — VectifyAI/OpenKB0 reactions · 1 comment
- Apr 26, 2026Wizard TUI: missing scroll indicator + boolean prompts use Y/n typed input — breferrari/shardmind0 reactions
On Bluesky · 3
- Jul 25, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 breferrari / obsidian-mind ⭐ 3,950 (+113) 🗒 TypeScript A self-organizing Obsidian vault that gives AI… — @github-trending-js.bsky.social4 likes and reposts · 1 reply
- Oct 3, 2026📦 breferrari / obsidian-mind ⭐ 4,871 (+45) 🗒 TypeScript A self-organizing Obsidian vault that gives AI coding agents persistent memory. — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Apr 3, 2026https://github.com/breferrari/obsidian-mind — @tom-doerr.bsky.social1 likes and repost
On Hacker News · 1
- Mar 27, 2026Obsidian vault template for engineering work docs via Claude Code4 points · 1 comment
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- superuser-pal/awesome-second-brain★ 1432% same
- vikneshwaran16032005-alt/claude-skills★ 284% same
Wrote their own version · 13
- compozy/compozy★ 2.8ksame name
- pedronauck/skills★ 633same name
- benoror/obsidianos_work★ 165same name
- L-LesterYu/OpenClaw-hot-skills-zh★ 56same name
- ckorhonen/claude-skills★ 18same name
- iagocavalcante/claude-turbo-search★ 15same name
- timscheuerai/gtm-architecture-template★ 12same name
- changeflowhq/skills★ 8same name
- ManceRayder42/jarvis-os★ 5same name
- FelipeAngeli/skills★ 2same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- defuddleSkill
- excalidraw-diagramSkill
- json-canvasSkill
- mermaid-visualizerSkill
- obsidian-basesSkill
- obsidian-cliSkill
- obsidian-markdownSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Before reading vault files directly, search with QMD first.
- Distinctive: line 18
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.
- Distinctive: line 31
Read the resolved name: before running commands rather than assuming either branch:
- Very specific: line 89
Before creating a new note → mcp__qmd__query with searches=[{type:"vec", query:"<topic>"}] to check for existing content.
- Very specific: line 90
After creating a note → mcp__qmd__query with searches=[{type:"vec", query:"<note title>"}] to find notes that should link to it.
- Very specific: line 95
Run qmd --index <name> update && qmd --index <name> embed in the shell.
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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> update— Re-index after file changes (fast, ~1-2s incremental). The SessionStart hook and the PostToolUse debounced refresh both run this automatically; manual invocation is rarely needed.qmd --index <name> embed— Regenerate vector embeddings (slower, run after bulk changes).
Bootstrap (Fresh Clone)
The QMD SQLite store lives outside the repo (~/.cache/qmd/<index>.sqlite), so a fresh clone starts with no index. Run the bootstrap once:
node --experimental-strip-types .scripts/qmd-bootstrap.tsIt resolves the index name (pinned qmd_index, else the vault folder slug) and reads qmd_context from vault-manifest.json, registers the collection, attaches the vault context, walks the vault, and generates embeddings. Idempotent — safe to re-run.
When to Search
Each case lists the preferred MCP call; fall back to the CLI equivalent if MCP isn't registered.
- User mentions a past decision, incident, person, project →
mcp__qmd__query(hybrid). - User asks "what did we decide about X" →
mcp__qmd__query(hybrid withintentdescribing the decision context). - User mentions a person by name →
mcp__qmd__querywithsearches=[{type:"lex", query:"<name>"}]. - Before creating a new note →
mcp__qmd__querywithsearches=[{type:"vec", query:"<topic>"}]to check for existing content. - After creating a note →
mcp__qmd__querywithsearches=[{type:"vec", query:"<note title>"}]to find notes that should link to it. - Loading context for review prep →
mcp__qmd__multi_getwithpattern="perf/evidence/*.md". - Loading 1-on-1 context →
mcp__qmd__querywithsearches=[{type:"lex", query:"<person name> 1-1"}].
After Bulk Changes
Run qmd --index <name> update && qmd --index <name> embed in the shell. The SessionStart hook and the PostToolUse debounced refresh run update automatically, but embed should be run explicitly after sessions that create many notes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

