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.
git clone --depth 1 https://github.com/vijay-athithyaa-GV/llm-wiki-initWrote 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/commands/vijay-athithyaa-gv/llm-wiki-init/wiki-init)<a href="https://agentmods.dev/commands/vijay-athithyaa-gv/llm-wiki-init/wiki-init"><img src="https://agentmods.dev/badge/commands/vijay-athithyaa-gv/llm-wiki-init/wiki-init/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/commands/vijay-athithyaa-gv/llm-wiki-init/wiki-init"><img src="https://agentmods.dev/badge/commands/vijay-athithyaa-gv/llm-wiki-init/wiki-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00019 | $0.02081 |
| Opus 5 | $0.00010 | $0.01040 |
| Sonnet 5 | $0.00004 | $0.00416 |
| Haiku 4.5 | $0.00002 | $0.00208 |
Grade A, and why
wiki-init 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 10d 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 — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/wiki-init
Scaffold a new LLM Wiki in a fresh folder.
Arguments:
$1— the target folder name$2— a short description of the topic this wiki will cover
Step 0 — Resolve arguments
If $1 is missing, ask: "What should the wiki folder be called?"
If $2 is missing, ask: "What topic will this wiki cover? A short phrase is
enough."
Do not guess either value, and do not assume anything about the kind of topic — it may be technical, historical, commercial, personal, creative, or anything else. Wait for the user's answer before continuing.
Throughout the rest of this command, <FOLDER> means the value of $1 and
<TOPIC> means the value of $2.
Step 1 — Refuse to overwrite an existing wiki
Before creating anything, check whether <FOLDER>/CLAUDE.md exists.
If it exists, stop immediately. Create nothing, modify nothing. Tell the user:
A wiki already exists at
<FOLDER>/. I won't overwrite it.
- Run
/wiki-statusinside that folder to see what's already there.- Or re-run
/wiki-initwith a different folder name.
Then end the command. Do not proceed to Step 2 under any circumstances.
Step 2 — Create the directory structure
Only once Step 1 has confirmed <FOLDER>/CLAUDE.md does not exist:
<FOLDER>/raw/
<FOLDER>/wiki/concepts/
<FOLDER>/wiki/entities/
<FOLDER>/wiki/sources/
Create these by writing an empty .gitkeep file into each — Write creates any
missing parent directories on its own, so no shell is needed. The .gitkeep
files also let the empty directories survive a git commit.
Do not shell out to mkdir; this command must work identically on Windows,
macOS, and Linux, including in environments with no shell available.
Step 3 — Write <FOLDER>/CLAUDE.md
This is the schema file — the document that tells any future session how to
maintain this wiki. Write it exactly as below, substituting <FOLDER> and
<TOPIC> with the real values.
# <FOLDER> — LLM Wiki
**Topic:** <TOPIC>
This directory is an LLM Wiki: a persistent, interlinked markdown knowledge base
that the assistant builds and maintains from sources the user provides. This file
is the schema — it defines the structure, the rules, and the workflows.
Pattern credit: Andrej Karpathy —
<https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f>
## Layout
- `raw/` — original source material, stored exactly as provided
- `wiki/concepts/` — ideas, techniques, definitions, recurring themes
- `wiki/entities/` — people, organizations, products, places, systems
- `wiki/sources/` — one page per ingested source: summary, key claims, provenance
- `wiki/index.md` — the catalog: every page in the wiki, one line each
- `wiki/log.md` — append-only history of ingests, queries, and maintenance
- `wiki/overview.md` — evolving synthesis of what this wiki currently knows
## Rules
1. **Raw sources are immutable.** Never edit, reformat, reorganize, rename, or
delete anything under `raw/`. It is the record of what was actually provided.
2. **All synthesis lives in `wiki/`**, organized into `concepts/`, `entities/`,
and `sources/`. Nothing is written anywhere else.
3. **Every page must be linked from `wiki/index.md`** with a one-line summary.
A page that is not in the index is invisible — treat indexing as part of
creating the page, not a follow-up chore.
4. **Use `[[wikilink]]` style links** between related pages. Link generously in
both directions; the accumulated cross-references are the main thing that
makes this wiki more useful than the sources it was built from.
5. **Flag contradictions — never resolve them silently.** If a new source
disagrees with something already written, add a `> **Conflict:**` note on the
affected page naming both sources and what each claims, and raise it with the
user. Do not overwrite the earlier claim on your own authority.
6. **Never fabricate.** If the wiki does not contain a confident answer, say so
plainly. Do not guess, and never file a guess back into the wiki where a later
session would read it as sourced fact. A gap is information; a fabrication is
contamination.
## Workflows
### Ingest — a new source arrives
1. Save the source verbatim into `raw/`.
2. Read it in full.
3. Discuss the key points with the user *before* writing any wiki pages.
4. Create or update pages across `wiki/concepts/`, `wiki/entities/`, and
`wiki/sources/`. A single source often touches several pages.
5. Update `wiki/index.md` with every new page and its one-line summary.
6. Append an entry to `wiki/log.md`.
### Query — a question arrives
1. Read `wiki/index.md` first, to see what the wiki actually contains.
2. Read the relevant pages it points to.
3. Answer with citations to specific wiki pages and raw sources.
4. If the answer was substantive, offer to file it back as a new wiki page.
5. If the wiki does not contain the answer, say so — see Rule 6.
### Lint — on request
Check for and report:
- **Orphan pages** — files under `wiki/` not linked from `wiki/index.md`
- **Stale or contradicted claims** — assertions a later source disputed
- **Missing cross-references** — pages covering the same entity or concept
without `[[linking]]` to each other
- **Index drift** — entries in `index.md` pointing at files that no longer exist
Report findings first. Make changes only after the user confirms.
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.
- 10d ago First seen · 257 lines · 19 tokens per session scan A 7a212285593d
wiki-init is a command published in the GitHub repository vijay-athithyaa-GV/llm-wiki-init (2 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 2,081 once invoked, about $0.0001 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-31.
Other commands, from other repositories
wiki-query
Ask questions against the wiki. Synthesizes answers from wiki pages with cross-reference citations.
wiki-req
Capture and decompose a concept into atomic, traceable wiki requirements. Clarifies ambiguous requirements, splits them into atomic pieces, and persists them as wiki/requirements/ pages with status tracking.
wiki-ingest
Process new source packets and synthesize them into wiki knowledge pages.
wiki-record
Capture the just-completed task's tool-call trajectory into the wiki as agent working-memory, then optionally distill it into a reusable skill.
wiki-retro
Save an atomic insight from the current task into the wiki. Creates a single markdown file that layered recall surfaces in future sessions.
wiki-discover
Auto-discover new sources from the web. Searches based on config topics and known knowledge gaps.