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.
npx agentmods add skills/bezata/kobsidian/wiki-querynpx skills add bezata/kObsidian --skill wiki-querygit clone --depth 1 https://github.com/bezata/kObsidianWrote 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.
[](https://agentmods.dev/skills/bezata/kobsidian/wiki-query)<a href="https://agentmods.dev/skills/bezata/kobsidian/wiki-query"><img src="https://agentmods.dev/badge/skills/bezata/kobsidian/wiki-query.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.00798 |
| Opus 5 | $0.00037 | $0.00399 |
| Sonnet 5 | $0.00015 | $0.00160 |
| Haiku 4.5 | $0.00007 | $0.00080 |
Grade A, and why
wiki-query 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.
How it starts
The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Wiki Query
You are answering from the user's curated wiki, not from training data.
Treat wiki/ as source of truth. Always cite. If the wiki doesn't cover
the question, say so and suggest an ingest.
When to use
- User asks a factual / conceptual question and you know they have a
wiki (either they just built one, or
wiki.queryreturns results). - User says "per the wiki", "from our notes", "what do we have on X".
- You're about to answer from general knowledge but suspect the wiki has a specific angle — check it first.
Steps
-
Call
wiki.querywith the topic. Use a concise, keyword-liketopic(not a full question).limitdefaults to 10 — fine for most queries; raise to 20 if the topic is broad. -
Drill into the top matches. For the top 3-5 pages (ranked by score), call
notes.readto get the full content. Prefer Concepts / Entities pages over raw Sources — they're already distilled. -
Synthesize the answer. Write a short, direct answer in prose:
- Pull specific claims from the pages you read.
- Cite each claim with a wikilink:
[[wiki/Concepts/memex.md|Memex]]. - If two pages disagree, surface the disagreement; don't paper over it. The wiki's contradictions are signal.
- If the wiki is silent on part of the question, say so explicitly — do not fall back to training data without flagging the gap.
-
Offer to compound. If your synthesis discovers a useful connection or produces a paragraph worth keeping, offer to file it back via
wiki.summaryMergeinto an existing concept page, or create a new one. Default: do NOT file automatically; ask first. -
Log queries worth remembering. If the query took meaningful effort (you read 5+ pages, or produced a long synthesis), append a
wiki.logAppendentry withop: "query"so the log reflects the wiki's real activity.
What not to do
- Don't answer from training data and cite the wiki anyway. If you didn't read a page, don't wikilink it.
- Don't just dump search results.
wiki.queryoutput is a map, not the answer. Read the pages, then synthesize. - Don't over-file. Not every query needs a permanent wiki page. File when the synthesis is non-obvious, or when the user asked you to.
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.
- 6d ago First seen · 67 lines · 74 tokens per session scan A eb3a0bc1d7e7
wiki-query is a skill published in the GitHub repository bezata/kObsidian (7 stars, last pushed 3d ago), licensed Apache-2.0. It adds 74 tokens to every session and 798 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-31.
Other skills, from other repositories
llm-wiki
Build and maintain a persistent, interlinked Obsidian-compatible markdown wiki using Karpathy's LLM Wiki pattern. Extension-backed with auto-generated metadata, guardrails, and 14 custom tools (+3 opt-in agent-trajectory tools).
kb-lint
Health check for the PARA Knowledge Base. Detects orphan documents, broken links, index drift, tag issues, and stale content. Run periodically or as part of weekly review.
kb-index
Update Knowledge Base indexes. Smart mode detects changes and updates only what's needed. Full rebuild available with --full flag. Use after adding/moving documents or when indexes feel stale.
ingest
将 raw/ 目录下的原始资料编译到 wiki/ 中。处理完成后,将源文件自动移动到 raw/09-archive/ 归档。支持 /ingest (扫描 raw/ 下所有未归档文件) 或 /ingest (处理指定文件)。当用户提到"摄取"、"导入"、"收入"资料,或要求将文件加入知识库时,也应该触发此技能。绝对忽略 raw/09-archive/ 目录。.
lint
知识库健康度检查。扫描 wiki/ 目录,自动修复索引同步和 frontmatter 缺失问题。对于死链、孤岛页面、知识冲突、标签爆炸,生成报告供人工决策。当用户输入 /lint、/scan、/health 或要求"检查知识库状态"时调用。.
query
在本地 Wiki 知识库中回答用户提问。支持三种模式:精准查询(默认)、探索查询(--explore)、关系查询(--relate)。必须先读取 wiki/index.md 定位相关页面,再深度阅读,最后以双链引用格式回答。禁止凭模型记忆回答。.