wiki-init

wiki-init is a command for Claude Code from vijay-athithyaa-GV/llm-wiki-init. It costs 19 tokens per session (2,081 once invoked), scanned A, original, MIT.

A command for starting an interlinked Markdown wiki, which is a set of connected plain-text pages about a topic. It asks for a folder name and topic, then creates the wiki only in a fresh folder.

In plain words
What is it for?
Use it to create a new technical, historical, commercial, personal, or other topic wiki. It checks for an existing CLAUDE.md file first and stops if a wiki is already there.
Why use it?
It gives a repeatable starting structure for collecting knowledge without overwriting an existing wiki.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; positional $N argument; mentions Claude Code.

Part of the llm-wiki-init plugin — 2 commands shipped together

Good fit Use it to create a new technical, historical, commercial, personal, or other topic wiki. It checks for an existing CLAUDE.md file first and stops if a wiki is already there.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/vijay-athithyaa-gv/llm-wiki-init/wiki-init
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.

Clone the repo
git clone --depth 1 https://github.com/vijay-athithyaa-GV/llm-wiki-init

Made for: Claude Code.

Or install llm-wiki-init, the plugin that ships this one along with the rest of its 2 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/vijay-athithyaa-gv/llm-wiki-init/wiki-init/github.svg)](https://agentmods.dev/commands/vijay-athithyaa-gv/llm-wiki-init/wiki-init)
Your own site
<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.

agentmods 80×15 button for wiki-init

Your own site · 80×15
<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>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,081 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.
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.00019 $0.02081
Opus 5 $0.00010 $0.01040
Sonnet 5 $0.00004 $0.00416
Haiku 4.5 $0.00002 $0.00208

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

Security

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.

commands/wiki-init.md · 257 lines

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-status inside that folder to see what's already there.
  • Or re-run /wiki-init with 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.

Read the full file on GitHub · 257 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. 10d ago First seen · 257 lines · 19 tokens per session scan A 7a212285593d

Subscribe to this mod's changes

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.