Agent skill

Karpathy Wiki Read

by toolboxmd in toolboxmd/karpathy-wiki

Read protocol for the main agent. An agent skill from toolboxmd/karpathy-wiki.

MITAuto-check passedKnowledge Management

Install Karpathy Wiki Read

skills CLI
$ npx skills add toolboxmd/karpathy-wiki --skill karpathy-wiki-read -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install toolboxmd/karpathy-wiki karpathy-wiki-read --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/toolboxmd/karpathy-wiki.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/karpathy-wiki-read .claude/skills/karpathy-wiki-read && rm -rf skills-src

Use ~/.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/

Facts

Skill name
karpathy-wiki-read
GitHub stars
105
Token cost
~1.9k tokens
SKILL.md length
1,135 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Read protocol for the main agent. An agent skill from toolboxmd/karpathy-wiki.

  • Works in 2 steps: /schema.md — taxonomy, conventions,… → The relevant //_index.md for the…
  • Tasks that involve LLM wikis
  • SKILL.md covers The 6-step ladder, Cite contract and What goes in this skill — and…
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Karpathy Wiki Read is an agent skill from toolboxmd/karpathy-wiki. Read protocol for the main agent. Load on demand when answering ANY user question (per Iron Rule 4 in using-karpathy-wiki/SKILL.md). Defines the deterministic 6-step orientation ladder for finding wiki coverage of a question, when to inline-read vs spawn an Explore subagent vs fall through to web search, and the cite contract every wiki-grounded answer must satisfy.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management, covering LLM wikis and Web search. 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.

When your agent uses it

  • Tasks that involve LLM wikis
  • Tasks that involve Web search

Example prompts

  • “/karpathy-wiki-read”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. /schema.md — taxonomy, conventions, thresholds.
  2. The relevant //_index.md for the question's apparent topic. If the question crosses categories or you cannot tell which category applies…

What it can do on your machine

Read from SKILL.md and the folder at commit 67967f4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Karpathy Wiki Read loads about 1.9k tokens when it runs. Until then it costs about 97 tokens; SKILL.md has 1,135 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~97
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from toolboxmd/karpathy-wiki at commit 67967f4, republished under its MIT licence (© toolboxmd). 1,135 words, ~1,925 tokens.

