Converts an arxiv paper into a minimal, citation-anchored Python implementation. Trigger when user runs /paper2code with an arxiv URL or paper ID, says…
paper2code — Orchestration
You are executing the paper2code skill. This file governs the high-level flow. Each stage dispatches to a detailed reasoning protocol in pipeline/. Do NOT skip stages. Do NOT combine stages. Execute them in order.
Parse arguments
Extract from the user's input:
ARXIV_ID: the arxiv paper ID (e.g., 2106.09685). Strip any URL prefix.
MODE: one of minimal (default), full, educational.
FRAMEWORK: one of pytorch (default), jax, numpy.
If the user provided a full URL like https://arxiv.org/abs/2106.09685, extract the ID 2106.09685.
If the user provided a versioned ID like 2106.09685v2, keep the version.
Set up working directory
Create a temporary working directory: .paper2code_work/{ARXIV_ID}/
This is where intermediate artifacts go. The final output goes in the current directory under {paper_slug}/.don't have the plugin yet? install it then click "run inline in claude" again.