agentleFS
PKUfudaweiPKUfudawei/arxiv-skills/skills/arxiv-retriever/SKILL.md

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.

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
  1. Very specific:

    Search arXiv and download papers by extracting parameters from user requests, synthesizing queries, and executing …

    line 11
  2. Distinctive:

    Ask "Execute this command?

    line 166

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 Papers

Output per paper

Each paper is saved to <output_dir>/<arxiv_id>/ containing:

  • <arxiv_id>.pdf — the paper
  • meta.json — title, authors, abstract, dates, categories, links (arXiv API available)
  • <arxiv_id>.bib — BibTeX entry (requires the arxiv2bib CLI)

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

  1. arXiv IDs (highest priority): "papers 1706.03762, 1810.04805" → --id_list "1706.03762,1810.04805"
  2. Keywords: "quantum machine learning" → --query "quantum machine learning"
  3. Author/title: "Vaswani's transformer" → --query "au:vaswani AND ti:transformer"
  4. Sorting: "latest" → --sort_by SubmittedDate --sort_order Descending
  5. Limit: "top 10" → --max_results 10

Date Range Conversion

User InputQuery 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

PrefixFieldExample
tititleti:transformer
auauthorau:shaw
absabstractabs:attention mechanism
cocommentco:machine learning
jrjournal referencejr:Neural Networks
catsubject categorycat:cs.LG
rnreport numberrn:CERN-TH-2023-001

Boolean Operators

  • AND — Both terms must match
  • OR — At least one term matches
  • ANDNOT / 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

ArgumentTypeDescription
--querystrSearch query with field prefixes and boolean operators
--id_liststrComma-separated arXiv IDs (e.g., "1706.03762,2305.12345")
--max_resultsintMaximum number of downloads
--sort_bystrRelevance | LastUpdatedDate | SubmittedDate
--sort_orderstrAscending | Descending
--output_dirstrOutput directory (default: current directory)
--forceflagRe-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 Descending

Author + 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

  1. Display the full command
  2. List extracted parameters
  3. Ask "Execute this command? (yes/no)"
  4. WAIT for explicit confirmation
  5. Execute only after affirmative response

Next Steps

  • For detailed arXiv API reference, see references/arxiv.md
  • For category taxonomy, see references/arxiv_categories.md

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.