Searches and retrieves preprints from arXiv via the Atom API by keywords, authors, IDs, date ranges, or subject categories. Returns structured JSON with metadata and PDF links.
This skill provides Python tools for searching and retrieving preprints from arXiv.org via its public Atom API. It supports keyword search, author search, category filtering, arXiv ID lookup, and PDF download. Results are returned as structured JSON with titles, abstracts, authors, categories, and links.
The script declares its requests dependency via a PEP 723 inline header, so the most reliable way to run it is uv run scripts/arxiv_search.py ... (resolves deps automatically). The python scripts/arxiv_search.py ... examples below work when requests is already installed.
Use this skill when:
2309.10668)cs.LG, cs.CL, stat.ML)| Scenario | Use Instead |
|---|---|
| Peer-reviewed, MeSH-indexed biomedical journal articles | alterlab-pubmed |
| Life-science preprints (bioRxiv / medRxiv) | alterlab-biorxiv |
| Citation counts, the works that cite a paper, or citation trajectories (arXiv has no citation data) | alterlab-citation-graph |
| Depositing your own preprint on arXiv (categories, license, versioning) | alterlab-preprint-deposition |
| Multi-database systematic review with PRISMA screening | alterlab-literature-review |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-pubmed) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
Only a request for arXiv records themselves (a search, an ID's metadata, a PDF) is in scope here; a question about a paper's citations is out of scope as a whole, so hand it off without running an arXiv lookup or printing the paper's arXiv record.
Search for papers by keywords in titles, abstracts, or all fields.
python scripts/arxiv_search.py \
--keywords "sparse autoencoders" "mechanistic interpretability" \
--max-results 20 \
--output results.json
With category filter:
python scripts/arxiv_search.py \
--keywords "transformer" "attention mechanism" \
--category cs.LG \
--max-results 50 \
--output transformer_papers.json
Search specific fields:
# Title only
python scripts/arxiv_search.py \
--keywords "GRPO" \
--search-field ti \
--max-results 10
# Abstract only
python scripts/arxiv_search.py \
--keywords "reward model" "RLHF" \
--search-field abs \
--max-results 30
au: matches author names only — the API cannot filter by affiliation, so
au:anthropic or au:deepmind return nothing (or only papers where an organization
is listed as a collective author). To follow a lab, query its members by name. No
keyless source offers a complete institution filter: Crossref's query.affiliation
search matches only the affiliation strings publishers deposit (many records carry
none), and members' public ORCID records (pub.orcid.org/v3.0/<ORCID>/works, keyless
reads) list their works. Say that institution-level coverage is partial.
python scripts/arxiv_search.py \
--author "Yoshua Bengio" \
--max-results 50 \
--output bengio_papers.json
python scripts/arxiv_search.py \
--author "Ilya Sutskever" \
--category cs.LG \
--max-results 20
Retrieve metadata for specific papers:
python scripts/arxiv_search.py \
--ids 2309.10668 2406.04093 2310.01405 \
--output sae_papers.json
Full arXiv URLs also accepted:
python scripts/arxiv_search.py \
--ids "https://arxiv.org/abs/2309.10668"
List recent papers in a category:
python scripts/arxiv_search.py \
--category cs.AI \
--max-results 100 \
--sort-by submittedDate \
--output recent_cs_ai.json
python scripts/arxiv_search.py \
--ids 2309.10668 \
--download-pdf papers/
Batch download from search results:
import json
from scripts.arxiv_search import ArxivSearcher
searcher = ArxivSearcher()
# Search first
results = searcher.search(query="ti:sparse autoencoder", max_results=5)
# Download all
for paper in results:
arxiv_id = paper["arxiv_id"]
searcher.download_pdf(arxiv_id, f"papers/{arxiv_id.replace('/', '_')}.pdf")
| Category | Description |
|---|---|
cs.AI | Artificial Intelligence |
cs.CL | Computation and Language (NLP) |
cs.CV | Computer Vision |
cs.LG | Machine Learning |
cs.NE | Neural and Evolutionary Computing |
cs.RO | Robotics |
cs.CR | Cryptography and Security |
cs.DS | Data Structures and Algorithms |
cs.IR | Information Retrieval |
cs.SE | Software Engineering |
| Category | Description |
|---|---|
stat.ML | Machine Learning (Statistics) |
stat.ME | Methodology |
math.OC | Optimization and Control |
math.ST | Statistics Theory |
| Category | Description |
|---|---|
q-bio.BM | Biomolecules |
q-bio.GN | Genomics |
q-bio.QM | Quantitative Methods |
q-fin.ST | Statistical Finance |
eess.SP | Signal Processing |
physics.comp-ph | Computational Physics |
Full list: see references/api_reference.md.
The arXiv API uses prefix-based field searches combined with Boolean operators.
Field prefixes:
ti: - Titleau: - Authorabs: - Abstractcat: - Categoryall: - All fields (default)co: - Commentjr: - Journal referenceid: - arXiv IDBoolean operators (must be UPPERCASE):
ti:transformer AND abs:attention
au:bengio OR au:lecun
cat:cs.LG ANDNOT cat:cs.CV
Grouping with parentheses:
(ti:sparse AND ti:autoencoder) AND cat:cs.LG
au:"Chris Olah" AND (abs:interpretability OR abs:alignment)
Date ranges (GMT, YYYYMMDDTTTT, inclusive):
cat:cs.LG AND submittedDate:[202501010000 TO 202501312359]
Validation (since the Nov 2025 backend migration): malformed queries — unbalanced
parentheses, empty prefixes like au:, nested field syntax — return HTTP 400 with an
Atom error entry (<summary>Invalid query string: …</summary>) instead of an empty 200.
Bare terms are auto-prefixed (pineapple → all:pineapple); add raw=1 to disable
that rewriting. The script surfaces these errors instead of reporting zero results.
Examples:
from scripts.arxiv_search import ArxivSearcher
searcher = ArxivSearcher()
# Papers about SAEs in ML
results = searcher.search(
query="ti:sparse autoencoder AND cat:cs.LG",
max_results=50,
sort_by="submittedDate"
)
# Specific author in specific field
results = searcher.search(
query='au:"Neel Nanda" AND cat:cs.LG',
max_results=20
)
# Complex boolean query
results = searcher.search(
query="(abs:RLHF OR abs:reinforcement learning from human feedback) AND cat:cs.CL",
max_results=100
)
All searches return structured JSON:
{
"query": "id_list:2309.10668",
"result_count": 1,
"results": [
{
"arxiv_id": "2309.10668",
"title": "Language Modeling Is Compression",
"authors": ["Grégoire Delétang", "Anian Ruoss", "..."],
"abstract": "Full abstract text...",
"categories": ["cs.LG", "cs.AI", "cs.CL", "cs.IT"],
"primary_category": "cs.LG",
"published": "2023-09-19T14:50:38Z",
"updated": "2024-03-18T23:15:47Z",
"doi": "",
"pdf_url": "https://arxiv.org/pdf/2309.10668v2",
"abs_url": "https://arxiv.org/abs/2309.10668v2",
"comment": "",
"journal_ref": ""
}
]
}
from scripts.arxiv_search import ArxivSearcher
import json
searcher = ArxivSearcher()
# 1. Broad search
results = searcher.search(
query="abs:mechanistic interpretability AND cat:cs.LG",
max_results=200,
sort_by="submittedDate"
)
# 2. Save results
with open("interp_papers.json", "w") as f:
json.dump({"result_count": len(results), "results": results}, f, indent=2)
# 3. Filter and analyze
import pandas as pd
df = pd.DataFrame(results)
print(f"Total papers: {len(df)}")
print(f"Date range: {df['published'].min()} to {df['published'].max()}")
print(f"\nTop categories:")
print(df["primary_category"].value_counts().head(10))
arXiv has no affiliation search, so track a group through its members' names (for
the group's journal papers, Crossref's query.affiliation search adds partial coverage):
searcher = ArxivSearcher()
members = ["Chris Olah", "Neel Nanda", "Tom Henighan"] # the group's authors
query = "(" + " OR ".join(f'au:"{m}"' for m in members) + ") AND (cat:cs.LG OR cat:cs.CL)"
results = searcher.search(query=query, max_results=50, sort_by="submittedDate")
print(f"{len(results)} recent papers")
searcher = ArxivSearcher()
# Most recent ML papers
results = searcher.search(
query="cat:cs.LG",
max_results=50,
sort_by="submittedDate",
sort_order="descending"
)
for paper in results[:10]:
print(f"[{paper['published'][:10]}] {paper['title']}")
print(f" {paper['abs_url']}\n")
from scripts.arxiv_search import ArxivSearcher
searcher = ArxivSearcher(verbose=True)
# Free-form query (uses arXiv query syntax)
results = searcher.search(query="...", max_results=50)
# Lookup by ID
papers = searcher.get_by_ids(["2309.10668", "2406.04093"])
# Download PDF
searcher.download_pdf("2309.10668", "paper.pdf")
# Build query from components
query = ArxivSearcher.build_query(
title="sparse autoencoder",
author="anthropic",
category="cs.LG"
)
results = searcher.search(query=query, max_results=20)
cs.LG is where most ML papers live.sort_by=submittedDate for recent papers, relevance for keyword searches.start parameter, up to a 30000 total cap.2309.10668), not full URLs, in programmatic code.alterlab-citation-graph (citing works, citation counts) or alterlab-research-lookup (cross-index metadata): for the citation data arXiv doesn't provide.alterlab-citation-graph, Semantic Scholar (/graph/v1/paper/arXiv:<id>) or OpenCitations for citationsau: matches author names onlystart) for larger sets, up to a 30000 total cap.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from alterlab-writing-tools
Claude Code won't load this skill
It ships in alterlab-writing-tools at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Generated from the plugin's indexed repository (alterlab-ieu/alterlab-academic-skills) — no native marketplace selected
npx claudepluginhub p/alterlab-ieu-alterlab-writing-tools2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
241 skills in this plugin
/alterlab-abm-mesaBuilds agent-based models of social systems with Mesa 3 — the current AgentSet API (model.agents.shuffle_do('step'), auto-assigned unique_id, mandatory super().__init__(rng=...)), cell spaces (mesa.discrete_space OrthogonalMooreGrid / classic mesa.space grids), the DataCollector, batch_run parameter sweeps, and SolaraViz — for emergence, segregation, diffusion, opinion dynamics, and cooperation models. It uses the Mesa 3.x API (the old mesa.time schedulers like RandomActivation are removed) and treats the model as a generative theory to be validated, not just run. Use when the request mentions an agent-based model, Mesa, simulating interacting agents, or emergent macro behavior from micro rules. For discrete-event (queueing/process) simulation prefer alterlab-simpy; for reinforcement learning prefer alterlab-stable-baselines3. Part of the AlterLab Academic Skills suite./alterlab-academic-careerPrepares academic career documents and professional-development materials for faculty and researchers. Use when drafting academic CVs, research statements, teaching philosophies, diversity statements, faculty-position cover letters, tenure dossiers, promotion narratives, academic portfolios, or mentorship statements, and when planning conference-networking strategy, building academic web presence, setting up ORCID profiles, or understanding impact metrics. Part of the AlterLab Academic Skills suite.Other plugins' skills for the same job