fetch-paper
Skill1 starsChanged 4 months agoMITView on GitHub
Fetch an arXiv paper from a URL, arXiv ID, or title — downloads the LaTeX source into refs/<Title>/ (stripped of fonts & videos, figures kept as AI context) and the PDF into papers/<Title> - <arxiv_id>.pdf. Use when the user wants to add a paper to refs/papers, "download this paper", "grab the latex source", or pastes an arxiv link to ingest.
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ShaishavMaisuria/research-paper-lifecycle-skillstheir own version, first seen Nov 1, 2026
- arthur-plautz/research-toolkittheir own version, first seen Oct 15, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- ShaishavMaisuria/research-paper-lifecycle-skills★ 59same name
- arthur-plautz/research-toolkit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- add-umami-analyticsSkill
- amazon-writingSkill
- brand-namingSkill
- creativity-rejectionismSkill
- explain-diff-notionSkill
- explain-diffSkill
- explain-notionSkill
- explainSkill
- ml-paper-writingSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Run from the directory that owns refs/ and papers/ (e.g.
- Very specific: line 73
If dangerouslyDisableSandbox is needed for network access in this harness, use it.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fetch Paper
Ingest an arXiv paper as both a lean LaTeX-source context (for you and other AI agents to read) and a PDF (for humans). One command, two artifacts.
When to use
- The user gives an arXiv URL, arXiv ID, or a paper title and wants it added.
- Phrases like "download this paper", "add to refs", "grab the latex source", "ingest this arxiv link".
What it does
For input <url | id | title>:
- Determines the arXiv ID:
- URL or ID → taken directly, no network lookup (
/abs/2605.06548,2605.06548,arxiv:2605.06548v2all work). - Title → the only case that queries the arXiv API (text→id), with 429/503 backoff.
- URL or ID → taken directly, no network lookup (
- Source →
refs/<Title>/— pullsarxiv.org/e-print/<id>, extracts the LaTeX bundle, then strips heavy elements: videos/animations (.mp4 .mov .gif .webm …) and font blobs (.ttf .otf .tfm .woff …). Image & vector figures are kept (.png .jpg .pdf .eps .svg) because graphs and architecture diagrams are valuable context. Text stays (.tex .bib .bbl .sty …). - Names intelligently by reading
\title{}out of the downloaded source (handles\includegraphicslogos,\textcolor,\raisebox,\thanks,\texorpdfstring, etc.). Falls back to the API title, then the ID. - PDF →
papers/<Title> - <arxiv_id>.pdf(title first, then ID), fromarxiv.org/pdf/<id>.
Usage
Run from the directory that owns refs/ and papers/ (e.g. the project root):
python3 ~/.claude/skills/fetch-paper/fetch_paper.py "<url | id | title>"Examples:
# By URL
python3 ~/.claude/skills/fetch-paper/fetch_paper.py "https://arxiv.org/abs/2407.12282"
# By bare ID (version optional)
python3 ~/.claude/skills/fetch-paper/fetch_paper.py 2510.17206
# By title
python3 ~/.claude/skills/fetch-paper/fetch_paper.py "Chip Placement with Diffusion Models"Flags
--refs DIRrefs output dir (default./refs)--papers DIRpapers output dir (default./papers)--source-onlydownload/strip LaTeX source only, skip PDF--pdf-onlydownload PDF only, skip source--yessuppress the candidate-disambiguation printout for title searches
Agent guidance
- The script is stdlib-only (no pip installs) and idempotent — re-running overwrites the same paths.
- If
dangerouslyDisableSandboxis needed for network access in this harness, use it; arXiv requires HTTPS (http://export.arxiv.orgreturns empty). - A URL/ID never calls the arXiv API — only a bare-title input does. So prefer passing the URL or ID to avoid rate limits entirely.
- For a title search, the script prints the top match and any other candidates to stderr. If the resolved title looks wrong, show the candidates to the user and re-run with the correct URL/ID.
- To batch-ingest several papers, loop over inputs; arXiv is politely rate-
limited, so add a short
sleepbetween calls.
Conventions
- refs folder name = sanitized official title (path separators removed).
- PDF name =
<Title> - <arxiv_id>.pdf(no version suffix on the ID).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

