query
Skill37 starsChanged 8 months agoMITView on GitHub
搜索 Obsidian vault 中的已有知识来回答问题。CC 主动读取 MOC 索引和相关 Cards,综合 vault 知识 + 模型知识回答,标注来源。当用户说"query"、"查一下 vault"、"vault 里有什么"、"从笔记里找"时触发。
27 other projects use a version of this.
Adopted by
Most recently taken up by
- HurricaHjz/second-yourselftheir own version, first seen Oct 1, 2026
- MetamusicX/zissa-wikitheir own version, first seen Sep 26, 2026
- eddmann/agent-toolkittheir own version, first seen Sep 22, 2026
- ARCASSystems/FounderOStheir own version, first seen Sep 12, 2026
- factor241/ketos-bottheir own version, first seen Sep 3, 2026
- johnfkoo951/cmds-llm-wikitheir own version, first seen Aug 26, 2026
Used with
Projects with it also use read-file, ingest and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
carlopiSkillread-file
Read and explore any data file (CSV, JSON, Parquet, Avro, Excel, spatial, …) by filename only — resolves the path automatically. Uses DuckDB + the magic extension for format auto-detection. Installs magic if needed.
Also in 3 projects that use this
raven-souravSkillingest
Also in 9 projects that use this
seongjaeryuSkillsave
Complete and save your current thinking to Bindly
Also in 3 projects that use this
DockerSkillresearch
Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".
Also in 4 projects that use this
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 27
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- duckdb/duckdb-skills★ 598same name
- ArtemXTech/claude-code-obsidian-starter★ 225same name
- romarayt/raytsystem-public-os★ 150same name
- HurricaHjz/second-yourself★ 105same name
- johnfkoo951/cmds-llm-wiki★ 90same name
- StarRocks/starrocks-debug-skills★ 77same name
- MetamusicX/zissa-wiki★ 58same name
- honeydew-ai/honeydew-ai-coding-agents-plugins★ 42same name
- pinecone-io/gemini-cli-extension★ 23same name
17 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.
The file
Files
/query — 带 Vault 上下文的知识查询
让 CC 不只靠模型记忆回答,而是主动搜索 vault 中的已有知识。
执行流程
Step 1: 解析查询意图
从用户问题中提取:
- 关键概念(用于搜索)
- 涉及的 domain(用于定位 MOC)
- 查询类型:事实查找 / 综合分析 / 对比 / 探索
Step 2: 搜索 Vault
# 1. 读取相关 MOC 索引
obsidian read path="Cards/MOC-{Domain}.md"
# 2. 搜索关键词
obsidian search query="{关键概念1}"
obsidian search query="{关键概念2}"
# 3. 带上下文搜索(更精确)
obsidian search:context query="{关键短语}"Step 3: 读取命中的 Cards
# 批量读取搜索结果
for card in {搜索结果}; do
obsidian read path="$card"
done优先读取:
- 研究摘要(type/research, type/reading)— 综合信息密度最高
- 概念卡(type/concept)— 定义和关键要点
- 洞察卡(type/insight)— 独特见解
- 原子卡片(type/atomic)— 精炼知识点
Step 4: 综合回答
回答原则:
- Vault 知识优先:vault 中有的信息,标注来源
[[Card名]] - 模型知识补充:vault 中没有的,用模型知识补充,明确标注"(模型知识,vault 中暂无)"
- 诚实告知:如果搜索后 vault 中确实没有相关内容,说"vault 中暂无此主题的笔记"
回答格式:
## 回答
{综合回答,穿插 [[Card名]] 引用}
---
📚 引用了 {N} 张 Cards:[[Card1]] [[Card2]] [[Card3]]
💡 模型补充:{有/无}Step 5: 回写提议(可选)
如果回答产出了有价值的综合分析:
这个回答包含了跨 Card 的综合分析,值得存为新的对比/综合卡片吗?
→ 说 "note" 走 /note 流程回写
→ 说 "不用" 跳过不自动回写,用户觉得好才走 /note。
与普通提问的区别
| 普通提问 | /query | |
| 知识来源 | 模型记忆 | vault Cards + 模型 |
| 溯源 | 无 | 标注来自哪张 Card |
| 搜索范围 | 无 | MOC → Cards → 全文搜索 |
| 沉淀 | 留在对话里 | 可通过 /note 回写 |
注意事项
- 搜索结果多时,先读 MOC 索引缩小范围,不要盲目全文搜索
- 单次查询读取的 Cards 控制在 10 张以内,避免 context 溢出
- 如果问题跨多个 domain,先搜索各自 MOC 再综合
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.

