--- name: llm-wiki description: > Build and maintain an LLM-curated personal knowledge base — the "LLM Wiki" pattern. Use whenever the user wants to ingest a source (paper, article, transcript, PDF, notes) into a persistent, compounding knowledge base, ask a question against the accumulated notes, lint or audit such a base, or initialize a new one. Applies even when the user doesn't say "wiki" — any time they accumulate textual sources over time and want them organized. A deliberate, standalone store, distinct from agent memory (note / keep / MEMORY.md). --- # LLM Wiki A skill for building and maintaining an LLM-curated knowledge base inside a project, following the pattern Andrej Karpathy described in his April 2026 gist. The wiki is a directory of markdown files that the LLM owns and maintains; the user curates sources and asks questions, and the LLM does the bookkeeping. ## Nanobot adaptation — read this first This skill is ported to run on this nanobot. The generic docs below describe a project-local wiki; the rules here pin it to this nanobot and override anything that conflicts. **⚠️ On any add/save/ingest request: capture only.** Write the source to `cml/raw/.md`, confirm in one short line, and **STOP** — no reads, no scripts, no compiles. Full rules and the escape hatch in "Capture vs compile" below — read it before acting on any such request. - **One wiki, fixed location.** This nanobot has exactly one wiki, at `cml/wiki/`, with raw sources at `cml/raw/` — both relative to your working directory (the workspace). Wherever the docs below say `wiki/` or `/wiki/`, read `cml/wiki/`; `raw/` means `cml/raw/`. - **Run scripts with `uv run`, never bare `python`.** Always `uv run skills/llm-wiki/scripts/