npx skills add ...
npx skills add google-deepmind/science-skills --skill literature-search-arxiv
Search for scientific papers, preprints, and publications on arXiv. Extract metadata, abstracts, and download full-text PDFs or HTML versions of papers. Use when the user asks to find research papers, literature, or specific arXiv IDs.
npx skills add google-deepmind/science-skills --skill literature-search-arxiv
uv: Read the uv skill and follow its Setup instructions to ensure
uv is installed and on PATH.1. Search and Extract Metadata
Search arXiv and return a clean JSON array of matching papers.
Important: The tool outputs a large JSON result to stdout. Requesting 100+ results will produce a massive JSON that might exceed your context length. Limit
--max_results(e.g., 5-10) or paginate carefully using--start. Always redirect output to a file and parse it separately, otherwise terminal output will be truncated.
Returned Metadata: JSON results include id, title, summary, published,
authors, pdf_url, primary_category, doi, journal_ref, and comment.
Note: the doi field only contains DOI information in case the paper has an
external DOI and if only an arXiv-issued DOI exists, this is DOI is not
returned.
Options:
--query: Search string. See
references/query_syntax.md for advanced
syntax.--id_list: Comma-separated list of arXiv IDs to fetch directly (e.g.,
1706.03762v5).--start: Pagination offset (default 0).--max_results: Number of results to return (default 10).--sort_by: relevance, lastUpdatedDate, or submittedDate. (Use
--sort_by submittedDate --sort_order descending for the most recent
papers).--sort_order: ascending or descending.2. Download Paper (PDF or HTML)
Download the full text of a paper to your local workspace for reading.
Options:
--id: The arXiv ID (e.g., 1706.03762 or 1706.03762v5).--format: pdf or html. Note: HTML is only available for newer papers.--output: Filepath to save the downloaded document.Important: when downloading papers, make sure you download them to a location where you do not overwrite other files and do not clutter existing directory structure.
3. Download Paper Source (tar.gz)
Download the LaTeX source files of a paper to your local workspace. Note that not all papers have source available.
Options:
--id: The arXiv ID (e.g., 2010.11645).--output: Filepath to save the downloaded tar.gz file.Caution: Care should be exercised when untar'ing the downloaded file for security and to avoid cluttering your filesystem, as archives may contain many files or unexpected directory structures.
Safe Extraction Requirements: NEVER extract directly into your working directory! Always extract into a dedicated new directory:
bash mkdir paper_source && tar -xzf source.tar.gz -C paper_source
search_arxiv.py. Review the JSON summaries.download_paper.py to fetch the PDF or HTML.uv run scripts/download_paper_source.py --id 2010.11645 --output source.tar.gz