wiki-query

wiki-query is a skill for Claude Code, Codex from bezata/kObsidian. It costs 74 tokens per session (798 once invoked), scanned A, original, Apache-2.0.

A question-answering tool for an LLM Wiki, a curated personal knowledge base used as the source for responses.

In plain words
What is it for?
Use it to search the wiki, read the most relevant pages, answer questions with citations, and optionally save a synthesis as a concept page.
Why use it?
It keeps answers grounded in the user's notes instead of relying only on general model knowledge, and reports when the wiki does not cover a topic.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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/bezata/kobsidian/wiki-query
Any agent
npx skills add bezata/kObsidian --skill wiki-query
Clone the repo
git clone --depth 1 https://github.com/bezata/kObsidian

Made for: Claude Code, Codex.

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 wiki-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/bezata/kobsidian/wiki-query.svg)](https://agentmods.dev/skills/bezata/kobsidian/wiki-query)
Your own site
<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>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 798 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.00074 $0.00798
Opus 5 $0.00037 $0.00399
Sonnet 5 $0.00015 $0.00160
Haiku 4.5 $0.00007 $0.00080

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

Security

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.

skills/wiki-query/SKILL.md · 67 lines

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.query returns 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

  1. Call wiki.query with the topic. Use a concise, keyword-like topic (not a full question). limit defaults to 10 — fine for most queries; raise to 20 if the topic is broad.

  2. Drill into the top matches. For the top 3-5 pages (ranked by score), call notes.read to get the full content. Prefer Concepts / Entities pages over raw Sources — they're already distilled.

  3. 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.
  4. Offer to compound. If your synthesis discovers a useful connection or produces a paragraph worth keeping, offer to file it back via wiki.summaryMerge into an existing concept page, or create a new one. Default: do NOT file automatically; ask first.

  5. Log queries worth remembering. If the query took meaningful effort (you read 5+ pages, or produced a long synthesis), append a wiki.logAppend entry with op: "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.query output 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.

Read the full file on GitHub · 67 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 · 67 lines · 74 tokens per session scan A eb3a0bc1d7e7

Subscribe to this mod's changes

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.

Related

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).

zosmaai/pi-llm-wiki · 52 tokens

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.

ernestolee13/para-knowledge-base · 39 tokens

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.

ernestolee13/para-knowledge-base · 38 tokens

ingest

将 raw/ 目录下的原始资料编译到 wiki/ 中。处理完成后,将源文件自动移动到 raw/09-archive/ 归档。支持 /ingest (扫描 raw/ 下所有未归档文件) 或 /ingest (处理指定文件)。当用户提到"摄取"、"导入"、"收入"资料,或要求将文件加入知识库时,也应该触发此技能。绝对忽略 raw/09-archive/ 目录。.

levi-qiao/obsidian-llm-wiki · 114 tokens

lint

知识库健康度检查。扫描 wiki/ 目录,自动修复索引同步和 frontmatter 缺失问题。对于死链、孤岛页面、知识冲突、标签爆炸,生成报告供人工决策。当用户输入 /lint、/scan、/health 或要求"检查知识库状态"时调用。.

levi-qiao/obsidian-llm-wiki · 72 tokens

query

在本地 Wiki 知识库中回答用户提问。支持三种模式:精准查询(默认)、探索查询(--explore)、关系查询(--relate)。必须先读取 wiki/index.md 定位相关页面,再深度阅读,最后以双链引用格式回答。禁止凭模型记忆回答。.

levi-qiao/obsidian-llm-wiki · 70 tokens