llm-wiki

llm-wiki is a skill for Claude Code from Ar9av/obsidian-wiki. It costs 41 tokens per session (10,315 once invoked), scanned A, original, MIT.

A pattern for building an AI-powered Obsidian wiki, where knowledge is distilled into linked Markdown notes. It separates original sources, collected material, and maintained notes so the resulting knowledge base is easier to search and update.

In plain words
What is it for?
Use it to understand or set up the wiki’s three-layer structure, ingest documents and images, and maintain a compiled knowledge base. Image interpretation requires a model that can see images.
Why use it?
It prevents the system from repeatedly rediscovering the same information and keeps original documents unchanged as references.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; positional $N argument; mentions AGENTS.md.

Part of the obsidian-wiki plugin — 42 skills, 2 hooks, 1 MCP server shipped together

Good fit Use it to understand or set up the wiki’s three-layer structure, ingest documents and images, and maintain a compiled knowledge base. Image interpretation requires a model that can see images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ar9av/obsidian-wiki/llm-wiki
About the project

obsidian-wiki is a framework that helps AI agents build and maintain an interconnected knowledge base from text-based material in an Obsidian vault. It is for people who want their agents to remember discoveries, connect related information, and answer questions with wiki-link citations. Catalogue add-ons provide the agent skills, instructions, agents, and configuration used to create and maintain these wikis.

Ar9av/obsidian-wiki · 3,835 stars · on GitHub

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 Ar9av/obsidian-wiki --skill llm-wiki
Clone the repo
git clone --depth 1 https://github.com/Ar9av/obsidian-wiki

Made for: Claude Code.

Or install obsidian-wiki, the plugin that ships this one along with the rest of its 42 skills, 2 hooks, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ar9av/obsidian-wiki/llm-wiki/github.svg)](https://agentmods.dev/skills/ar9av/obsidian-wiki/llm-wiki)
Your own site
<a href="https://agentmods.dev/skills/ar9av/obsidian-wiki/llm-wiki"><img src="https://agentmods.dev/badge/skills/ar9av/obsidian-wiki/llm-wiki/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 llm-wiki

Your own site · 80×15
<a href="https://agentmods.dev/skills/ar9av/obsidian-wiki/llm-wiki"><img src="https://agentmods.dev/badge/skills/ar9av/obsidian-wiki/llm-wiki.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,315 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
  • Socket pass 25 Nov 2026
  • Snyk warn 27 Nov 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.00041 $0.10315
Opus 5.5 $0.00016 $0.04126
Sonnet 5.5 $0.00008 $0.02063
Haiku 4.5 $0.00004 $0.01031

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

Security

Grade A, and why

llm-wiki 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.

skills/llm-wiki/SKILL.md · 695 lines

How it starts

The opening of the file, as written. The whole thing — 695 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LLM Wiki — Knowledge Distillation Pattern

You are maintaining a persistent, compounding knowledge base. The wiki is not a chatbot — it is a compiled artifact where knowledge is distilled once and kept current, not re-derived on every query.

Three-Layer Architecture

Layer 1: Raw Sources (immutable)

The user's original documents — articles, papers, notes, PDFs, conversation logs, bookmarks, and images (screenshots, whiteboard photos, diagrams, slide captures). These are never modified by the system. They live wherever the user keeps them (configured via OBSIDIAN_SOURCES_DIR in .env). Images are first-class sources: the ingest skills read them via the Read tool's vision support and treat their interpreted content as inferred unless it's verbatim transcribed text. Image ingestion requires a vision-capable model — models without vision support should skip image sources and report which files were skipped.

Think of raw sources as the "source code" — authoritative but hard to query directly.

Don't confuse this with the in-vault _raw/ staging folder, which is a different thing: a scratch inbox for quick captures and drafts awaiting promotion (see wiki-capture and wiki-ingest). Files there aren't Layer 1 sources, but wiki-ingest still moves rather than deletes them on promotion, since some have no other copy.

Layer 2: The Wiki (LLM-maintained)

A collection of interconnected Obsidian-compatible markdown files organized by category. This is the compiled knowledge — synthesized, cross-referenced, and navigable. Each page has:

  • YAML frontmatter (title, category, tags, sources, timestamps)
  • Obsidian [[wikilinks]] connecting related concepts
  • Clear provenance — every claim traces back to a source

The wiki lives at the path configured via OBSIDIAN_VAULT_PATH in .env.

Layer 3: The Schema (this skill + config)

The rules governing how the wiki is structured — categories, conventions, page templates, and operational workflows. The schema tells the LLM how to maintain the wiki.

Read the full file on GitHub · 695 lines

Files

What ships with it

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

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. 2d ago Changed c0cd0ac4408e
  2. 25d ago Changed 9dd1a96c1427
  3. 1mo ago Changed · +2 lines f25b6e020b2b
  4. 1mo ago Changed 1c2915f009be
  5. 1mo ago Changed · -1 lines 8cf1e42ad285
  6. 1mo ago Changed · -5 lines · -72 tokens per session da5677fe4290
  7. 1mo ago Changed 4bbb96786c77
  8. 2mo ago Changed · +13 lines 5d5bca39e09e
  9. 2mo ago Changed · +8 lines afe905700dd3
  10. 2mo ago First seen · 678 lines · 113 tokens per session scan A 6224bb18749e

Subscribe to this mod's changes

llm-wiki is a skill published in the GitHub repository Ar9av/obsidian-wiki (3,835 stars, last pushed 3d ago), licensed MIT. It adds 41 tokens to every session and 10,315 once invoked, about $0.0002 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

llm-wiki compared with skills from other repositories

llm-wiki next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
llm-wikiAr9av/obsidian-wikiSkill3.8k3d agoMITA41Claude Code
llmwikiatomicstrata/llm-wiki-compilerSkill2.3k2d agoMITA66Claude Code, Codex
wegent-knowledgewecode-ai/WegentSkill895todayApache-2.0A60Claude Code, Codex
llm-wikizosmaai/pi-llm-wikiSkill6345d agoMITA52Claude Code
karpathy-llm-wikiAstro-Han/karpathy-llm-wikiSkill2.8k4mo agoMITA67Claude Code, Codex
knowledge-ingestkeshrath/agent-knowledgeSkill19yesterdayMITA96Claude Code
kb-memoryoyi77/1ai-skillsSkill19todayMITA31Claude Code