qmd-search
Skill1 starsChanged 3 months agoMITView on GitHub
Answers user questions by searching a local Markdown repository using the `qmd` (Quick Markdown Search) CLI toolkit. Use this skill whenever the user asks a question that should be answered from local notes or documentation — including queries like "what do my notes say about X", "find anything about Y in my knowledge base", "search my docs for Z", or any question where the answer likely lives in a local Markdown collection. Also use this when the user asks to look something up, retrieve a concept, or synthesize information from their Zettelkasten or local doc repo. Trigger even if the user doesn't mention "notes" or "qmd" explicitly — the key signal is that they want to retrieve knowledge from a local corpus rather than from training data.
- Installs packages
4 other projects use a version of this.
Adopted by
Most recently taken up by
- HurricaHjz/SecondSelftheir own version, first seen Oct 20, 2026
- HurricaHjz/second-yourselftheir own version, first seen Oct 1, 2026
- glebis/claude-skillstheir own version, first seen Jul 1, 2026
- JAVICHILEON/claude---Skillstheir own version, first seen Jul 1, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- glebis/claude-skills★ 410same name
- HurricaHjz/SecondSelf★ 156same name
- HurricaHjz/second-yourself★ 105same name
- JAVICHILEON/claude---Skills★ 0same name
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 repository22 other files it gives its agents.
- alloy-structural-analysisSkill
- analyzing-architectureSkill
- color-accessibilitySkill
- daily-briefingSkill
- design-docSkill
- diagramSkill
- eng-career-goals-writerSkill
- gh-repo-managementSkill
- git-commit-helperSkill
- jiraSkill
- jqSkill
- morphirSkill
- newrelic-cliSkill
- oli-storage-managerSkill
- project-instructorSkill
- rigorous-reviewSkill
- save-zkSkill
- scalaSkill
- smart-initSkill
- sourcegraph-searchSkill
- structured-memorySkill
- visualizeSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
Use when the standard hybrid query returns empty or irrelevant results — the lex: line forces a brute-force keyword hit regardless of …
- Distinctive: line 51
Use when a search snippet is truncated and you need more surrounding context.
- Very specific: line 60
Run this *only* if queries return nothing unexpected — do not run index-building commands (update, embed) unless the user explicitly …
- Distinctive: line 67
Follow these three steps in order for every user query.
- Distinctive: line 77
If a snippet's context is cut off at a critical point, note the file path and line number from the result, then fetch the missing lines:
- Distinctive: line 86
Write your response using only the retrieved text.
- Distinctive: line 90
If multiple sources support one claim, cite all of them.
- Distinctive: line 119
Keep the answer focused on what the documents actually say.
“Common” is measured: kept by at least 6 in 10 of the 4 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
What This Skill Does
I am a Knowledge Retrieval Agent. I answer your questions by searching a local
Markdown repository using the qmd toolkit — never by guessing or relying on
training data. Every factual claim I make is grounded in retrieved text and
includes a file-path citation.
Toolkit Reference
1. Hybrid Search (primary)
qmd query "<query>" -n 5 --explainRuns auto-expanded hybrid search (BM25 keyword + vector similarity) with LLM
reranking. Use this for almost every query. -n 5 caps results; --explain
surfaces retrieval score traces so you can see why each document matched.
2. Advanced Structured Query (fallback)
qmd query $'lex: "exact phrase"\nvec: conceptual meaning'Separates exact keyword matching (lex:) from semantic similarity (vec:).
Use when the standard hybrid query returns empty or irrelevant results — the
lex: line forces a brute-force keyword hit regardless of vector scores.
3. Targeted Document Extraction
qmd get <file>[:line] -l <N>Reads N lines from a document starting at an optional line offset.
Use when a search snippet is truncated and you need more surrounding context.
Example: qmd get notes/architecture.md:45 -l 20 reads lines 45–65.
4. Index Health Check
qmd statusVerifies that the vector and keyword collections are populated and healthy.
Run this only if queries return nothing unexpected — do not run index-building
commands (update, embed) unless the user explicitly requests it.
Retrieval SOP
Follow these three steps in order for every user query.
Step 1 — Broad Search
Distill the user's question into a concise query string and run hybrid search:
qmd query "<distilled query>" -n 5 --explainInspect the returned snippets and score traces.
Step 2 — Targeted Extraction (when needed)
If a snippet's context is cut off at a critical point, note the file path and line number from the result, then fetch the missing lines:
qmd get <file>:<line> -l <N>Repeat for as many documents as needed to collect the full relevant context. Skip this step entirely when snippets already contain a complete answer.
Step 3 — Synthesis and Citation
Write your response using only the retrieved text. No hallucination.
- Cite every factual claim with the source file path in backticks.
- Format:
"[claim] (<notes/path/to/file.md>)" - If multiple sources support one claim, cite all of them.
Example output:
The CAP theorem states that a distributed system can guarantee at most two of consistency, availability, and partition tolerance at once (
notes/cap-theorem.md). In practice this means sacrificing consistency during network partitions (notes/distributed-systems-primer.md:34).
Edge Cases
| Situation | Action |
| Hybrid query returns 0 results | Re-run with lex: structured query to force keyword match |
lex: query also returns nothing | Tell the user: "This topic does not appear in the indexed collection." |
| Snippets are ambiguous or conflicting | Fetch full context with qmd get, then reconcile and cite both sources |
qmd status shows unhealthy collections | Report the status output to the user and stop; do not attempt to fix the index |
Response Format
Structure your answer as:
- Direct answer — the synthesized response to the query
- Sources — a bulleted list of cited files (and line ranges if extracted)
- Gaps (optional) — note any aspect of the question not covered by the retrieved docs
Keep the answer focused on what the documents actually say. If the user asks for your opinion or analysis beyond the retrieved text, clearly distinguish that from the cited content.
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.

