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 skrun-dev/skrun --skill knowledge-base-from-vaultgit clone --depth 1 https://github.com/skrun-dev/skrunWrote 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/skrun-dev/skrun/knowledge-base-from-vault)<a href="https://agentmods.dev/skills/skrun-dev/skrun/knowledge-base-from-vault"><img src="https://agentmods.dev/badge/skills/skrun-dev/skrun/knowledge-base-from-vault/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/skrun-dev/skrun/knowledge-base-from-vault"><img src="https://agentmods.dev/badge/skills/skrun-dev/skrun/knowledge-base-from-vault.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00091 | $0.00946 |
| Opus 5.5 | $0.00036 | $0.00378 |
| Sonnet 5.5 | $0.00018 | $0.00189 |
| Haiku 4.5 | $0.00009 | $0.00095 |
Grade A, and why
knowledge-base-from-vault 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 16d 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 — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Knowledge Base from Vault
You turn a folder of Markdown notes into a navigable static site, bundled as a single kb.zip, and you keep a concept graph across runs. One tool does all of the work: build_knowledge_base. It reads the vault, writes every page, builds the zip, merges the concept graph and counts everything. Your job is to call it once with the run's input, then answer with what it returned.
Procedure
-
Call
build_knowledge_baseonce, with these arguments and no others:vault_dir: the input'svault_dir, exactly as given;site_title: the input'ssite_title, if the input has one;theme: the input'stheme, if the input has one;previous_state: thePrevious stateyou received, unchanged — leave it out when you received none.
-
Answer with the JSON object the tool returned, unchanged — every field,
_stateincluded. Do not recompute, round, rename or drop any field:site_zip_path,pages_count,concept_count,link_countandruns_processedare written and counted by the tool, from the site it built. -
If something goes wrong:
- The call is refused for its arguments (
Invalid arguments for tool 'build_knowledge_base': …): call it once more, with only the arguments listed in step 1. - The tool returns
{ "error": "…" }: the site was not built. Answer{ "error": "<the tool's message>", "site_zip_path": "", "pages_count": 0, "concept_count": 0, "link_count": 0, "runs_processed": 0 }, with no_state. Never invent a site or a count.
- The call is refused for its arguments (
What the tool builds
- One page per note, every
.mdfile of the vault (subdirectories included, hidden ones skipped), rendered from its Markdown: headings, paragraphs, bold and italics, lists, block quotes, code spans and fenced code (escaped), front-matter stripped.[[wiki]]links and relative.mdlinks point to the linked note's page; a link to a note that does not exist stays visible as<code>[[name]]</code>. Each page ends with its backlinks — the notes that link to it. index.html: every note, the concept index (this run's concepts, ranked by how many runs have seen them, each linked to the pages it comes from), and the stats.theme.css:light(default),darkorsepia.- Concepts: up to 7 per note — the notes it links to, then its H2/H3 headings, then its bold terms — each with a kebab-case
idand the author's casing as itslabel. Generic headings ("See also"), headings phrased as questions and one-word lower-case bold terms are left out. - Counts:
pages_count= the notes + the index;link_count= the internal links that resolve to a note, per occurrence;concept_count= the distinct concepts in the graph after this run;runs_processed= the previous value + 1.
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agent.yaml 3.9 KB
- fixtures/sample-vault/concepts/cluster-design.md 1.2 KB
- fixtures/sample-vault/concepts/event-sourcing.md 1.0 KB
- fixtures/sample-vault/glossary.md 1.1 KB
- fixtures/sample-vault/how-to/run-locally.md 848 B
- fixtures/sample-vault/intro.md 1.2 KB
- package.json 253 B
- README.md 8.5 KB
- scripts/build_knowledge_base.ts 28 KB runs code
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.
- 16d ago Changed · -46 lines 3941ff724348
- 3mo ago First seen · 92 lines · 91 tokens per session scan A 9f4540a8ddc4
knowledge-base-from-vault is a skill published in the GitHub repository skrun-dev/skrun (213 stars, last pushed 16d ago), licensed MIT. It adds 91 tokens to every session and 946 once invoked, about $0.0004 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-30.
knowledge-base-from-vault compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| knowledge-base-from-vaultskrun-dev/skrun | Skill | 213 | 16d ago | MIT | A | 91 | Claude Code, Codex |
| xlsxmudler/LocalAI | Skill | 51k | today | MIT | A | 37 | Claude Code, Codex |
| docxmudler/LocalAI | Skill | 51k | today | MIT | A | 39 | Claude Code, Codex |
| pptxmudler/LocalAI | Skill | 51k | today | MIT | A | 40 | Claude Code, Codex |
| pdfmudler/LocalAI | Skill | 51k | today | MIT | A | 35 | Claude Code, Codex |
| figuressynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 99 | Claude Code |
| liteparsesynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 49 | Claude Code, Codex |