| name | arxiv |
| description | Use when the user mentions 'arxiv' or asks to find, search for, or download arxiv papers (by arxiv ID, author name, or topic), get paper source code, or retrieve LaTeX files from arxiv. Can search for papers to find arxiv IDs when only author/topic is provided, then download them. Prefer source format over PDF. |
ArXiv Search and Download Skill
Download and view arXiv paper sources using the arxiv command-line tool.
Requires: requests (pip install requests)
ArXiv ID Format
- Modern:
YYMM.NNNNN (e.g., 2301.07041)
- Old format:
category/YYMMNNN (e.g., astro-ph/0701123)
Downloading Papers
Use the arxiv CLI tool bundled with this skill:
python scripts/arxiv.py 2301.07041
python scripts/arxiv.py 2301.07041 --save
python scripts/arxiv.py 2301.07041 --list
python scripts/arxiv.py 2301.07041 --tex
python scripts/arxiv.py 2301.07041 --bib
python scripts/arxiv.py 2301.07041 --bbl
The default output (no flags) wraps each file in markdown code blocks with appropriate language tags (latex/bibtex).
Searching ArXiv
python scripts/arxiv.py --search "au:Handley"
python scripts/arxiv.py --search "ti:cosmology"
python scripts/arxiv.py --search "cat:astro-ph.CO"
python scripts/arxiv.py --search "ti:cosmology+AND+au:Planck"
python scripts/arxiv.py --search "au:Hinton" -n 5
Search Query Prefixes
| Prefix | Field |
|---|
ti: | Title |
au: | Author |
abs: | Abstract |
cat: | Category |
all: | All fields |
Typical Workflow
- Search for papers:
python scripts/arxiv.py --search "au:Author"
- Pick an arxiv ID from results
- View the source:
python scripts/arxiv.py <id>
- Use
--save to extract files locally if needed
Integration with LLM Analysis
After saving source with --save:
python scripts/arxiv.py 2301.07041 --save
code2prompt 2301.07041 --include "*.tex" --output-file /tmp/paper.md
Then pass to external LLMs for analysis.