Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

fetch-arxiv-recent

БесплатноБез исполняемых скриптовНе проверен

Fetches arXiv papers submitted within a given date window matching a keyword set, with optional restriction to one or more arXiv categories (e.g. cs.LG…

lyndonklот lyndonkl★ 208 звёзд на GitHub

Об этом скилле

fetch-arxiv-recent

Fetch arXiv papers submitted within a date window, optionally restricted to specific arXiv categories, and keyword-filter the results. Returns records in the same canonical shape as the other three literature fetchers.

Return contract and cache ownership

Follow the shared literature handoff contract. Return one source envelope with server, records, existing counts, status (complete, partial, or failed), warnings, and fetch_errors. Diagnostics are objects with code, message, and optional record_id/cursor; keep them inside the JSON. A complete retrieval with zero matches is distinct from a failed or capped retrieval. Source records retain server; the search worker maps it to source in the combined result.

Keep absent/blank abstracts as null, match against the title when necessary, and add missing_abstract; do not fabricate text or discard a title match. A failed abstract request additionally makes coverage partial. This skill does not independently cache anything. Only a file-capable caller with actual raw responses and an assigned cache location may persist them; a search-only worker returns records and diagnostics without writes.

Workflow

- [ ] Step 1: Validate inputs (from, to, keywords, optional categories)
- [ ] Step 2: Build the search_query string with date range + categories + keywords
- [ ] Step 3: Page through the API until results exhausted or window endpoint passed
- [ ] Step 4: Parse Atom XML; normalize each entry
- [ ] Step 5: Dedupe by arXiv ID (keep latest version)
- [ ] Step 6: Return matched records + summary

Step 1 — Validate inputs

Required:

  • from: YYYY-MM-DD, inclusive
  • to: YYYY-MM-DD, inclusive, to >= from
  • keywords: list of strings (case-insensitive substring match against title + abstract)

Optional:

  • categories: list of arXiv category codes — e.g. ["cs.LG", "cs.CL", "stat.ML"]. If omitted, search all of arXiv. Common groupings the caller may want to expose:

    • CS / ML: cs.LG, cs.CL, cs.CV, cs.AI, cs.NE, stat.ML
    • Math / stats: math.ST, math.PR, math.OC, stat.ME, stat.AP
    • Quantitative biology: q-bio.QM, q-bio.GN, q-bio.MN, q-bio.NC
    • Physics-adjacent: physics.data-an, cond-mat.stat-mech

    The skill itself does not hard-code these groupings; it accepts whatever categories the caller passes. The orchestrator's source-registry.md can document the groupings the operator cares about.

Reject if window > 31 days (same rule as fetch-preprint-recent — wider windows almost always indicate a misuse).

Step 2 — Build the query string

The arXiv search API accepts a query language with fielded search. Compose:

search_query = (date_clause) AND (category_clause)? AND (keyword_clause)
  • Date clause (always include — without it you'll get the whole arXiv history):

    submittedDate:[YYYYMMDDHHMM TO YYYYMMDDHHMM]
    

    Use from + 0000 and to + 2359 so the window is fully inclusive of both days.

  • Category clause (optional): join categories with OR.

    (cat:cs.LG OR cat:cs.CL OR cat:stat.ML)
    
  • Keyword clause: join with OR. Use all: for full-record search (covers title + abstract + authors, which is what we want for a wide-net keyword scan):

    (all:"protein language model" OR all:"diffusion model" OR all:gnn)
    

    Multi-word phrases must be double-quoted. Single words don't need quotes.

Final assembled example:

submittedDate:[202605040000 TO 202605102359]
  AND (cat:cs.LG OR cat:cs.CL OR cat:stat.ML)
  AND (all:"protein language model" OR all:"diffusion model" OR all:transformer)

URL-encode and pass as search_query to:

http://export.arxiv.org/api/query?search_query={URL_ENCODED}&sortBy=submittedDate&sortOrder=descending&start={offset}&max_results=200

sortBy=submittedDate&sortOrder=descending is important — it lets you stop paginating as soon as the result dates fall before from, instead of having to walk the whole result set.

Step 3 — Pagination

arXiv returns 200 records per page (max). After each page:

  • If response has 0 entries, stop.
  • If the last entry's published date is older than from, stop (the rest are out of window).
  • Otherwise, increment start by 200, request again.
  • Cap at 10 pages (2,000 records). If hit, surface "window may be over-broad" and return what you have.

Rate limit: arXiv asks for 1 request every 3 seconds. Sleep between paginated requests. Don't hammer.

Step 4 — Parse Atom XML

The API returns an Atom feed. Each <entry> has:

  • <id>: full URL like http://arxiv.org/abs/2605.12345v1 — the canonical paper ID is the trailing 2605.12345 (post-2007 format) or arxiv.org/abs/cs.LG/0301001 (legacy format)
  • <title>: paper title (may have newlines + indentation; collapse whitespace)
  • <summary>: abstract (same whitespace caveat)
  • <author><name>: one per author; preserve
Полный SKILL.md на GitHub

Установить fetch-arxiv-recent в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл fetch-arxiv-recent?

Fetches arXiv papers submitted within a given date window matching a keyword set, with optional restriction to one or more arXiv categories (e.g. cs.LG, cs.CL, cs.CV, stat.ML, math.ST, q-bio.QM). Wraps the public `export.arxiv.org/api/query` endpoint, parses Atom XML, handles pagination, and normalizes records to the same canonical shape as `fetch-preprint-recent` and `fetch-pubmed-recent` so a calling agent can dedupe across sources. Domain-neutral — usable for any literature scan that crosses CS, ML, statistics, math, physics, or quantitative biology. Use when user mentions arXiv, cs.LG, ML papers, NeurIPS-adjacent preprints, weekly arXiv scan, or when a literature-scan agent needs arXiv records alongside bioRxiv / medRxiv / PubMed.

Как установить скилл fetch-arxiv-recent?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл fetch-arxiv-recent запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить fetch-arxiv-recent с