llm-wiki

llm-wiki is a skill for Claude Code, Codex from sammcj/agentic-coding. It costs 82 tokens per session (5,471 once invoked), scanned A, original, Apache-2.0.

A personal knowledge base made from plain Markdown files, with original sources kept separately from the articles compiled from them. It can ingest, query, check, audit, and critique stored knowledge.

In plain words
What is it for?
Use it to add content from URLs, files, or pasted text, ask questions about your notes, check wiki health, and review articles against their sources.
Why use it?
It gives you a local, readable way to keep source-backed knowledge organized and detect stale or unsupported claims.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/sammcj/agentic-coding/llm-wiki
Any agent
npx skills add sammcj/agentic-coding --skill llm-wiki
Clone the repo
git clone --depth 1 https://github.com/sammcj/agentic-coding

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sammcj/agentic-coding/llm-wiki.svg)](https://agentmods.dev/skills/sammcj/agentic-coding/llm-wiki)
Your own site
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/llm-wiki"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/llm-wiki.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,471 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00082 $0.05471
Opus 5 $0.00041 $0.02736
Sonnet 5 $0.00016 $0.01094
Haiku 4.5 $0.00008 $0.00547

Measured 3d ago against content hash 0810fd5fde4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/lint_mermaid.py, scripts/lint_wiki.py), 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.

Skills/llm-wiki/SKILL.md · 295 lines

How it starts

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

LLM Wiki

A personal knowledge base in plain markdown. Sources land in raw/ (immutable); you compile them into wiki/ articles you own. Local markdown with YAML frontmatter, readable on GitHub, openable as an Obsidian vault. No servers, no databases, no embeddings.

Core idea (Karpathy): the LLM writes and maintains the wiki; the human chooses sources and asks questions. Knowledge is compiled once at ingest.

Invocation

Query is the default. Ingest, Lint, Audit and Critique are the four deliberate operations, each opted into by its verb or by a request that plainly calls for it. Anything else is a Query against the wiki: a bare question, "what do I know about X", "summarise everything on Y". No query keyword needed.

A leading mode argument routes straight to that operation:

  • ingest (alias add) - trailing text is the source: a URL, a path, or pasted content.
  • lint - health checks; no further input.
  • audit - trailing text names the article or topic to verify.
  • critique (alias scrutinise) - trailing text names the article, topic, or pasted content to examine.
  • query (alias ask) - forces query handling when a question could look like another operation.

Otherwise route natural language to Ingest, Lint, Audit or Critique only when it clearly calls for one; answer everything else as a Query.

Always required, and scenario-gated

Every operation, always:

  • Act only on the user's request; never background-write.
  • Compile any write from a source already in raw/, never straight from a live URL or an external path.
  • Update wiki/index.md and append wiki/log.md on any write.
  • Bump an article's updated whenever its content changes.
  • Replace outdated knowledge by superseding it, never by deleting or editing in place.

Everything else is scenario-gated. Match your task against a branch below and read that file before acting - a pointer is an instruction to open the file, not a citation. When unsure, read it: cheaper than corrupting the wiki by guessing.

Read the full file on GitHub · 295 lines

Files

What ships with it

46 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. 3d ago First seen · 295 lines · 82 tokens per session scan A 0810fd5fde4e

Subscribe to this mod's changes

llm-wiki is a skill published in the GitHub repository sammcj/agentic-coding (159 stars, last pushed today), licensed Apache-2.0. It adds 82 tokens to every session and 5,471 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.