nanochat: Skill for Claude Code

.claude/skills/read-arxiv-paper/SKILL.md

read-arxiv-paper is a skill for Claude Code from karpathy/nanochat. It costs 21 tokens per session (474 once invoked), scanned A, original, MIT.

A procedure for reading research papers hosted on arXiv, an online repository where researchers share scientific papers. It fetches the paper’s LaTeX source, follows related source files, and writes a Markdown summary.

In plain words
What is it for?
Use it when given an arXiv paper URL and you need its source read, its contents understood, and a summary saved as a Markdown file.
Why use it?
It avoids relying only on a PDF view and helps the agent inspect the paper’s original structured text, including content split across multiple source files.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is karpathy/nanochat's own configuration. It tells Claude Code how to work on nanochat itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nanochat configures →

About the project

nanochat is a small experimental codebase for training and running language models, covering tokenization, pretraining, fine-tuning, evaluation, and inference. Researchers and developers use it to train GPT-style models on a single GPU node and interact with them through a command line.

karpathy/nanochat · 60,315 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to karpathy/nanochat. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/karpathy/nanochat/master/.claude/skills/read-arxiv-paper/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/karpathy/nanochat

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for read-arxiv-paper

README.md
[![agentmods](https://agentmods.dev/badge/skills/karpathy/nanochat/read-arxiv-paper/github.svg)](https://agentmods.dev/skills/karpathy/nanochat/read-arxiv-paper)
Your own site
<a href="https://agentmods.dev/skills/karpathy/nanochat/read-arxiv-paper"><img src="https://agentmods.dev/badge/skills/karpathy/nanochat/read-arxiv-paper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for read-arxiv-paper

Your own site · 80×15
<a href="https://agentmods.dev/skills/karpathy/nanochat/read-arxiv-paper"><img src="https://agentmods.dev/badge/skills/karpathy/nanochat/read-arxiv-paper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 474 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk warn 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00474
Opus 5.5 $0.00008 $0.00190
Sonnet 5.5 $0.00004 $0.00095
Haiku 4.5 $0.00002 $0.00047

Measured 2mo ago against content hash 5b7a49e740ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

read-arxiv-paper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/read-arxiv-paper/SKILL.md · 41 lines

What it actually says

You will be given a URL of an arxiv paper, for example:

https://www.arxiv.org/abs/2601.07372

Part 1: Normalize the URL

The goal is to fetch the TeX Source of the paper (not the PDF!), the URL always looks like this:

https://www.arxiv.org/src/2601.07372

Notice the /src/ in the url. Once you have the URL:

Part 2: Download the paper source

Fetch the url to a local .tar.gz file. A good location is ~/.cache/nanochat/knowledge/{arxiv_id}.tar.gz.

(If the file already exists, there is no need to re-download it).

Part 3: Unpack the file in that folder

Unpack the contents into ~/.cache/nanochat/knowledge/{arxiv_id} directory.

Part 4: Locate the entrypoint

Every latex source usually has an entrypoint, such as main.tex or something like that.

Part 5: Read the paper

Once you've found the entrypoint, Read the contents and then recurse through all other relevant source files to read the paper.

Part 6: Report

Once you've read the paper, produce a summary of the paper into a markdown file at ./knowledge/summary_{tag}.md. Notice that 1) use the local knowledge directory here (it's easier for me to open and reference here), not in ~/.cache, and 2) generate some reasonable tag like e.g. conditional_memory or whatever seems appropriate given the paper. Probably make sure that the tag doesn't exist yet so you're not overwriting files.

As for the summary itself, remember that you're processing this paper within the context of the nanochat repository, so most often we will be interested in how to apply the paper and its lessons to the nanochat project. Therefore, you should feel free to "remind yourself" of the related nanochat code by reading the relevant parts, and then explicitly make the connection of how this paper might relate to nanochat or what are things we might be inspired about or try.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 41 lines · 21 tokens per session scan A 5b7a49e740ab

Subscribe to this mod's changes

read-arxiv-paper is a skill published in the GitHub repository karpathy/nanochat (60,315 stars, last pushed 2mo ago), licensed MIT. It adds 21 tokens to every session and 474 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

read-arxiv-paper compared with skills from other repositories

read-arxiv-paper next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
read-arxiv-paperkarpathy/nanochatSkill60k2mo agoMITA21Claude Code
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill35k2d agoApache-2.0A123Claude Code
exploratory-data-analysisK-Dense-AI/scientific-agent-skillsSkill56k4d agoMITA83Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill56k4d agoMITA44Claude Code
phylogeneticsK-Dense-AI/scientific-agent-skillsSkill56k4d agoMITA71Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill33ktodayMITA43Claude Code, Codex
mapping-to-snomedmaziyarpanahi/openmedSkill5.8kyesterdayApache-2.0A205Claude Code