Builds and maintains a persistent, compounding wiki from raw source documents using the LLM Wiki pattern. Useful for personal knowledge bases and research over time.
Ships in llm-wiki. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build and maintain a persistent, compounding knowledge wiki from raw sources.
Based on Karpathy's LLM Wiki pattern: the LLM incrementally integrates each new source into a structured wiki of markdown files — updating entity pages, flagging contradictions, strengthening cross-references. Synthesis is compiled once and kept current, not re-derived on every query.
/llm-wiki <ACTION> [ARGUMENTS]
wiki/)your-wiki/
├── raw/ # Immutable source documents — you add, LLM never modifies
│ └── assets/ # Downloaded images referenced by sources
├── wiki/ # LLM-generated and maintained pages
│ ├── index.md # Catalog of all pages with one-line summaries
│ ├── log.md # Append-only record of all operations
│ ├── overview.md
│ ├── entities/ # People, places, organizations
│ ├── concepts/ # Ideas, topics, themes
│ └── sources/ # One summary page per source
└── CLAUDE.md # Schema: wiki conventions and per-operation workflows
Templates for all three layers are in $SKILL_PATH/templates/.
raw/, wiki/, wiki/entities/, wiki/concepts/, wiki/sources/$SKILL_PATH/templates/schema.md to CLAUDE.md (or AGENTS.md)wiki/index.md from $SKILL_PATH/templates/index.mdwiki/log.md from $SKILL_PATH/templates/log.mdwiki/overview.md stating the wiki's domain and purposeraw/ and run /llm-wiki ingest <file> nextDone when: all five files and directories exist and the user has been told the next step.
wiki/sources/<slug>.md with a structured summarywiki/overview.md if the source shifts the big picturewiki/entities/ for key people, places, organizationswiki/concepts/ for key ideas and themeswiki/index.md — every new or modified page must appear with a one-line summarywiki/log.md: ## [YYYY-MM-DD] ingest | <Source Title>Done when: every affected page is updated, every new or changed page appears in index.md, and the log entry is appended. A single ingest typically touches 5–15 pages.
wiki/index.md to identify the most relevant pageswiki/index.md and append to wiki/log.mdDone when: the question is answered with citations, and any filing decision (page created or skipped) is resolved.
Scan the entire wiki and report on each of the following:
[[Page Name]] links pointing to non-existent pagesSuggest new questions and sources. Ask before making any fixes.
Append to wiki/log.md: ## [YYYY-MM-DD] lint | health check
Done when: all six issue types are checked and reported, suggestions are given, and the log entry is appended.
Report: source count in raw/, wiki page count, last 10 entries in wiki/log.md, and any obvious health issues (orphan pages, missing index entries).
Done when: all four items are reported.
wiki/index.md — content catalog, updated on every ingest. Every page with a link and one-line summary, organized by category. The LLM reads this first when answering queries.
wiki/log.md — append-only operation log. Entry format: ## [YYYY-MM-DD] <operation> | <title>. Grep-parseable:
grep "^## \[" wiki/log.md | tail -5 # last 5 operations
grep "^## \[.*\] ingest" wiki/log.md # all ingests
grep "^## \[.*\] query" wiki/log.md # all queries
For larger wikis, add qmd — local hybrid BM25/vector search with an MCP server:
bun install -g @tobilu/qmd
qmd collection add ./wiki --name my-wiki
qmd embed
qmd query "how does X relate to Y" -c my-wiki
raw/.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/llm-wiki:llm-wikifrom llm-wiki
npx claudepluginhub jellydn/my-ai-tools --plugin llm-wikiOther plugins' skills for the same job