knowledge-base-from-vault

knowledge-base-from-vault is a skill for Claude Code, Codex from skrun-dev/skrun. It costs 91 tokens per session (946 once invoked), scanned A, original, MIT.

A tool that turns a folder of Markdown notes into a searchable, linked static website packed as a ZIP file. It also tracks repeated concepts across runs to build a denser index over time.

In plain words
What is it for?
Use it to publish an Obsidian vault, Notion export, or documentation folder as a navigable knowledge base with related concepts and pages.
Why use it?
It makes scattered notes easier to browse and find without requiring a note-taking app or manual page linking.

Skill for Claude CodeCodex

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

Good fit Use it to publish an Obsidian vault, Notion export, or documentation folder as a navigable knowledge base with related concepts and pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skrun-dev/skrun/knowledge-base-from-vault
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.

Any agent
npx skills add skrun-dev/skrun --skill knowledge-base-from-vault
Clone the repo
git clone --depth 1 https://github.com/skrun-dev/skrun

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 knowledge-base-from-vault

README.md
[![agentmods](https://agentmods.dev/badge/skills/skrun-dev/skrun/knowledge-base-from-vault/github.svg)](https://agentmods.dev/skills/skrun-dev/skrun/knowledge-base-from-vault)
Your own site
<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.

agentmods 80×15 button for knowledge-base-from-vault

Your own site · 80×15
<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>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 946 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00091 $0.00946
Opus 5.5 $0.00036 $0.00378
Sonnet 5.5 $0.00018 $0.00189
Haiku 4.5 $0.00009 $0.00095

Measured 16d ago against content hash 3941ff724348, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/build_knowledge_base.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

agents/knowledge-base-from-vault/SKILL.md · 46 lines

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

  1. Call build_knowledge_base once, with these arguments and no others:

    • vault_dir: the input's vault_dir, exactly as given;
    • site_title: the input's site_title, if the input has one;
    • theme: the input's theme, if the input has one;
    • previous_state: the Previous state you received, unchanged — leave it out when you received none.
  2. Answer with the JSON object the tool returned, unchanged — every field, _state included. Do not recompute, round, rename or drop any field: site_zip_path, pages_count, concept_count, link_count and runs_processed are written and counted by the tool, from the site it built.

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

What the tool builds

  • One page per note, every .md file 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 .md links 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), dark or sepia.
  • 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 id and the author's casing as its label. 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.

Read the full file on GitHub · 46 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. 16d ago Changed · -46 lines 3941ff724348
  2. 3mo ago First seen · 92 lines · 91 tokens per session scan A 9f4540a8ddc4

Subscribe to this mod's changes

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.

Related

knowledge-base-from-vault compared with skills from other repositories

knowledge-base-from-vault next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
knowledge-base-from-vaultskrun-dev/skrunSkill21316d agoMITA91Claude Code, Codex
xlsxmudler/LocalAISkill51ktodayMITA37Claude Code, Codex
docxmudler/LocalAISkill51ktodayMITA39Claude Code, Codex
pptxmudler/LocalAISkill51ktodayMITA40Claude Code, Codex
pdfmudler/LocalAISkill51ktodayMITA35Claude Code, Codex
figuressynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A99Claude Code
liteparsesynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A49Claude Code, Codex