arxiv
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.
When & Why to Use This Skill
The ArXiv Search and Download skill streamlines the process of discovering and retrieving academic papers from the ArXiv repository. It enables users to search by author, topic, or ID and specifically prioritizes the download of LaTeX source files over standard PDFs, making it an essential tool for researchers and developers who need to analyze technical content, formulas, and bibliographies with high precision.
Use Cases
- Literature Review: Quickly searching for and listing the most relevant papers by specific authors or within niche scientific categories.
- Technical Analysis: Downloading LaTeX source files (.tex) to extract complex mathematical formulas and structural data that are often corrupted in PDF conversions.
- Citation Management: Retrieving .bib and .bbl files directly from the paper source to automate the generation of accurate references for academic writing.
- AI-Powered Research: Integrating with LLM workflows by saving paper sources locally and converting them into prompts for deep summarization or code analysis.
| 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:
# View all LaTeX source files (.tex, .bib, .bbl) with syntax highlighting
python scripts/arxiv.py 2301.07041
# Save entire source to a directory
python scripts/arxiv.py 2301.07041 --save
# List files in the archive
python scripts/arxiv.py 2301.07041 --list
# View only specific file types
python scripts/arxiv.py 2301.07041 --tex # Only .tex files
python scripts/arxiv.py 2301.07041 --bib # Only .bib files
python scripts/arxiv.py 2301.07041 --bbl # Only .bbl files
The default output (no flags) wraps each file in markdown code blocks with appropriate language tags (latex/bibtex).
Searching ArXiv
# Search by author
python scripts/arxiv.py --search "au:Handley"
# Search by title
python scripts/arxiv.py --search "ti:cosmology"
# Search by category
python scripts/arxiv.py --search "cat:astro-ph.CO"
# Combined search
python scripts/arxiv.py --search "ti:cosmology+AND+au:Planck"
# Limit results (default 10)
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
--saveto 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.