LLM Wiki
lewislulu/llm-wiki-skill
Build and maintain a Karpathy-style LLM knowledge base — a self-compiling Obsidian markdown wiki where an Agent ingests raw sources, compiles cross-linked concept/entity/summary pages, answers…
A skill your agent uses when building or maintaining a personal LLM-powered knowledge base.
$ npx skills add Astro-Han/karpathy-llm-wiki --skill karpathy-llm-wiki -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Astro-Han/karpathy-llm-wiki karpathy-llm-wiki --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
Claude Code skills documentation · loads skills from .claude/skills/
Install the "karpathy-llm-wiki" agent skill from https://github.com/Astro-Han/karpathy-llm-wiki/tree/main into .claude/skills/karpathy-llm-wiki/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "karpathy-llm-wiki", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Astro-Han/karpathy-llm-wiki --skill karpathy-llm-wiki -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Astro-Han/karpathy-llm-wiki karpathy-llm-wiki --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "karpathy-llm-wiki" agent skill from https://github.com/Astro-Han/karpathy-llm-wiki/tree/main into .agents/skills/karpathy-llm-wiki/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "karpathy-llm-wiki", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Astro-Han/karpathy-llm-wiki --skill karpathy-llm-wiki -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Astro-Han/karpathy-llm-wiki karpathy-llm-wiki --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "karpathy-llm-wiki" agent skill from https://github.com/Astro-Han/karpathy-llm-wiki/tree/main into .cursor/skills/karpathy-llm-wiki/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "karpathy-llm-wiki", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Astro-Han/karpathy-llm-wiki --skill karpathy-llm-wiki -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Astro-Han/karpathy-llm-wiki karpathy-llm-wiki --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "karpathy-llm-wiki" agent skill from https://github.com/Astro-Han/karpathy-llm-wiki/tree/main into .gemini/skills/karpathy-llm-wiki/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "karpathy-llm-wiki", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Astro-Han/karpathy-llm-wiki karpathy-llm-wikiInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Astro-Han/karpathy-llm-wiki --skill karpathy-llm-wiki -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "karpathy-llm-wiki" agent skill from https://github.com/Astro-Han/karpathy-llm-wiki/tree/main into .github/skills/karpathy-llm-wiki/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "karpathy-llm-wiki", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Astro-Han/karpathy-llm-wiki --skill karpathy-llm-wiki -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Astro-Han/karpathy-llm-wiki karpathy-llm-wiki --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "karpathy-llm-wiki" agent skill from https://github.com/Astro-Han/karpathy-llm-wiki/tree/main into .opencode/skills/karpathy-llm-wiki/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "karpathy-llm-wiki", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
karpathy-llm-wikiA skill your agent uses when building or maintaining a personal LLM-powered knowledge base.
Karpathy LLM Wiki is an agent skill from Astro-Han/karpathy-llm-wiki. Use when building or maintaining a personal LLM-powered knowledge base. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki quality, 'add to wiki', 'what do I know about', or any mention of 'LLM wiki' or 'Karpathy wiki'.
Its SKILL.md is about 3.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 20 other files, including scripts, reference files and assets (for example `README.md`, `examples/2026-03-19-claude-code-statusline-landscape.md` and `examples/README.md`).
It sits in Knowledge Management, covering LLM wikis. The repository describes itself as: Agent Skills-compatible LLM wiki for Claude Code, Cursor, and Codex. Build a Karpathy-style knowledge base from raw sources, citations, and linting. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit eafcc77. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
python3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Karpathy LLM Wiki loads about 3.6k tokens when it runs, and up to ~4.3k if it reads all its reference files. Until then it costs about 66 tokens; SKILL.md has 1,918 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from Astro-Han/karpathy-llm-wiki at commit eafcc77, republished under its MIT licence (© Astro-Han). 1,918 words, ~3,564 tokens.
.claude/skills/karpathy-llm-wiki/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.Build and maintain a personal knowledge base using LLMs. You manage two directories: raw/ (immutable source material) and wiki/ (compiled knowledge articles). Sources go into raw/, you compile them into wiki articles, and the wiki compounds over time.
Core ideas from Karpathy:
Three layers, all under the user's project root:
raw/ — Immutable source material. You read, never modify. Organized by topic subdirectories (e.g., raw/machine-learning/).
wiki/ — Compiled knowledge articles. You have full ownership. Organized by topic subdirectories, one level only: wiki/<topic>/<article>.md. Contains two special files:
wiki/index.md — Global index. One row per article, grouped by topic, with link + summary + Updated date.wiki/log.md — Append-only operation log.SKILL.md (this file) — Schema layer. Defines structure and workflow rules.
Templates live in references/ relative to this file. Read them when you need the exact format for raw files, articles, archive pages, or the index.
Triggers only on the first Ingest. Check whether raw/ and wiki/ exist. Create only what is missing; never overwrite existing files:
raw/ directory (with .gitkeep)wiki/ directory (with .gitkeep)wiki/index.md — heading # Knowledge Base Index, empty bodywiki/log.md — heading # Wiki Log, empty bodyIf Query or Lint cannot find the wiki structure, tell the user: "Run an ingest first to initialize the wiki." Do not auto-create.
Every load-bearing fact in wiki/ — numbers, dates, direct quotes — exists verbatim in the raw/ files linked by that article's Raw field. Compile establishes this invariant (locate before you write); lint verifies it (scripts/check_evidence.py greps the high-signal literals — suffixed or large numbers, decimals, ISO dates, longer quotes — in the linked raws; the compile-time locate-before-write rule covers the rest). Because raw/ is immutable, a verified article stays verified; the script re-checks the whole wiki in seconds, so there is no incremental state to maintain.
Fetch a source into raw/, then compile it into wiki/ — unless the source adds nothing new. Always fetch; whether to compile depends on the triage below.
Get the source content using whatever web or file tools your environment provides. If nothing can reach the source, ask the user to paste it directly.
Pick a topic directory. Check existing raw/ subdirectories first; reuse one if the topic is close enough. Create a new subdirectory only for genuinely distinct topics.
Save as raw/<topic>/YYYY-MM-DD-descriptive-slug.md.
descriptive-slug.md). The metadata Published field still appears; set it to Unknown.descriptive-slug-2.md).See references/raw-template.md for the exact format.
After saving the raw file and before editing wiki/, search wiki/ with the source's key entities and synonyms, then state the disposition:
New, Update, and Disputed may be combined. No material is exclusive.
Determine where the new content belongs:
These are not mutually exclusive. A single source may warrant merging into one article while also creating a separate article for a distinct concept it introduces. In all cases, check for factual conflicts: if the new source contradicts existing content, mark the contested claims with a Status: Disputed block (see references/article-template.md). When the conflicting content lives in separate articles, mark both and cross-link them.
Source fidelity. Every number, date, and direct quote must be located in the raw file (grep or read) before it is written; write the value exactly as found — if the source says 42K, write 42K, not 42,000. Derived values (sums, deltas, counts you computed) must show their components so each component is findable in raw. If you cannot locate a value, do not write its exact form; drop it or state it without precision.
See references/article-template.md for article format. Key points:
wiki/<topic>/ use ../../raw/<topic>/<file>.md (two levels up to project root).After the primary article, check for ripple effects. Do not rely on the index alone: search the full wiki for the source's key entities, aliases, and the claims it touches, then update every non-archive article whose content is materially affected. Each updated file gets its Updated date refreshed.
When the new source supersedes or contradicts an existing claim, keep the old claim for the record but mark it with a Status block (see references/article-template.md): Outdated when something newer replaces it, Disputed when sources disagree. Never silently rewrite history.
Archive pages are never cascade-updated (they are point-in-time snapshots).
Update wiki/index.md: add or update entries for every touched article. When adding a new topic section, include a one-line description. The Updated date reflects when the article's knowledge content last changed, not the file system timestamp. See references/index-template.md for format.
Append to wiki/log.md:
## [YYYY-MM-DD] ingest | <primary article title>
- Disposition: <New; Update; Disputed>
- Raw: <raw file path>
- Updated: <cascade-updated article title>Omit - Updated: lines when no cascade updates occur. For No material, log and stop. Use a project-root-relative raw path (for example, raw/topic/file.md):
## [YYYY-MM-DD] ingest | no material: <project-root-relative raw file path>
- Disposition: No materialThe exact no-material heading is the machine-readable inventory key; the Disposition line remains required for a complete human-readable log entry.
Use only when the user explicitly asks to research a topic or gather sources into the wiki. Ordinary knowledge questions go to Query, which never writes files.
Search the wiki and answer questions. Examples of triggers:
wiki/index.md to locate candidate articles, then full-text search wiki/ with the topic's key terms and their synonyms. Never claim the wiki has no relevant content until both the index and the full-text search come back empty — and say that you searched.[Article Title](wiki/topic/article.md) (project-root-relative paths for in-conversation citations; within wiki/ files, use paths relative to the current file).When the user explicitly asks to archive or save the answer to the wiki:
references/archive-template.md. When converting conversation citations to the archive page, rewrite project-root-relative paths (e.g., wiki/topic/article.md) to file-relative paths (e.g., ../topic/article.md or article.md for same-directory).transformer-architectures-overview.md.wiki/index.md. Prefix the Summary with [Archived].wiki/log.md:## [YYYY-MM-DD] query | Archived: <page title>Quality checks on the wiki. Three categories with different authority levels.
Fix these automatically:
Index consistency — compare wiki/index.md against actual wiki/ files (excluding index.md and log.md):
(no summary) placeholder. For Updated, use the article's metadata Updated date if present (for archive pages, the Archived date); otherwise fall back to file's last modified date.[MISSING] in the index. Do not delete the entry; let the user decide.Internal links — for every markdown link in wiki/ article files (body text and Sources metadata), excluding Raw field links (validated by Raw references below), excluding See Also section links (handled by the See Also rule below), and excluding index.md/log.md (handled above):
Raw references — every link in a Raw field must point to an existing raw/ file:
See Also — within each topic directory:
Run these mechanically with python3 <skill-dir>/scripts/check_evidence.py <project-root> (optionally followed by project-root-relative article paths to limit scope). Default scope is the whole wiki; the script is fast. Report findings; never auto-fix facts.
Source fidelity — reported suspects are candidates, not verdicts: derived values and product names may appear. Judge each against the raw context and report only real mismatches.
Evidence errors — articles the script cannot verify (missing Raw field, unresolvable Raw links, or Raw links escaping raw/). These always need a decision, not a fix from the script.
Unreferenced raw files — files logged with a No material disposition are excluded; everything else is a genuine backlog reminder.
These rely on your judgment. Report findings without auto-fixing:
references/article-template.md)Append to wiki/log.md:
## [YYYY-MM-DD] lint | <N> issues found, <M> auto-fixedUnknown when unavailable).wiki/topic/article.md).wiki/index.md and wiki/log.md (a No material ingest updates only the log). Archive (from Query) updates both. Lint updates wiki/log.md (and wiki/index.md only when auto-fixing index entries). Plain queries do not write any files.© Astro-Han, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 15 other files (scripts, references, assets) in the repository root of Astro-Han/karpathy-llm-wiki.
Open the folder on GitHubat commit eafcc77
Karpathy LLM Wiki next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Karpathy LLM Wiki this skillAstro-Han/karpathy-llm-wiki | 2.5k | — | ~3.6k | Automated safety check: Pass | MIT | |
| LLM Wikilewislulu/llm-wiki-skill | 655 | — | ~3.7k | Automated safety check: Pass | None | |
| Wiki Builderrohitg00/pro-workflow | 2.9k | — | ~1k | Automated safety check: Pass | None | |
| Codex History IngestAr9av/obsidian-wiki | 3.5k | — | ~2.2k | Automated safety check: Notes | MIT | |
| Arkon Editnduckmink/arkon | 1.5k | — | ~1.6k | Automated safety check: Pass | Custom licence | |
| Research Wiki Builderdair-ai/dair-academy-plugins | 614 | — | ~1.3k | Automated safety check: Pass | MIT |
lewislulu/llm-wiki-skill
Build and maintain a Karpathy-style LLM knowledge base — a self-compiling Obsidian markdown wiki where an Agent ingests raw sources, compiles cross-linked concept/entity/summary pages, answers…
rohitg00/pro-workflow
Start, structure, and grow a persistent research wiki indexed in pro-workflow's SQLite knowledge base.
Ar9av/obsidian-wiki
Ingest Codex CLI conversation/session history into Obsidian as distilled knowledge.
nduckmink/arkon
Propose or directly apply edits to Arkon wiki pages, including proposing brand new pages.
dair-ai/dair-academy-plugins
Creates and maintains configurable research wikis: scaffold a folder, add sources, compile pages and indexes, and file query answers back.
Egonex-AI/Understand-Anything
Detects a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit relationships and topic clusters.
Categories
A skill your agent uses when building or maintaining a personal LLM-powered knowledge base. Karpathy LLM Wiki is an agent skill from Astro-Han/karpathy-llm-wiki. Use when building or maintaining a personal LLM-powered knowledge base.
Karpathy LLM Wiki fits situations like: maintaining a personal LLM-powered knowledge base; tasks that involve LLM wikis.
Run `npx skills add Astro-Han/karpathy-llm-wiki --skill karpathy-llm-wiki -a claude-code`. Or copy the skill folder (the Astro-Han/karpathy-llm-wiki repository) into .claude/skills/karpathy-llm-wiki in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Astro-Han/karpathy-llm-wiki --skill karpathy-llm-wiki -a codex`. Or copy the skill folder (the Astro-Han/karpathy-llm-wiki repository) into .agents/skills/karpathy-llm-wiki in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Astro-Han/karpathy-llm-wiki --skill karpathy-llm-wiki -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/karpathy-llm-wiki, .gemini/skills/karpathy-llm-wiki, .github/skills/karpathy-llm-wiki and .opencode/skills/karpathy-llm-wiki in your project.
Going by SKILL.md and its folder, Karpathy LLM Wiki needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Karpathy LLM Wiki is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.6k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 722 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Karpathy LLM Wiki: LLM Wiki (lewislulu/llm-wiki-skill, 655 stars), Wiki Builder (rohitg00/pro-workflow, 2.9k stars), Codex History Ingest (Ar9av/obsidian-wiki, 3.5k stars) and Arkon Edit (nduckmink/arkon, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Astro-Han (a GitHub user) maintains it in Astro-Han/karpathy-llm-wiki, which has 2,452 GitHub stars. The repository was last updated on July 23, 2026.
Source: Astro-Han/karpathy-llm-wiki on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.