qmd

qmd is a skill for Claude Code from superuser-pal/awesome-second-brain. It costs 73 tokens per session (660 once invoked), scanned A, original, MIT.

A semantic search tool for a knowledge vault. It finds notes by meaning as well as by matching words, so a search can locate related material even when the wording differs.

In plain words
What is it for?
It helps search the vault, retrieve matching documents, and refresh the search index after notes change.
Why use it?
It reduces the need to open and scan many notes manually when looking for past decisions, meetings, incidents, or other stored context.

Skill for Claude Code

Written for Claude Code: SessionStart hook event.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/superuser-pal/awesome-second-brain/qmd
Any agent
npx skills add superuser-pal/awesome-second-brain --skill qmd
Clone the repo
git clone --depth 1 https://github.com/superuser-pal/awesome-second-brain

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qmd

README.md
[![agentmods](https://agentmods.dev/badge/skills/superuser-pal/awesome-second-brain/qmd.svg)](https://agentmods.dev/skills/superuser-pal/awesome-second-brain/qmd)
Your own site
<a href="https://agentmods.dev/skills/superuser-pal/awesome-second-brain/qmd"><img src="https://agentmods.dev/badge/skills/superuser-pal/awesome-second-brain/qmd.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 660 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.00660
Opus 5 $0.00036 $0.00330
Sonnet 5 $0.00015 $0.00132
Haiku 4.5 $0.00007 $0.00066

Measured 6d ago against content hash 8e7c6bf6adfb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

qmd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/qmd/SKILL.md · 45 lines

How it starts

The opening of the file, as written. The whole thing — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Before reading vault files directly, search with QMD first. It returns relevant snippets without burning context on full file reads.

Workflow Routing

Workflow Trigger File
ask When user runs /ask or asks a complex question needing direct answers ../commands/qmd/ask.md
search When user runs /search or asks for a list of results ../commands/qmd/search.md
context When user runs /context or asks for all context on a topic ../commands/qmd/context.md
reindex When user runs /reindex or needs to refresh the QMD index manually ../commands/qmd/reindex.md

Commands

Search (pick one per query)

  • qmd query "..." --json -n 10 — Best quality. Hybrid BM25 + vector + LLM reranking. Use for complex or conceptual queries.
  • qmd search "..." --json -n 10 — Fast BM25 keyword. Use for exact terms, names, ticket numbers, dates.
  • qmd vsearch "..." --json -n 5 — Semantic only. Use for exploratory queries where you don't know the exact words.

Retrieve

  • qmd get "path/to/file.md" — Full document by path.
  • qmd get "#docid" — Full document by ID (from search results).
  • qmd multi-get "work/06_ORG/PEOPLE.md" --json — Batch retrieve people context.

Index Management

  • qmd update — Re-index after file changes (fast, ~1-2s incremental).
  • qmd embed — Regenerate vector embeddings (slower, run after bulk changes).
  • User mentions a past decision, incident, person, project → qmd query
  • User asks "what did we decide about X" → qmd query
  • User mentions a person by name → qmd search "<name>"
  • Before creating a new note → qmd vsearch "<topic>" to check for existing content
  • After creating a note → qmd vsearch "<note title>" to find notes that should link to it
  • Loading context for review prep → qmd get "work/05_REVIEW/EVIDENCE.md"
  • Loading 1-on-1 context → qmd search "<person name> 1-1"

After Bulk Changes

Run qmd update && qmd embed to keep the index fresh. The SessionStart hook does qmd update automatically, but qmd embed should be run explicitly after sessions that create many notes.

Read the full file on GitHub · 45 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 45 lines · 73 tokens per session scan A 8e7c6bf6adfb

Subscribe to this mod's changes

qmd is a skill published in the GitHub repository superuser-pal/awesome-second-brain (14 stars, last pushed 4mo ago), licensed MIT. It adds 73 tokens to every session and 660 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

save

Save a user-selected answer, decision, insight, or session summary into an Obsidian vault as one reviewed transaction. Use only when the user explicitly asks to preserve specific conversation content, not when they supply a file or URL to ingest. Triggers: /save, save this, save that answer, file this conversation…

AgriciDaniel/claude-obsidian · 80 tokens

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

obsidian-bases

Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.

AgriciDaniel/claude-obsidian · 69 tokens

wiki-fold

Create a bounded, extractive, structurally idempotent rollup of recent Obsidian wiki log entries, with dry-run preview by default and one optional transaction apply. Use for manual log compression without modifying child pages. Triggers: fold the log, run a fold, run wiki-fold, log rollup, roll up log entries, commit…

AgriciDaniel/claude-obsidian · 76 tokens

wiki-mode

Read or configure the vault filing methodology and suggest destinations for planned knowledge creation under Generic, LYT, PARA, or Zettelkasten. Use for wiki mode, methodology mode, what is my vault mode, set vault mode, switch to PARA, use LYT, Zettelkasten setup, change mode, configure mode, or methodology routing.…

AgriciDaniel/claude-obsidian · 83 tokens

wiki-cli

Detect and use the official Obsidian command-line interface for read-only vault access; use for wiki-cli, Obsidian CLI, Obsidian read, Obsidian search, vault transport, which transport, transport detection, backlinks, tags, or Obsidian command line. Mutations always go through the claude-obsidian transaction core.

AgriciDaniel/claude-obsidian · 74 tokens