Agent skill

Karpathy Wiki Capture

by toolboxmd in toolboxmd/karpathy-wiki

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

MITAuto-check passedKnowledge Management

Install Karpathy Wiki Capture

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

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

GitHub CLI
$ gh skill install toolboxmd/karpathy-wiki karpathy-wiki-capture --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-capture .claude/skills/karpathy-wiki-capture && 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-capture
GitHub stars
105
Token cost
~2k tokens
SKILL.md length
945 words
Files
2 (incl. references)
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

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

  • Fires (per using-karpathy-wiki/SKILL.md)
  • SKILL.md covers Single capture entry point, Trigger, Capture file format and Body sufficiency, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve LLM wikis

What it does

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.

When your agent uses it

  • Fires (per using-karpathy-wiki/SKILL.md)
  • Tasks that involve LLM wikis

Example prompts

  • “/karpathy-wiki-capture”

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 (its code samples are bash).

    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 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.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.3k

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). 945 words, ~1,956 tokens.

Download SKILL.mdSave it as .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.
name
karpathy-wiki-capture
description
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.

karpathy-wiki capture

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.

Single capture entry point

All chat-driven captures go through ONE command:

bash
echo "$BODY" | bin/wiki capture \
  --title "<one-line title>" \
  --kind chat-only \
  --suggested-action create|update|augment

For chat-attached (a real file accompanies the conversation), pass the absolute path of that file via --evidence-path:

bash
echo "$BODY" | bin/wiki capture \
  --title "<one-line title>" \
  --kind chat-attached \
  --suggested-action create|update|augment \
  --evidence-path /absolute/path/to/source/file.ext

Or for long bodies:

bash
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.

Trigger

Triggers are listed in the loader (using-karpathy-wiki/SKILL.md). This skill assumes a trigger has fired and you're now writing.

Capture file format

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>.

Body sufficiency

Per references/capture-schema.md:

KindFloorWhat goes in the body
chat-only1500 bEvery durable claim, exact details (URLs, version numbers, error messages), every decision-with-rationale, every gotcha, sources cited.
chat-attached1000 bThe conversation-delta — what the conversation added that the file doesn't cover. The file is the bulk; you owe the delta in full.
raw-directnoneYou 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:

  • Every durable CLAIM — fact, number, version, commit, percentage, decision.
  • Every CONCRETE DETAIL the ingester cannot guess — exact URLs, package names, error messages, command snippets, code examples (5-15 lines), numeric thresholds, version ranges.
  • Every DECISION made WITH its rationale — "we chose X because Y failed on Z" is a complete unit. "we chose X" alone is not.
  • Every CONTRADICTION, GOTCHA, OR CAVEAT observed.
  • SOURCES — doc URLs, arxiv IDs, GitHub repos with star counts as-of the session.

NOT in the body:

  • Pleasantries, meta-commentary, "let me check", "good question".
  • Process over output: wrong turns, reasoning trail, "I thought X but then Y". Keep the resolution; drop the detour.
  • The user's questions verbatim — they're context, not content. Capture the ANSWER, not the question.

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.

Subagent reports — DO NOT write a capture body

When a research subagent returns a file with durable findings, the report IS the capture. Move the file to <wiki>/inbox/:

bash
mv <subagent-report-path> <wiki>/inbox/<basename>
wiki ingest-now <wiki>          # or wait for next SessionStart

wiki 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).

Show full SKILL.md (365 more words)Show less

Mode change

If the user asks to change the wiki mode for this directory:

bash
wiki use project    # captures go to ./wiki/ only
wiki use main       # captures go to ~/wiki/ only
wiki use both       # capture locally; selectively promote reusable knowledge

Confirm 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.

Cwd unconfigured (0.2.9)

If bin/wiki capture aborts with stderr containing cwd unconfigured

  • a 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:

bash
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.

Order matters: reply first, then capture

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).

Durable handoff before you stop

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.

What's NOT in this skill

  • The ingester's behavior (orientation, page format, manifest protocol). That lives in karpathy-wiki-ingest/SKILL.md and is loaded by the detached runtime ingester only. The main agent never reads it.
  • Iron laws and announce-line contract. Those live in the loader (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

Files

SKILL.md and 1 other file (references) in skills/karpathy-wiki-capture of toolboxmd/karpathy-wiki.

  • SKILL.md
  • references/capture-schema.md

Open the folder on GitHubat commit 67967f4

Compare with similar skills

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.

Karpathy Wiki Capture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Karpathy Wiki Capture this skilltoolboxmd/karpathy-wiki105—~2kAutomated 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
Arkon Editnduckmink/arkon1.5k—~1.6kAutomated safety check: PassCustom licence

Similar skills

  • 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
  • Research Wiki Builder

    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.

    614 GitHub stars~1.3k tokensUpdated 2 mo ago
    Knowledge ManagementAuto-check passed

More from toolboxmd/karpathy-wiki

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

    toolboxmd/karpathy-wiki

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

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

Questions about Karpathy Wiki Capture

What does Karpathy Wiki Capture do?

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.

When should I use Karpathy Wiki Capture?

Karpathy Wiki Capture fits situations like: fires (per using-karpathy-wiki/SKILL.md); tasks that involve LLM wikis.

How do I install Karpathy Wiki Capture in Claude Code?

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.

How do I install Karpathy Wiki Capture in Codex?

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.

Can I use Karpathy Wiki Capture 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-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.

What does Karpathy Wiki Capture need to run?

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

Does Karpathy Wiki Capture 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 Capture 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 Capture use?

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.

How many tokens does Karpathy Wiki Capture use?

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.

What are the alternatives to Karpathy Wiki Capture?

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.

Who maintains Karpathy Wiki Capture?

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.