kb-wiki
KB Wiki Skill
A methodology for LLM-maintained knowledge bases based on Andrej Karpathy's LLM Wiki pattern (idea file and the companion "LLM Knowledge Bases" X post). LLMs maintain the wiki; humans curate sources and ask questions.
The wiki is a persistent, compounding artifact — each source is compiled once into interlinked pages and kept current, instead of being re-retrieved and re-synthesized on every question (the RAG failure mode). The index plus brief per-source summaries are the retrieval backbone that makes direct LLM reads sufficient at ~100-page scale.
Schema reference: Load references/schema.md for page format, link conventions, directory structure, and log format details.
New project assets: assets/schema.md is a template — copy to kb/schema.md with project name and categories substituted when initializing.
Guard: check KB exists before any operation
Before running Ingest, Query, Lint, Map, Verify, Capture, or Migrate — check whether kb/wiki/index.md exists. If it does not, stop and tell the user, in the user's language: this project has no KB yet — run /kb-wiki init first.
Do not attempt to proceed with the operation.