literature-search-arxiv — скилл для Claude Code: поиск статей на arXiv
Ищет статьи и препринты на arXiv, вытаскивает метаданные и абстракты, скачивает PDF, HTML или LaTeX-исходники в рабочую папку.
npx skills add google-deepmind/science-skills --skill literature-search-arxiv -a claude-code
npx skills add google-deepmind/science-skills --skill literature_search_arxiv -a claude-codeЧто делает literature-search-arxiv
Скилл даёт агенту три скрипта. search_arxiv.py шлёт запрос к API arXiv и возвращает JSON с id, title, summary, published, authors, pdf_url, primary_category, doi, journal_ref и comment. download_paper.py тянет полный текст в PDF или HTML, download_paper_source.py — архив с LaTeX-исходниками. Поиск понимает префиксы полей (au:, ti:, abs:), булевы операторы и фильтры по датам.
Перед первым запуском нужно поставить uv и положить его в PATH. Если в корне проекта нет файла .licenses/literature_search_arxiv_LICENSE.txt, скилл попросит вас свериться с условиями использования API arXiv и запишет факт уведомления с отметкой времени. Ограничение по частоте — не больше одного запроса раз в 3 секунды, скрипты держат его сами. Поэтому не пишите свои curl-обёртки: они этот лимит обойдут.
Результаты поиска приходят одним большим JSON в stdout. Запрос на 100+ записей легко переполнит контекст, так что советую начать с --max_results 5 и вывода в файл, а дальше листать через --start. HTML доступен только для свежих статей, исходники есть не у всех. Скачанный архив распаковывайте в отдельную папку: mkdir paper_source && tar -xzf source.tar.gz -C paper_source.
Какие задачи решает
- найти статьи по теме и посмотреть абстракты
- вытащить метаданные пачки препринтов в JSON
- скачать PDF конкретной статьи по её arXiv ID
- получить LaTeX-исходник, чтобы разобрать формулы
- отсортировать выдачу по дате подачи и взять свежее
Примеры запросов агенту
- найди на arXiv статьи про диффузионные модели, максимум 5 штук
- скачай PDF статьи 1706.03762 в attention.pdf
- выгрузи LaTeX-исходники статьи 2010.11645
Как установить literature-search-arxiv
1Через Skills CLI (Vercel)
npx skills add google-deepmind/science-skills --skill literature-search-arxiv -a claude-codenpx skills add google-deepmind/science-skills --skill literature_search_arxiv -a claude-code2Вручную: положить файлы
~/.claude/skills/literature_search_arxiv/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/literature_search_arxiv/
1Через Skills CLI (Vercel)
npx skills add google-deepmind/science-skills --skill literature_search_arxiv -a codex2Вручную: положить файлы
.agents/skills/literature_search_arxiv/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add google-deepmind/science-skills --skill literature_search_arxiv -a cursor2Вручную: положить файлы
.cursor/skills/literature_search_arxiv/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install google-deepmind/science-skills literature_search_arxiv2Вручную: положить файлы
.github/skills/literature_search_arxiv/SKILL.md1Через Skills CLI (Vercel)
npx skills add google-deepmind/science-skills --skill literature_search_arxiv -a gemini-cli2Командой платформы
gemini skills install https://github.com/google-deepmind/science-skills --path skills/literature_search_arxivВручную: положить файлы
.devin/skills/literature_search_arxiv/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add google-deepmind/science-skills --skill literature_search_arxiv -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о literature-search-arxiv
Как установить literature-search-arxiv в Claude?
Через npx: npx skills add google-deepmind/science-skills --skill literature-search-arxiv -a claude-code. После этого файл скилла лежит в ~/.claude/skills/literature_search_arxiv/SKILL.md.
Что делает literature-search-arxiv?
Ищет публикации и препринты на arXiv, отдаёт метаданные и абстракты в JSON и скачивает полный текст — PDF, HTML или tar.gz с LaTeX-исходниками.
Что нужно для работы скилла?
Установленный uv в PATH и согласие с условиями использования API arXiv. Скрипты сами держат лимит в один запрос раз в 3 секунды, поэтому свои обращения к API писать не нужно.
Исходный текст
SKILL.md · Apache-2.0
---
name: literature-search-arxiv
description: >
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.
---
# arXiv Search and Retrieval
## Prerequisites
1. **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure
`uv` is installed and on PATH.
2. **User Notification**: If .licenses/literature_search_arxiv_LICENSE.txt does
not already exist in the workspace root directory then (1) prominently
notify the user to check the terms at
https://info.arxiv.org/help/api/index.html and to always check the license
of the papers retrieved by the skill for any restrictions, then (2) create
the file recording the notification text and timestamp.
## Core Rules
- **Terms of Use**: You MUST respect arXiv's Terms of Use.
- Maximum 1 request every 3 seconds.
- The provided utility scripts handle rate limiting automatically. Always
use these scripts rather than writing your own curl/python requests.
- If this skill is used, ensure this is mentioned in the output AND list the
URLs of all papers that were used in producing the output.
## Utility Scripts
**1. Search and Extract Metadata**
Search arXiv and return a clean JSON array of matching papers.
```bash
uv run scripts/search_arxiv.py --query "au:einstein AND ti:relativity" \
--max_results 5 2>/dev/null > /tmp/arxiv_search_results.json
```
> **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](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.
```bash
uv run scripts/download_paper.py --id 1706.03762 --format pdf --output attention.pdf
```
*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.
```bash
uv run scripts/download_paper_source.py --id 2010.11645 --output source.tar.gz
```
*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`
## Reference
- **Advanced Query Syntax**: See
[references/query_syntax.md](references/query_syntax.md) for prefixes (au,
ti, abs), booleans, and date filtering.
## Workflow
1. Search for papers using `search_arxiv.py`. Review the JSON summaries.
2. If full text is needed, use `download_paper.py` to fetch the PDF or HTML.
3. If downloading a PDF, verify the PDF is not empty or corrupted.
4. Read the downloaded file using standard file reading tools.
© google-deepmind · Apache-2.0 · google-deepmind/science-skills