PluginBench
Skill
Review
Audit score 70

read-arxiv-paper

karpathy/nanochat

Fetch and summarize arXiv papers from their TeX source for local analysis and nanochat integration.

What is read-arxiv-paper?

This skill downloads the TeX source code of arXiv papers, unpacks them locally, and generates markdown summaries with connections to the nanochat project. Use it when you need to deeply understand a research paper's content and explore how its ideas might apply to your codebase.

  • Normalize arXiv URLs to fetch TeX source instead of PDFs
  • Download and cache paper sources locally to avoid re-fetching
  • Unpack compressed archives and locate the LaTeX entrypoint file
  • Recursively read all relevant source files to extract paper content
  • Generate contextual markdown summaries linking paper concepts to nanochat code

How to install read-arxiv-paper

npx skills add https://github.com/karpathy/nanochat --skill read-arxiv-paper
Prerequisites
  • arXiv paper URL in standard format (e.g., https://www.arxiv.org/abs/YYMM.NNNNN)
  • Write access to ~/.cache/nanochat/knowledge/ directory
  • Write access to local ./knowledge/ directory for summaries
Claude Code
Cursor
Windsurf
Cline

How to use read-arxiv-paper

  1. 1.Provide the arXiv paper URL (e.g., https://www.arxiv.org/abs/2601.07372)
  2. 2.The skill normalizes it to the /src/ endpoint and downloads the TeX source archive
  3. 3.The archive is unpacked to ~/.cache/nanochat/knowledge/{arxiv_id}/
  4. 4.The skill locates the LaTeX entrypoint (main.tex or equivalent)
  5. 5.All relevant source files are read and analyzed recursively
  6. 6.A markdown summary is generated at ./knowledge/summary_{tag}.md with connections to nanochat

Use cases

Good for
  • Understanding a novel machine learning technique and evaluating its applicability to nanochat
  • Researching conditional memory mechanisms or attention patterns for agent improvements
  • Reviewing foundational papers on language models or reasoning to inform architecture decisions
  • Analyzing papers on prompt engineering or in-context learning for nanochat optimization
  • Documenting research findings with explicit connections to existing codebase patterns
Who it's for
  • Researchers exploring new techniques for AI agents
  • Developers maintaining or extending nanochat
  • Engineers evaluating academic papers for project integration
  • Teams conducting literature reviews with implementation focus

read-arxiv-paper FAQ

What if the paper URL is already cached?

The skill checks if the .tar.gz file exists in ~/.cache/nanochat/knowledge/ and skips re-downloading if it does, saving time and bandwidth.

How does the skill choose the summary filename tag?

The tag is generated based on the paper's main topic or contribution (e.g., 'conditional_memory' or 'attention_patterns'). The skill ensures the tag doesn't overwrite existing files.

Why fetch TeX source instead of the PDF?

TeX source is machine-readable and allows recursive analysis of all included files, LaTeX macros, and referenced sections, providing deeper understanding than PDF text extraction.

Can I use this skill for papers not on arXiv?

This skill is specifically designed for arXiv papers with the standard URL format. Other repositories may have different source access patterns.

Where should I look for the generated summary?

Summaries are saved to ./knowledge/summary_{tag}.md in your local project directory (not in ~/.cache/) for easy access and version control.

Full instructions (SKILL.md)

Source of truth, from karpathy/nanochat.


name: read-arxiv-paper description: Use this skill when asked to read an arxiv paper given an arxiv URL

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.