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 skills add olegvg/olegvg-skills --skill kb-querygit clone --depth 1 https://github.com/olegvg/olegvg-skillsWrote 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/olegvg/olegvg-skills/kb-query)<a href="https://agentmods.dev/skills/olegvg/olegvg-skills/kb-query"><img src="https://agentmods.dev/badge/skills/olegvg/olegvg-skills/kb-query/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/olegvg/olegvg-skills/kb-query"><img src="https://agentmods.dev/badge/skills/olegvg/olegvg-skills/kb-query.svg" alt="Reviewed on agentmods" width="80" 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.00064 | $0.01040 |
| Opus 5.5 | $0.00026 | $0.00416 |
| Sonnet 5.5 | $0.00013 | $0.00208 |
| Haiku 4.5 | $0.00006 | $0.00104 |
Grade A, and why
kb-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 11d 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 — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
kb-query — Answer via Progressive Disclosure
When to use
User asks a question about a corpus that has a .kb/ directory. The knowledge base exists — you're reading it, not building it.
If .kb/ does not exist, suggest /kb-build and stop.
Input
- A natural-language question or
--decisions-for <summary-path>.
Workflow (strict order)
1. Read _root.md first
For a question, open .kb/indexes/_root.md before other KB files. For a named summary, use the direct decision lookup below.
This is the indexes-first rule. It's cheap (≤300 tokens) and orients you correctly in one hop. Skipping it to "save time" costs more time when you pick the wrong summaries.
2. Pick 1–3 area indexes
Based on _root.md, identify which areas are relevant to the question. Read those area indexes (.kb/indexes/<area>.md).
Typical count: 1 for focused questions, 2–3 for questions that cross domains. More than 3 means either the question is too broad or the areas are over-segmented.
3. Descend to summaries
From the area indexes, pick the specific leaf summaries to read. Read them.
4. Follow warm references freely
Once inside a summary, you may follow direct references to other summaries without returning to the index level. This relaxation is intentional — see docs/navigation-rules.md. The indexes earn their keep on cold start; warm references are cheap.
4a. Surface decisions for the current summary
After reading a summary, also check whether any decision records reference it. Decisions live in .kb/decisions/<YYYY-MM-slug>.md; each record's ## Affected areas block names the summaries it shapes. The lookup is one grep:
rg -l -F -g '*.md' -- "<path-to-current-summary>" .kb/decisions/
Read whichever records the grep returns. Do not look for a ## Key decisions section inside the summary — the linkage lives in the decision record, not in the summary. Decisions are immutable history; summaries describe the present.
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.
- 11d ago Changed 9d8cc98f4ab1
- 12d ago Changed c8a417564c8b
- 3mo ago First seen · 85 lines · 64 tokens per session scan A ad6f8e2e9a58
kb-query is a skill published in the GitHub repository olegvg/olegvg-skills (10 stars, last pushed 12d ago), licensed MIT. It adds 64 tokens to every session and 1,040 once invoked, about $0.0003 per session on Opus 5.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.
kb-query compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| kb-queryolegvg/olegvg-skills | Skill | 10 | 12d ago | MIT | A | 64 | Claude Code |
| engram-digesttechtheist/engram | Skill | 37 | 14d ago | MIT | A | 98 | Claude Code |
| engram-sleeptechtheist/engram | Skill | 37 | 14d ago | MIT | A | 114 | Claude Code |
| engramtechtheist/engram | Skill | 37 | 14d ago | MIT | A | 78 | Claude Code |
| thoughtline-memoryAgusLoza2021/Thoughtline | Skill | 4 | 9d ago | MIT | A | 40 | Claude Code |
| bootstrap-llm-synthesisdigipulse-engineering/GAAI-framework | Skill | 164 | 13d ago | none | A | 69 | Claude Code, Codex |
| memory-delta-triagedigipulse-engineering/GAAI-framework | Skill | 164 | 13d ago | none | A | 58 | Claude Code, Codex |