Skip to main content
Back

paper2code Turns Any arXiv Link Into Fully Cited, Runnable Code

paper2code is a free, open-source Claude Code skill that converts any arXiv URL into a fully cited, runnable implementation in minutes

Pro

Repo, Full Access
  • What it is: paper2code is a free, MIT-licensed Claude Code skill that converts any arXiv URL into a runnable codebase.
  • Key innovation: Every generated line is anchored to the exact paper section and equation, and unspecified choices are explicitly flagged with alternatives listed.
  • Install: One command -- npx skills add PrathamLearnsToCode/paper2code/skills/paper2code -- then use /paper2code <arxiv_url> inside Claude Code.
  • Output: Full project structure including model.py, train.py, configs/base.yaml, a walkthrough notebook, and a REPRODUCTION_NOTES.md ambiguity audit.
  • Limitations: No dataset downloads, no distributed training setup, no baseline implementations; equations-heavy or diagram-heavy papers produce more unresolved flags.
  • Context: Fewer than 1 in 4 top-conference ML papers publish code; paper2code directly targets this reproducibility gap with 1,400+ GitHub stars.

Implementing a research paper has always been a detective job. Critical hyperparameters hide in appendices. Prose contradicts equations. "Standard settings" points to nothing. You spend more time reverse-engineering intent than writing code. paper2code is a Claude Code skill that drops in an arXiv URL and returns a full, runnable codebase where every line is anchored to the exact paper section and equation it implements.

The problem it solves

In 2024, fewer than one in four ML papers from top conferences like NeurIPS, ICML, and ICLR shared their code. Turning a raw paper into working software remains largely a manual task. Naive LLM code generation makes this worse: the model fills every gap silently and confidently, giving you something that runs but doesn't match the paper, with no way to tell which parts were invented.

paper2code addresses this with two design commitments: citation anchoring and explicit uncertainty. Rather than generating plausible-looking code, it generates verifiable code.

How it works

When Claude invokes a skill, the system loads a markdown file (SKILL.md), expands it into detailed instructions, injects those instructions as new user messages into the conversation context, and continues with this enriched environment. Unlike traditional tools that execute and return results, skills prepare Claude to solve a problem rather than solving it directly.

paper2code layers its own pipeline on top of this. Before a single line of code is written, the skill runs an ambiguity audit that classifies every implementation choice into one of three buckets:

  • SPECIFIED — the paper states it explicitly, with a section reference