Compiles and maintains a persistent LLM-written markdown wiki between immutable raw sources and answers—the Karpathy LLM Knowledge Base pattern. The agent writes and maintains the wiki; the human curates sources and reads it. Knowledge compounds instead of being re-derived each query. Triggers: llm wiki, persistent wiki, personal knowledge base, wiki maintenance, ingest sources, compound knowledge, index.md, log.md, Obsidian wiki, cross-references, Karpathy wiki pattern, compile wiki, knowledge base. Uses: Read, Glob, Grep, file edits, optional WebSearch, AskUserQuestion when schema or goals are ambiguous. Outputs: updated wiki pages, index, append-only log, citations on query, filed answers, visual outputs. Do NOT use for: mutating raw sources, one-off chat answers with no wiki artifact, or replacing a user-defined wiki schema without reading it first.
94
92%
Does it follow best practices?
Impact
96%
0.97xAverage score across 3 eval scenarios
Passed
No known issues
Build and maintain a structured, interlinked markdown wiki that sits between curated raw sources and questions. The agent "compiles" raw source material into wiki pages—summaries, concept articles, entity pages, cross-links—so knowledge compounds rather than being rediscovered on every query. The human curates sources and reads the wiki; the agent writes and maintains it.
Directory layout is defined by the user's schema (often a file such as AGENTS.md, CLAUDE.md, or a dedicated wiki config). This skill defines behaviors, not fixed paths—always read the schema first.
Companion rules (detail): index-log conventions, optional tooling.
AskUserQuestion whether to create a minimal one (paths for raw sources, wiki root, index and log filenames, conventions). Do not invent large directory trees without confirmation.index.md first before reading any topic pages—use it to discover which pages to read. Then drill into linked pages. Answer with wiki-backed citations (page paths or section anchors). Always file the answer as a durable wiki page (new page or section) so the exploration compounds, in addition to any standalone output the user requested.ingest, query, or lint—never synonyms like "add", "update", "answer", "comparison", "audit", "check", or "review". Format:
## [YYYY-MM-DD] ingest | <title>## [YYYY-MM-DD] query | <title>## [YYYY-MM-DD] lint | <title>| Layer | Role | Who edits |
|---|---|---|
| Raw sources | Articles, papers, repos, datasets, images—evidence | Human curates; agent reads only |
| Wiki | Summaries, entity/topic pages, concept articles, synthesis, backlinks, visualizations | Agent writes and maintains; human reads and reviews |
| Schema | Where things live, naming, categories, workflows | Human and agent co-evolve |
wiki/log.md using keyword ingest: ## [YYYY-MM-DD] ingest | <short title> followed by bullets listing touched files.wiki/index.md first—always start here to discover which topic pages exist and where they are. Do not jump directly to topic files.wiki/topics/foo.md) and raw source paths when citing evidence.wiki/topics/ or wiki/comparisons/). Update wiki/index.md with a link and one-line description for the new page. If the user also requested a standalone output file, produce that too—but always create the wiki page regardless.wiki/log.md using keyword query: ## [YYYY-MM-DD] query | <short title>WebSearch to impute missing data or suggest sources—do not fabricate citations).wiki/log.md using keyword lint: ## [YYYY-MM-DD] lint | <short title>Actual paths and categories come from the schema. For heading patterns, grep-friendly log lines, and index shape, see index-log-conventions.
Schema says: Wiki at notes/wiki/, raw at notes/raw/, index notes/wiki/index.md, log notes/wiki/log.md.
User: "Ingest notes/raw/2026-04-06-neural-plasticity.md."
Agent actions:
notes/wiki/topics/neural-plasticity.md, update notes/wiki/people/<researcher>.md if mentioned, and add a "See also" from notes/wiki/overview.md if that page exists.index.md with links and one-line descriptions for new or changed pages.log.md: ## [2026-04-06] ingest | neural-plasticity plus bullets listing touched files.notes/wiki/topics/sleep-and-memory.md.This example satisfies: raw immutability, multi-page integration, index + log updates, and contradiction handling.
User: "Compare neural plasticity vs. synaptic pruning for my review. Save the comparison as comparison.md."
Agent actions:
notes/wiki/index.md first to find relevant topic pages.notes/wiki/topics/plasticity-vs-pruning.md (durable wiki page). Also create comparison.md at the workspace root as the user requested.notes/wiki/index.md with a link and one-line description for the new wiki page.notes/wiki/log.md: ## [2026-04-06] query | plasticity vs pruning plus bullets listing the new page and pages consulted.This example satisfies: index-first file access, wiki-backed citations, durable answer filed into wiki, standalone output also produced, index updated, and correct query log keyword.
See optional-tooling for local search (e.g. qmd), Obsidian-adjacent options, and git—never assumed unless the user says so.
At small scale (~100 articles, ~400K words), the index + grep approach works well: the agent reads the index to navigate, follows links, and synthesizes answers without needing vector search or RAG. As the wiki grows, consider layering in additional tools (see optional tooling): local search engines over the wiki, CLI tools the agent can invoke for larger queries, or even synthetic data generation and finetuning to embed wiki knowledge into model weights. But always start simple—the index-first pattern is surprisingly effective.
AGENTS.md or product docs (use a repo-specific agent-init skill), or to fabricate sources—mark gaps and suggest real sources.75611cd
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.