
The read-arxiv-paper skill enables users to fetch, extract, and analyze arXiv research papers by converting paper URLs into accessible TeX source files stored locally and generating contextualized summaries. It is designed for researchers and developers working within the nanochat project who need to quickly understand academic papers and identify their relevance to the codebase. The skill solves the problem of accessing paper source code (rather than PDFs) and automatically synthesizing findings into actionable insights connected to the nanochat project's architecture and goals.
$ npx -y skills add karpathy/nanochat --skill read-arxiv-paper --agent claude-codeInstalls into .claude/skills of the current project.
You will be given a URL of an arxiv paper, for example:
https://www.arxiv.org/abs/2601.07372
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:
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).
Unpack the contents into ~/.cache/nanochat/knowledge/{arxiv_id} directory.
Every latex source usually has an entrypoint, such as main.tex or something like that.
Once you've found the entrypoint, Read the contents and then recurse through all other relevant source files to read the paper.
Sponsors