Karpathy LLM Wiki
Astro-Han/karpathy-llm-wiki
A skill your agent uses when building or maintaining a personal LLM-powered knowledge base.
Capture-authoring protocol for the main agent. An agent skill from toolboxmd/karpathy-wiki.
$ npx skills add toolboxmd/karpathy-wiki --skill karpathy-wiki-capture -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install toolboxmd/karpathy-wiki karpathy-wiki-capture --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/toolboxmd/karpathy-wiki.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/karpathy-wiki-capture .claude/skills/karpathy-wiki-capture && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "karpathy-wiki-capture" agent skill from https://github.com/toolboxmd/karpathy-wiki/tree/main/skills/karpathy-wiki-capture into .claude/skills/karpathy-wiki-capture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "karpathy-wiki-capture", 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.
$skill-installer install https://github.com/toolboxmd/karpathy-wiki/tree/main/skills/karpathy-wiki-captureType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add toolboxmd/karpathy-wiki --skill karpathy-wiki-capture -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install toolboxmd/karpathy-wiki karpathy-wiki-capture --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/toolboxmd/karpathy-wiki.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/karpathy-wiki-capture .agents/skills/karpathy-wiki-capture && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "karpathy-wiki-capture" agent skill from https://github.com/toolboxmd/karpathy-wiki/tree/main/skills/karpathy-wiki-capture into .agents/skills/karpathy-wiki-capture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "karpathy-wiki-capture", 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 toolboxmd/karpathy-wiki --skill karpathy-wiki-capture -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install toolboxmd/karpathy-wiki karpathy-wiki-capture --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/toolboxmd/karpathy-wiki.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/karpathy-wiki-capture .cursor/skills/karpathy-wiki-capture && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "karpathy-wiki-capture" agent skill from https://github.com/toolboxmd/karpathy-wiki/tree/main/skills/karpathy-wiki-capture into .cursor/skills/karpathy-wiki-capture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "karpathy-wiki-capture", 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.
$ gemini skills install https://github.com/toolboxmd/karpathy-wiki.git --path skills/karpathy-wiki-capture--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add toolboxmd/karpathy-wiki --skill karpathy-wiki-capture -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install toolboxmd/karpathy-wiki karpathy-wiki-capture --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/toolboxmd/karpathy-wiki.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/karpathy-wiki-capture .gemini/skills/karpathy-wiki-capture && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "karpathy-wiki-capture" agent skill from https://github.com/toolboxmd/karpathy-wiki/tree/main/skills/karpathy-wiki-capture into .gemini/skills/karpathy-wiki-capture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "karpathy-wiki-capture", 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 toolboxmd/karpathy-wiki karpathy-wiki-captureInstalls 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 toolboxmd/karpathy-wiki --skill karpathy-wiki-capture -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/toolboxmd/karpathy-wiki.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/karpathy-wiki-capture .github/skills/karpathy-wiki-capture && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "karpathy-wiki-capture" agent skill from https://github.com/toolboxmd/karpathy-wiki/tree/main/skills/karpathy-wiki-capture into .github/skills/karpathy-wiki-capture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "karpathy-wiki-capture", 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 toolboxmd/karpathy-wiki --skill karpathy-wiki-capture -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install toolboxmd/karpathy-wiki karpathy-wiki-capture --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/toolboxmd/karpathy-wiki.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/karpathy-wiki-capture .opencode/skills/karpathy-wiki-capture && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "karpathy-wiki-capture" agent skill from https://github.com/toolboxmd/karpathy-wiki/tree/main/skills/karpathy-wiki-capture into .opencode/skills/karpathy-wiki-capture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "karpathy-wiki-capture", 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-wiki-captureCapture-authoring protocol for the main agent. An agent skill from toolboxmd/karpathy-wiki.
Karpathy Wiki Capture is an agent skill from toolboxmd/karpathy-wiki. Capture-authoring protocol for the main agent. Read on demand when a TRIGGER fires (per using-karpathy-wiki/SKILL.md). Defines how to format a capture, how to invoke bin/wiki capture, body-size floors, and the subagent-report workflow.
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/capture-schema.md`).
It sits in Knowledge Management, covering LLM wikis. The repository describes itself as: Karpathy Wiki - Claude Code skills for building persistent, compounding knowledge bases. Based on Andrej Karpathy's LLM Wiki pattern. The licence is MIT.
Read from SKILL.md and the folder at commit 67967f4. 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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).
From 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 Wiki Capture loads about 2k tokens when it runs, and up to ~3.3k if it reads all its reference files. Until then it costs about 65 tokens; SKILL.md has 945 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); files beside SKILL.md are not scanned.
The full file from toolboxmd/karpathy-wiki at commit 67967f4, republished under its MIT licence (© toolboxmd). 945 words, ~1,956 tokens.
.claude/skills/karpathy-wiki-capture/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.You loaded this skill because a TRIGGER fired (per the loader). Your job
is to write a capture file (or move a file into inbox/ for raw-direct
ingest), then return to the user's task.
All chat-driven captures go through ONE command:
echo "$BODY" | bin/wiki capture \
--title "<one-line title>" \
--kind chat-only \
--suggested-action create|update|augmentFor chat-attached (a real file accompanies the conversation), pass the
absolute path of that file via --evidence-path:
echo "$BODY" | bin/wiki capture \
--title "<one-line title>" \
--kind chat-attached \
--suggested-action create|update|augment \
--evidence-path /absolute/path/to/source/file.extOr for long bodies:
bin/wiki capture \
--title "<one-line title>" \
--kind chat-only \
--suggested-action create \
--body-file /tmp/body.md--evidence-path is REQUIRED for --kind chat-attached and
--kind raw-direct, REJECTED for --kind chat-only. The path lands
verbatim in the capture's evidence: frontmatter and propagates to
the manifest's origin field — the iron-rule contract that lets the
ingester trace every wiki page back to its source.
bin/wiki capture handles wiki resolution (which wiki the capture goes
to), prompts the user for setup if needed, writes every capture file,
and asks the bounded dispatcher to drain the target queue. You do NOT
write to .wiki-pending/ directly or launch a provider yourself.
Triggers are listed in the loader (using-karpathy-wiki/SKILL.md).
This skill assumes a trigger has fired and you're now writing.
See references/capture-schema.md for the canonical frontmatter
schema. Key fields you set when invoking bin/wiki capture:
--title: one-line title (becomes filename slug + capture title).--kind: chat-only (no file evidence) | chat-attached (file +
conversation delta) | raw-direct (you do NOT write this; it's for
drop-zone ingestion).--suggested-action: create (new page) | update (replace
existing) | augment (add to existing).The body is read from stdin OR --body-file <path>.
Per references/capture-schema.md:
| Kind | Floor | What goes in the body |
|---|---|---|
chat-only | 1500 b | Every durable claim, exact details (URLs, version numbers, error messages), every decision-with-rationale, every gotcha, sources cited. |
chat-attached | 1000 b | The conversation-delta — what the conversation added that the file doesn't cover. The file is the bulk; you owe the delta in full. |
raw-direct | none | You don't write raw-direct bodies. The SessionStart hook or wiki ingest-now auto-generates them when a file appears in inbox/. |
A chat-only body must clear 1500 bytes with content, not filler. Required:
NOT in the body:
If the ingester rejects your capture (needs_more_detail: true), expand the
re-queued body in place, remove both needs_more_detail and
needs_more_detail_reason from frontmatter, and run
wiki tick <wiki> --source manual. Marked captures remain durable but are not
automatically retried. Do NOT ignore the rejection.
When a research subagent returns a file with durable findings, the report IS the capture. Move the file to <wiki>/inbox/:
mv <subagent-report-path> <wiki>/inbox/<basename>
wiki ingest-now <wiki> # or wait for next SessionStartwiki ingest-now triggers the same drift-scan + drain that SessionStart runs, but on demand. Use this when the user is still in the active session and wants the report ingested before they close the terminal.
Subagent-report bodies frequently exceed several KB; rewriting them as a chat-only capture body wastes tokens AND produces an inferior wiki page (the body summarizes what the file already says).
If the user asks to change the wiki mode for this directory:
wiki use project # captures go to ./wiki/ only
wiki use main # captures go to ~/wiki/ only
wiki use both # capture locally; selectively promote reusable knowledgeConfirm in one line. The mode is persisted in <cwd>/.wiki-config
(project or both) or <cwd>/.wiki-mode (main-only). See
references/capture-schema.md and the v2.4 spec for details.
both is project-first. The original capture is written only to ./wiki/.
During ingest, the project ingester keeps project-specific knowledge local and
uses the deterministic promotion helper only for reusable cross-project
knowledge. The original capture is never copied verbatim to both queues.
If bin/wiki capture aborts with stderr containing cwd unconfigured
wiki use project|main|both nudge, the cwd has no .wiki-config
or .wiki-mode. The body is preserved at the orphan path printed in
the same stderr. Do NOT silently re-route or auto-pick — surface the
choice to the user verbatim:"This directory isn't configured for the wiki yet. Should this capture go to: (a) a project wiki at
./wiki/(scoped to this repo), (b) the main wiki at~/wiki/(cross-project), or (c) both?"
After the user picks, run wiki use project|main|both and re-capture
either by re-piping the body or by passing the orphan path:
bin/wiki capture --title "..." --kind chat-only \
--suggested-action create --body-file <orphan-path>Pre-0.2.9 the CLI silently auto-selected main-only and wrote
<cwd>/.wiki-mode, stealing the choice from the user. The new abort
makes the choice explicit.
Reply to the user FIRST. The user is waiting; capture mechanics are
not. After your reply emits, write any captures whose triggers fired
(via bin/wiki capture).
Each required bin/wiki capture command must return success before the
foreground turn ends. Once it succeeds, the durable queue belongs to the
scheduler and detached worker. Do not wait for .wiki-pending/ to drain and
do not ingest queued work from the foreground session.
If the capture command fails, handle or surface that error before stopping. An empty queue cannot prove that no capture trigger was missed, so queue state is not a valid foreground turn-closure gate.
karpathy-wiki-ingest/SKILL.md and is
loaded by the detached runtime ingester only. The main agent never reads it.using-karpathy-wiki/SKILL.md) — single source of truth.© toolboxmd, 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 1 other file (references) in skills/karpathy-wiki-capture of toolboxmd/karpathy-wiki.
Open the folder on GitHubat commit 67967f4
Karpathy Wiki Capture 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 Wiki Capture this skilltoolboxmd/karpathy-wiki | 105 | — | ~2k | Automated safety check: Pass | MIT | |
| Karpathy LLM WikiAstro-Han/karpathy-llm-wiki | 2.4k | — | ~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 |
Astro-Han/karpathy-llm-wiki
A skill your agent uses when building or maintaining a personal LLM-powered knowledge base.
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.
toolboxmd/karpathy-wiki
Detached doctor only. An agent skill from toolboxmd/karpathy-wiki.
toolboxmd/karpathy-wiki
Detached ingester only. An agent skill from toolboxmd/karpathy-wiki.
toolboxmd/karpathy-wiki
Auto-loaded by the SessionStart hook. An agent skill from toolboxmd/karpathy-wiki.
toolboxmd/karpathy-wiki
Read protocol for the main agent. An agent skill from toolboxmd/karpathy-wiki.
Categories
Capture-authoring protocol for the main agent. An agent skill from toolboxmd/karpathy-wiki. Karpathy Wiki Capture is an agent skill from toolboxmd/karpathy-wiki. Capture-authoring protocol for the main agent.
Karpathy Wiki Capture fits situations like: fires (per using-karpathy-wiki/SKILL.md); tasks that involve LLM wikis.
Run `npx skills add toolboxmd/karpathy-wiki --skill karpathy-wiki-capture -a claude-code`. Or copy the skill folder (skills/karpathy-wiki-capture in toolboxmd/karpathy-wiki) into .claude/skills/karpathy-wiki-capture in your project. Claude Code loads it when a task matches its description.
Run `npx skills add toolboxmd/karpathy-wiki --skill karpathy-wiki-capture -a codex`. Or copy the skill folder (skills/karpathy-wiki-capture in toolboxmd/karpathy-wiki) into .agents/skills/karpathy-wiki-capture 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 toolboxmd/karpathy-wiki --skill karpathy-wiki-capture -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-wiki-capture, .gemini/skills/karpathy-wiki-capture, .github/skills/karpathy-wiki-capture and .opencode/skills/karpathy-wiki-capture in your project.
SKILL.md names no scripts, command-line tools or credentials: Karpathy Wiki Capture is instructions for the agent only.
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. Review the folder before installing.
Karpathy Wiki Capture is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 7.8k 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 1.3k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Karpathy Wiki Capture: Karpathy LLM Wiki (Astro-Han/karpathy-llm-wiki, 2.4k stars), LLM Wiki (lewislulu/llm-wiki-skill, 655 stars), Wiki Builder (rohitg00/pro-workflow, 2.9k stars) and Codex History Ingest (Ar9av/obsidian-wiki, 3.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
toolboxmd (a GitHub organization) maintains it in toolboxmd/karpathy-wiki, which has 105 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 7, 2026.
Source: toolboxmd/karpathy-wiki on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.