Download SKILL.mdSave it as .claude/skills/karpathy-wiki-read/SKILL.md (or your agent's skills folder).
name
karpathy-wiki-read
description
Read protocol for the main agent. Load on demand when answering ANY user question (per Iron Rule 4 in `using-karpathy-wiki/SKILL.md`). Defines the deterministic 6-step orientation ladder for finding wiki coverage of a question, when to inline-read vs spawn an Explore subagent vs fall through to web search, and the cite contract every wiki-grounded answer must satisfy.

karpathy-wiki read

You loaded this skill because the user asked a question (per Iron Rule 4 in the loader: NO ANSWERING ANY USER QUESTION WITHOUT ORIENTING FIRST). Your job is to determine whether the wiki covers the answer, retrieve the coverage, and either cite-and-answer from the wiki or fall through to web search — without ever pre-classifying the question as "wiki-irrelevant."

The 6-step ladder

Every step is deterministic. There is no agent judgement at branch points; each branch is gated on a counted or boolean condition.

Step A.0: Unconfigured workspace

If no wiki root resolves because workspace routing is unconfigured, do not silently choose or initialize one. Skip the impossible schema/index reads and continue directly at Step F. After answering, follow the required capture flow. The capture skill is the sole owner of orphan preservation and the project, main, or both question. Do not add a second setup prompt here.

Malformed or incomplete configured routing is an error, not this branch.

Step A — Orient

Read these files in order:

  1. <wiki>/schema.md — taxonomy, conventions, thresholds.
  2. The relevant <wiki>/<category>/_index.md for the question's apparent topic. If the question crosses categories or you cannot tell which category applies, read <wiki>/index.md (the root MOC).

If you have already oriented earlier in this session, skip to Step B — the schema and index content are already in your working memory. Orientation is once per session.

Step B — Count signal-matching candidates

Extract the question's signal terms: meaningful nouns, proper-noun phrases, technical terms, version numbers, tool names. Skip stopwords ("the", "what", "how", "do", "is").

Walk the relevant _index.md (already in memory from Step A). For each term, count how many entries it substring-matches (case-insensitive) in the title, the one-liner, or the tag list on that line. A term that hits 6 or more entries is a common term (the Explore band). Other hitting terms are rare terms. Do not keep a denylist of tag names; frequency on this index is the only test.

Build the candidate set as follows:

  • If there is at least one rare term, start with pages that match at least one rare term. Otherwise start with pages that match at least one common term.
  • Then, for each common term, drop candidates that do not match it, unless that would leave zero pages; in that case skip that term.

A page matches a term when that term substring-hits its title, one-liner, or tag list.

Count the candidates. Branch on count:

  • 0 candidates → Step F (cold-result path)
  • 1-5 candidates → Step C (inline read)
  • 6+ candidates → Step E (Explore subagent)

The threshold is 5/6, not your judgement. Do not "feel" your way to a different branch.

Step C — Inline read

Read all candidate pages in full. After reading, ask exactly:

Does the union of these pages contain every claim my answer would make?

Branch on the answer:

  • YES → cite + answer (see "Cite contract" below). Done.
  • NO → Step D (gap-fill via web search).

The wiki covered part of the answer; the rest needs fresh information. For each claim your answer would make that the wiki did NOT cover:

  1. Web search for the specific claim (use WebFetch or WebSearch).
  2. Cite the web source(s) for the gap-filled claim.

Compose the answer using BOTH the wiki citations (for what it covered) and the web citations (for what it didn't).

After answering, always write a capture noting the gap. The wiki should grow toward questions it failed to answer fully. The capture's title is the question; the body documents what the wiki had and what was missing. Use karpathy-wiki-capture/SKILL.md for the capture authoring procedure.

Show full SKILL.md (536 more words)Show less
Step E — Explore subagent

Spawn an Explore subagent with this prompt shape:

Question: <the user's question, verbatim>

Wiki path: <wiki absolute path>

Run the orient procedure (read schema.md and the relevant _index.md), identify candidate pages with the same rare/common census as Step B (title, one-liner, tag list; 6 or more hits is common; rare terms select; common terms AND-filter unless that would leave zero pages), read all candidates in full (no cap on page count; your context is isolated), and return a synthesis.

The synthesis must:

  • Cite every page it draws from (path + one-line relevance note per page).
  • Cover the question completely (no truncation for brevity if the answer is genuinely long).
  • Be as terse as possible while preserving every wiki-specific claim, decision, and contradiction. Terseness is a property of the writing, not a target word count.
  • If the wiki does not cover the question, say so explicitly and return an empty page-list. Do NOT attempt to fall through to web search yourself; the main agent handles that.

When the subagent returns:

  • If it returned a synthesis with cited pages → use the synthesis as the answer's basis. Add conversational framing as needed. Cite the pages the subagent cited.
  • If it reported "wiki does not cover" → Step D (web search + capture the gap).

The subagent dispatch maps to the patterns in your ~/.claude/CLAUDE.md Task Delegation rule: this is a context-isolation case where the main agent needs the synthesis, not the page contents.

Step F — Cold result (no candidates or unconfigured workspace)

Zero signal matches in _index.md, or Step A.0 found no configured wiki. The wiki has no coverage for this question.

  1. Web search for the answer (WebFetch or WebSearch).
  2. Cite the web source(s) in the answer.
  3. Always write a capture so the next session is not cold for this topic. The capture's title is the question; the body documents what was found and where (the URLs you searched). Use karpathy-wiki-capture/SKILL.md.

A cold result is not a failure — it is the wiki telling you it has a gap, and you closing the gap.

Cite contract

Every wiki-grounded answer must include citations the user can verify. Format:

  • For each wiki page you drew from: cite as <wiki>/<category>/<page>.md followed by a brief relevance note OR a short quote (≤2 lines).
  • For each web source you drew from: cite as [<title>](<url>).
  • Citations appear inline near the claim they support, not in a footer block, so the user can check each claim against its source.

If your answer makes a claim with no citation, that claim came from training data — flag it explicitly: "(from training data; not in wiki)." This is the only case where uncited claims are allowed, and they must be flagged.

What goes in this skill — and what doesn't

This skill covers the read-from-wiki protocol only. It does NOT cover:

  • Capture authoring (when a question reveals a wiki gap, the capture flow lives in karpathy-wiki-capture/SKILL.md).
  • Page-format conventions, manifest protocol, validator contract — those live in karpathy-wiki-ingest/SKILL.md and apply only to the spawned ingester.
  • Iron laws and the orient-first rule itself — those live in the loader (using-karpathy-wiki/SKILL.md).

If you find yourself needing capture or ingest mechanics while running this protocol, load the appropriate sibling skill — do not improvise.

© toolboxmd, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/karpathy-wiki-read of toolboxmd/karpathy-wiki.

Open the folder on GitHubat commit 67967f4

Compare with similar skills

Karpathy Wiki Read 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.

Karpathy Wiki Read compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Karpathy Wiki Read this skilltoolboxmd/karpathy-wiki105—~1.9kAutomated safety check: PassMIT
Llmwikiatomicstrata/llm-wiki-compiler2.2k—~814Automated safety check: PassMIT
Karpathy LLM WikiAstro-Han/karpathy-llm-wiki2.4k—~3.6kAutomated safety check: PassMIT
LLM Wikilewislulu/llm-wiki-skill655—~3.7kAutomated safety check: PassNone
Wiki Builderrohitg00/pro-workflow2.9k—~1kAutomated safety check: PassNone
Codex History IngestAr9av/obsidian-wiki3.5k—~2.2kAutomated safety check: NotesMIT

Similar skills

  • Llmwiki

    atomicstrata/llm-wiki-compiler

    Build and use a persistent, citation-traceable knowledge wiki from documents, research papers, notes, or project documentation.

    2.2k GitHub stars~814 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Karpathy LLM Wiki

    Astro-Han/karpathy-llm-wiki

    A skill your agent uses when building or maintaining a personal LLM-powered knowledge base.

    2.4k GitHub stars~3.6k tokensUpdated 2 mo ago
    Knowledge ManagementAuto-check passed
  • 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…

    655 GitHub stars~3.7k tokensUpdated 5 mo ago
    Knowledge ManagementAuto-check passed
  • Wiki Builder

    rohitg00/pro-workflow

    Start, structure, and grow a persistent research wiki indexed in pro-workflow's SQLite knowledge base.

    2.9k GitHub stars~1k tokensUpdated 10 days ago
    Knowledge ManagementAuto-check passed
  • Codex History Ingest

    Ar9av/obsidian-wiki

    Ingest Codex CLI conversation/session history into Obsidian as distilled knowledge.

    3.5k GitHub stars~2.2k tokensUpdated yesterday
    Knowledge ManagementAuto-check: notes
  • Arkon Edit

    nduckmink/arkon

    Propose or directly apply edits to Arkon wiki pages, including proposing brand new pages.

    1.5k GitHub stars~1.6k tokensUpdated 4 mo ago
    Knowledge ManagementAuto-check passed

More from toolboxmd/karpathy-wiki

  • Karpathy Wiki Capture

    toolboxmd/karpathy-wiki

    Capture-authoring protocol for the main agent. An agent skill from toolboxmd/karpathy-wiki.

    105 GitHub stars~2k tokensUpdated 2 days ago
    Auto-check passed
  • Karpathy Wiki Doctor

    toolboxmd/karpathy-wiki

    Detached doctor only. An agent skill from toolboxmd/karpathy-wiki.

    105 GitHub stars~489 tokensUpdated 2 days ago
    Auto-check passed
  • Karpathy Wiki Ingest

    toolboxmd/karpathy-wiki

    Detached ingester only. An agent skill from toolboxmd/karpathy-wiki.

    105 GitHub stars~6.8k tokensUpdated 2 days ago
    Auto-check passed
  • Using Karpathy Wiki

    toolboxmd/karpathy-wiki

    Auto-loaded by the SessionStart hook. An agent skill from toolboxmd/karpathy-wiki.

    105 GitHub stars~2.2k tokensUpdated 2 days ago
    Auto-check passed

Questions about Karpathy Wiki Read

What does Karpathy Wiki Read do?

Read protocol for the main agent. An agent skill from toolboxmd/karpathy-wiki. Karpathy Wiki Read is an agent skill from toolboxmd/karpathy-wiki. Read protocol for the main agent.

When should I use Karpathy Wiki Read?

Karpathy Wiki Read fits situations like: tasks that involve LLM wikis; tasks that involve Web search.

How do I install Karpathy Wiki Read in Claude Code?

Run `npx skills add toolboxmd/karpathy-wiki --skill karpathy-wiki-read -a claude-code`. Or copy the skill folder (skills/karpathy-wiki-read in toolboxmd/karpathy-wiki) into .claude/skills/karpathy-wiki-read in your project. Claude Code loads it when a task matches its description.

How do I install Karpathy Wiki Read in Codex?

Run `npx skills add toolboxmd/karpathy-wiki --skill karpathy-wiki-read -a codex`. Or copy the skill folder (skills/karpathy-wiki-read in toolboxmd/karpathy-wiki) into .agents/skills/karpathy-wiki-read in your project. Codex loads it when a task matches its description.

Can I use Karpathy Wiki Read in Cursor, Gemini CLI or GitHub Copilot?

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-read -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-read, .gemini/skills/karpathy-wiki-read, .github/skills/karpathy-wiki-read and .opencode/skills/karpathy-wiki-read in your project.

What does Karpathy Wiki Read need to run?

SKILL.md names no scripts, command-line tools or credentials: Karpathy Wiki Read is instructions for the agent only.

Does Karpathy Wiki Read access the network?

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.

Is Karpathy Wiki Read safe to install?

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.

What licence does Karpathy Wiki Read use?

Karpathy Wiki Read is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Karpathy Wiki Read use?

About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Karpathy Wiki Read?

Skills that share tags, products or a category with Karpathy Wiki Read: Llmwiki (atomicstrata/llm-wiki-compiler, 2.2k stars), Karpathy LLM Wiki (Astro-Han/karpathy-llm-wiki, 2.4k stars), LLM Wiki (lewislulu/llm-wiki-skill, 655 stars) and Wiki Builder (rohitg00/pro-workflow, 2.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Karpathy Wiki Read?

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.