An LLM wiki template based on Andrej Karpathy's llm-wiki gist for turning curated raw/ sources into a persistent markdown knowledge base.
The basic model is raw/ -> wiki/.
You curate source material in raw/, then use the repo contract to turn that material into durable wiki pages under wiki/. As the corpus grows, the wiki becomes the main knowledge layer, while raw/ remains the backing source layer.
raw/- curated source documentswiki/- persistent markdown wiki and navigation surfacesAGENTS.md- repo contract for structure, workflows, and page typesSTYLE_GUIDE.md- prose and presentation guide for wiki writing
- Add curated source material to
raw/. - Follow
AGENTS.mdfor wiki structure andSTYLE_GUIDE.mdfor prose. - Create or update pages in
wiki/sources/,wiki/entities/,wiki/concepts/, andwiki/syntheses/. - Keep
wiki/index.mdandwiki/log.mdup to date.
ingest- integrate curated material fromraw/intowiki/and update related pages, the index, and the log.query- answer from the wiki first, then fold durable answers back into the knowledge base when they deserve a synthesis page.lint- check wiki health, including structure, link integrity, stale claims, and integration gaps.refresh- detect raw-source drift and report the downstream pages that should be revisited.