paper-download-arxiv-paper-source
Skill43 starsChanged 4 months agoApache-2.0View on GitHub
Download the TeX source (e-print tar.gz) of an arXiv paper from an arXiv URL or bare ID, and unpack it into paper_src/. Use FIRST whenever a pipeline input is an arXiv link and the TeX source is preferred over the PDF (paper-to-beamer, paper-to-bilibili, paper-venue-discovery). Invoke with an arXiv URL (abs/pdf/e-print, arxiv.org or export.arxiv.org) or a bare ID like 2509.07996v4.
In this repository7 other files it gives its agents.
- paper-bilibili-uploaderSkill
- paper-slides-to-videoSkill
- paper-to-beamerSkill
- paper-to-bilibiliSkill
- paper-video-coverSkill
- pdf-to-markdownSkill
- sustech-beamer-theme-fixSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 65
If the script reports PDF_ONLY: <path>, the paper has no TeX source on arXiv.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Download arXiv Paper TeX Source
Given an arXiv link or bare arXiv ID, download the paper's TeX source from
https://arxiv.org/e-print/<id> and unpack it for downstream pipelines. This is
the required first step whenever the user provides an arXiv link and the TeX
source (not just the PDF) should feed the pipeline — TeX source preserves tables,
equations, and figures exactly and skips MinerU.
When to use
- User supplies an arXiv URL (
arxiv.org/abs/…,arxiv.org/pdf/…,arxiv.org/e-print/…,export.arxiv.org/…) or a bare ID (2509.07996,2509.07996v4) as the input to any paper pipeline. - A consumer skill needs the paper source on disk (
paper_src/) but only has an arXiv reference.
Invocation
uv run --no-project python \
"<SKILLS_DIR>/paper-download-arxiv-paper-source/scripts/download_source.py" \
"<arxiv-url|arxiv-id>" [--output DIR] [--force]--outputdefaults to the session cwd.--forcere-downloads even if the archive already exists.
Output contract
Under the output dir:
arXiv-<id>.tar.gz— downloaded e-print archive (gzip/tar).paper_src/— extracted TeX source (flattened if the archive wraps in a single top-level directory; unsafe members are rejected).- PDF-only submissions (no TeX source on arXiv):
arXiv-<id>.pdfinstead. - Single-file TeX submissions:
arXiv-<id>.texinstead.
On success stdout ends with TEX_SOURCES: <comma-separated relative paths>
(or PDF_ONLY: <abs pdf path>). Consume these lines — never guess file names.
Idempotency
Re-running with the same ID in the same output dir skips the download
(stdout starts SKIP) unless --force is given; extraction is still verified.
Failure
Nonzero exit + ERROR: message on stderr (parse failure, network failure,
empty body, unexpected payload, unsafe archive member, no .tex in archive).
The pipeline must stop and report — never silently fall back to the PDF.
Fallback note
If the script reports PDF_ONLY: <path>, the paper has no TeX source on arXiv.
Consumers then use that PDF with the MinerU path (e.g. paper-to-beamer Phase 2's
DECISION GATE) instead of reading TeX.
Consumed by
paper-to-beamerPhase 1 (arXiv link/ID input)paper-to-bilibilislides mode (entries witharxiv_id, no local source)paper-venue-discoverystep 1 (fetch source when only a link is given)
Related skills
- skill://paper-to-beamer
- skill://paper-to-bilibili
- skill://paper-venue-discovery
- skill://paper-to-beamer-workflow
- skill://paper-bilibili-multi-part-series-upload
- skill://paper-bilibili-series-upload
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.

