arxiv-retriever
Skill22 starsChanged 3 months agoMITView on GitHub
Search and download arXiv papers by extracting parameters from natural language requests
In this repositoryOne other file it gives its agents.
- pdf-parserSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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 11
Search arXiv and download papers by extracting parameters from user requests, synthesizing queries, and executing …
- Distinctive: line 166
Ask "Execute this command?
≈ “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
arXiv Paper Retrieval Guide
Overview
Search arXiv and download papers by extracting parameters from user requests, synthesizing queries, and executing scripts/arxiv_retriever.py after user confirmation. For detailed arXiv API reference, see references/arxiv.md.
Quick Start
# Install dependencies
pip3 install arxiv arxiv2bib requests tqdm
# Basic keyword search
python scripts/arxiv_retriever.py --query "quantum machine learning" --max_results 10
# Search by paper ID
python scripts/arxiv_retriever.py --id_list "1706.03762,2305.12345"
# Author + title search
python scripts/arxiv_retriever.py --query "au:vaswani AND ti:transformer"Workflow
User Prompt → Extract Parameters → Synthesize Query → User Confirmation → Execute Script → Download PapersOutput per paper
Each paper is saved to <output_dir>/<arxiv_id>/ containing:
<arxiv_id>.pdf— the papermeta.json— title, authors, abstract, dates, categories, links (arXiv API available)<arxiv_id>.bib— BibTeX entry (requires thearxiv2bibCLI)
Papers already present are skipped; pass --force to re-download. When --query is used and no --max_results is given, the top 10 results are fetched.
Parameter Extraction
Priority Order
- arXiv IDs (highest priority):
"papers 1706.03762, 1810.04805"→--id_list "1706.03762,1810.04805" - Keywords:
"quantum machine learning"→--query "quantum machine learning" - Author/title:
"Vaswani's transformer"→--query "au:vaswani AND ti:transformer" - Sorting:
"latest"→--sort_by SubmittedDate --sort_order Descending - Limit:
"top 10"→--max_results 10
Date Range Conversion
| User Input | Query Format |
| "papers from 2024" | submittedDate:[202401010000 TO 202412312359] |
| "last half year" | submittedDate:[YYYYMMDD0000 TO CurrentDate2359] |
| "June to December 2023" | submittedDate:[202306010000 TO 202312312359] |
Query Syntax
Field Prefixes
| Prefix | Field | Example |
ti | title | ti:transformer |
au | author | au:shaw |
abs | abstract | abs:attention mechanism |
co | comment | co:machine learning |
jr | journal reference | jr:Neural Networks |
cat | subject category | cat:cs.LG |
rn | report number | rn:CERN-TH-2023-001 |
Boolean Operators
AND— Both terms must matchOR— At least one term matchesANDNOT/NOT— Exclude matching terms()— Group expressions
Examples
# Keyword search
--query "quantum machine learning"
# Title + author
--query "ti:transformer AND au:vaswani"
# Category + abstract
--query "cat:cs.LG AND abs:deep learning"
# Date range + title
--query "ti:attention AND submittedDate:[202301010000 TO 202412312359]"
# Exclude terms
--query "ti:learning ANDNOT (reinforcement OR unsupervised)"
# Exact phrase
--query 'ti:"self-attention"'Script Arguments
| Argument | Type | Description |
--query | str | Search query with field prefixes and boolean operators |
--id_list | str | Comma-separated arXiv IDs (e.g., "1706.03762,2305.12345") |
--max_results | int | Maximum number of downloads |
--sort_by | str | Relevance | LastUpdatedDate | SubmittedDate |
--sort_order | str | Ascending | Descending |
--output_dir | str | Output directory (default: current directory) |
--force | flag | Re-download and overwrite existing PDFs (default: skip existing) |
Few-Shot Examples
Simple Keyword Search
User: Find me the latest 10 papers on quantum machine learning
→ Command: python scripts/arxiv_retriever.py --query "quantum machine learning" --max_results 10 --sort_by SubmittedDate --sort_order DescendingAuthor + Title Search
User: Download Vaswani's transformer paper
→ Command: python scripts/arxiv_retriever.py --query "au:vaswani AND ti:transformer"Direct Paper IDs
User: Download papers 1706.03762 and 2305.12345
→ Command: python scripts/arxiv_retriever.py --id_list "1706.03762,2305.12345"Date Range Search
User: Find the first 20 papers about attention from 2024
→ Command: python scripts/arxiv_retriever.py --query "ti:attention AND submittedDate:[202401010000 TO 202412312359]" --max_results 20⚠️ MANDATORY: User Confirmation Required
CRITICAL: You MUST display the synthesized command and wait for explicit confirmation (yes or revelant words) BEFORE executing.
Confirmation Format
=== arXiv Search Command ===
python scripts/arxiv_retriever.py --query "au:He K AND submittedDate:[202504090000 TO 202604092359]"
Extracted Parameters:
- query: au:He K AND submittedDate:[202504090000 TO 202604092359]
Execute this command? (yes/no)Required Steps
- Display the full command
- List extracted parameters
- Ask "Execute this command? (yes/no)"
- WAIT for explicit confirmation
- Execute only after affirmative response
Next Steps
- For detailed arXiv API reference, see
references/arxiv.md - For category taxonomy, see
references/arxiv_categories.md
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.

