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/stjbrown/agent-knowledge/kb-querynpx skills add stjbrown/agent-knowledge --skill kb-querygit clone --depth 1 https://github.com/stjbrown/agent-knowledgeWhat 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 | $0.00077 | $0.01243 |
| Opus 5 | $0.00039 | $0.00622 |
| Sonnet 5 | $0.00015 | $0.00249 |
| Haiku 4.5 | $0.00008 | $0.00124 |
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 2d 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 — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
kb-query — answer from the bundle
Answer a question from a knowledge bundle, or surface relevant bundle context for another task. Because synthesis was front-loaded during ingest or repository documentation, this is mostly navigation and assembly, not rediscovery. Read ../kb/references/glossary.md for terms.
Two modes, same procedure:
- Explicit — the user asks a knowledge question ("what do we know about X?", "compare A and B").
- Ambient — you're doing another task and a bundle in the repo has relevant context; consult it before answering from scratch, then return to the task.
1. Locate the bundle(s)
Find the bundle root (a knowledge/ dir, or an index.md with okf_version). If knowledge/ holds
several bundles, read knowledge/index.md and pick the relevant one(s); a query may span more than
one. If no bundle exists, say so and stop (offer kb-init).
Completion criterion: the relevant bundle root(s) are identified.
2. Navigate by progressive disclosure
Do not read the whole bundle. Read the root index.md first, then the relevant section
index.md, to find candidate concepts; follow cross-links from there. Read only concepts
relevant to the question. (At large scale a search tool may exist — use it to find candidates, but
the retrieved unit is still a synthesized concept, not a raw chunk.)
Completion criterion: you have the specific concepts that bear on the question, reached by following the index and links rather than scanning.
3. Read with currency and conflict awareness
Apply the reading side of the trust model and the version profile:
- If a concept is retired (
status: deprecatedin OKF v0.2 or legacystatus: superseded), followsuperseded_byto the current version and answer from that (use the old one only if the user asks how something evolved). - If concepts are linked by
conflicts_with, read the anchor and all linked signals and answer with nuance — separate what authoritative sources confirm from what softer signals suggest, with dates and sources. Do not flatten a contested question into a single yes/no. - If
today >= stale_after, label the concept stale and corroborate it before relying on it. Usegenerated.atfor v0.2 recency and fall back to legacytimestamponly whengeneratedis absent. - Derive the advisory trust tier from
verified: no verifier is unverified, non-human verifiers are machine-confirmed, and anyhuman:verifier is human-reviewed. Never treat a tier as access control. - Resolve claim footnotes through matching
sources[].id; whensourcesis absent, a v0.2 consumer may fall back to a legacy# Citationssection. - For
type: Attested Computation, distinguish recorded definition verification from per-run attestation. Do not execute or alter its computation unless the user separately authorizes the declared executor path; never present an unattested runtime value as attested.
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.
- 2d ago First seen · 96 lines · 77 tokens per session scan A 8811d6d108e8
kb-query is a skill published in the GitHub repository stjbrown/agent-knowledge (32 stars, last pushed 1mo ago), licensed MIT. It adds 77 tokens to every session and 1,243 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-30.
Other skills, from other repositories
okf-authoring
Author Open Knowledge Format (OKF) bundles — knowledge represented as a directory of markdown files with YAML frontmatter. Use when asked to create, write, generate, enrich, or validate an OKF bundle or OKF concept docs; to turn a data source (Glue database, API, database, catalog), documentation, or a research topic…
refresh-okf-mcp-token
Fetch or refresh an OAuth2 access token for the OKF Data wiki consumption MCP server. Use when the OKF MCP server returns 401/403/unauthorized/expired-token errors, when the user asks to refresh, renew, or get a new OKF MCP token, or when setting up authentication to call the okf-mcp / okfconsumption MCP runtime.
report-authoring
The report-authoring methodology: required structure, language, evidence discipline, and figure selection. Read BEFORE your first createreport of a conversation - the tool validates shape; this is everything it cannot check.
setup
Set up the OKF MCP plugin — outputs a guide for the user to create their /.okf/credentials file with their OAuth2 client id/secret. Use when first enabling the plugin, when headersHelper fails with "Missing credentials", or when the user says "setup okf".
openkb-deck-neon
Use when the user asks the openkb chat to make a deck / slide presentation / PPT / slides / 演示稿 / 幻灯片 from their compiled KB content AND wants a dark, high-tech, neon / glow / glassmorphism look (赛博 / 科技风 / 暗色 / 霓虹 / 炫酷). Generates a polished single-file HTML deck in the Aurora Glass visual direction (near-black…
openkb-deck-editorial
Use when the user asks the openkb chat to make a deck / slide presentation / PPT / slides / 演示稿 / 幻灯片 from their compiled KB content. Generates a polished single-file HTML deck in the Editorial Monocle visual direction (warm cream background, serif type, brick-red accent) — designed to be opened in a browser…