arm2arm/astroagentassistant/arxiv

Claude Code and agent skill by arm2arm/astroagentassistant

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Search and retrieve academic papers from arXiv using the free REST API. Query by keyword, author, category, or paper ID. Fetch abstracts, full PDFs, generate BibTeX, and explore citations via Semantic Scholar.

Install

npx vskill@latest install arm2arm/astroagentassistant/arxiv

SKILL.md

The same SKILL.md was published earlier as arm2arm/astroagentassistant/arxiv.

arXiv Research

When to Use

Use this skill when the user needs to find, read, or cite academic papers. Tasks include: literature review, finding related work, checking citations, generating BibTeX, or extracting paper content.

Procedure

1. Search papers
bash
curl -s "https://export.arxiv.org/api/query?search_query=all:GRPO+reinforcement+learning&max_results=5&sortBy=submittedDate&sortOrder=descending"
2. Parse XML to clean output
bash
curl -s "https://export.arxiv.org/api/query?search_query=all:GRPO+reinforcement+learning&max_results=5" | python3 -c "
import sys, xml.etree.ElementTree as ET
ns = {'a': 'http://www.w3.org/2005/Atom'}
root = ET.parse(sys.stdin).getroot()
for i, entry in enumerate(root.findall('a:entry', ns)):
title = entry.find('a:title', ns).text.strip().replace('\n', ' ')
arxiv_id = entry.find('a:id', ns).text.strip().split('/abs/')[-1]
published = entry.find('a:published', ns).text[:10]
authors = ', '.join(a.find('a:name', ns).text for a in entry.findall('a:author', ns))
summary = entry.find('a:summary', ns).text.strip()[:200]
cats = ', '.join(c.get('term') for c in entry.findall('a:category', ns))
print(f'{i+1}. [{arxiv_id}] {title}')
print(f' Authors: {authors}')
print(f' Published: {published} | Categories: {cats}')
print(f' Abstract: {summary}...')
print(f' PDF: https://arxiv.org/pdf/{arxiv_id}')
print()
"
3. Fetch specific paper by ID
bash
curl -s "https://export.arxiv.org/api/query?id_list=2402.03300,2401.12345"
4. Read paper content — use ar5iv HTML, NOT the PDF

Never `web_extract` the full PDF. arXiv PDFs are routinely 10–20 MB; web_extract on content that large runs chunked LLM summarization on the local (AIP vLLM) model and can hang for many minutes with no wall-clock cap. ar5iv serves the same paper as compact HTML (~0.5–1 MB) that you fetch with curl and parse locally in seconds — keyless, no LLM in the loop, deterministic.

bash
ID=2111.01860
# ar5iv HTML rendering (two hosts; second is the fallback)
curl -sL "https://ar5iv.labs.arxiv.org/html/$ID" -o paper.html \
|| curl -sL "https://ar5iv.org/html/$ID" -o paper.html
wc -c paper.html # expect hundreds of KB; a few hundred bytes => no ar5iv HTML, use abstract fallback
# Parse locally with python (NO web_extract, NO LLM): plain text + figure captions
python3 - <<'PY'
import re, html, pathlib
src = pathlib.Path("paper.html").read_text(errors="ignore")
src = re.sub(r"(?is)<(script|style).*?</\1>", " ", src) # drop scripts/styles
text = html.unescape(re.sub(r"\s+", " ", re.sub(r"(?s)<[^>]+>", " ", src)))
print(text[:6000]) # abstract + intro + method
for m in re.finditer(r"(Figure\s+\d+\s*[.:][^.]{0,400}\.)", text):
print("CAPTION:", m.group(1).strip()) # locate the figure you must reproduce
PY

Abstract only (fastest, keyless) — use the API, not web_extract:

bash
curl -s "https://export.arxiv.org/api/query?id_list=2111.01860" | python3 -c "
import sys, xml.etree.ElementTree as ET
ns={'a':'http://www.w3.org/2005/Atom'}
e=ET.parse(sys.stdin).getroot().find('a:entry', ns)
print(e.find('a:summary', ns).text.strip())"
Fallback: if paper.html comes back tiny (rare — papers with no TeX source, or just-posted
ones not yet on ar5iv), use the abstract API above, and only as a last resort web_extract
the small abs page (https://arxiv.org/abs/<id>). Do not `web_extract` the PDF.
5. Generate BibTeX
bash
curl -s "https://export.arxiv.org/api/query?id_list=1706.03762" | python3 -c "
import sys, xml.etree.ElementTree as ET
ns = {'a': 'http://www.w3.org/2005/Atom', 'arxiv': 'http://arxiv.org/schemas/atom'}
root = ET.parse(sys.stdin).getroot()
entry = root.find('a:entry', ns)
title = entry.find('a:title', ns).text.strip().replace('\n', ' ')
authors = ' and '.join(a.find('a:name', ns).text for a in entry.findall('a:author', ns))
year = entry.find('a:published', ns).text[:4]
raw_id = entry.find('a:id', ns).text.strip().split('/abs/')[-1]
cat = entry.find('arxiv:primary_category', ns)
primary = cat.get('term') if cat is not None else 'cs.LG'
last_name = entry.find('a:author', ns).find('a:name', ns).text.split()[-1]
print(f'@article{{{last_name}{year}_{raw_id.replace(\".\", \"\")},')
print(f' title = {{{title}}},')
print(f' author = {{{authors}}},')
print(f' year = {{{year}}},')
print(f' eprint = {{{raw_id}}},')
print(f' archivePrefix = {{arXiv}},')
print(f' primaryClass = {{{primary}}},')
print(f' url = {{https://arxiv.org/abs/{raw_id}}}')
print('}')
"

arXiv Query Syntax

PrefixSearchesExample
all:All fieldsall:transformer+attention
ti:Titleti:large+language+models
au:Authorau:hinton
abs:Abstractabs:reinforcement+learning
cat:Categorycat:cs.LG

Boolean: all:A+ANDNOT+all:B, all:A+OR+all:B

Sort and Pagination

ParameterOptions
sortByrelevance, lastUpdatedDate, submittedDate
sortOrderascending, descending
max_results1–30000

Semantic Scholar (Citations)

For citation counts and related papers (arXiv has no citation data):

bash
# Paper details + citations
curl -s "https://api.semanticscholar.org/graph/v1/paper/arXiv:2402.03300?fields=title,authors,citationCount,influentialCitationCount,year,abstract"
# Who cited this paper
curl -s "https://api.semanticscholar.org/graph/v1/paper/arXiv:2402.03300/citations?fields=title,authors,year,citationCount&limit=10"
# What this paper cites
curl -s "https://api.semanticscholar.org/graph/v1/paper/arXiv:2402.03300/references?fields=title,authors,year,citationCount&limit=10"
# Paper recommendations
curl -s -X POST "https://api.semanticscholar.org/recommendations/v1/papers/" \
-H "Content-Type: application/json" \
-d '{"positivePaperIds": ["arXiv:2402.03300"], "negativePaperIds": []}'

Complete Research Workflow

  1. Discover: search arXiv API
  2. Assess impact: Semantic Scholar citation counts
  3. Read abstract: arXiv API summary field (or web_extract the small abs page)
  4. Read full paper: curl ar5iv HTML + parse locally (NOT the PDF)
  5. Find related work: Semantic Scholar references/citations
  6. Generate BibTeX: API metadata parsing

Rate Limits

APIRateAuth
arXiv~1 req / 3sNone
Semantic Scholar1 req / secondNone

Pitfalls

  • arXiv returns Atom XML — use the parsing snippet for clean output.
  • Old arXiv IDs use format hep-th/0601001, new ones use 2402.03300.
  • Do NOT use /query/tap/ endpoints — they return HTML, not JSON.
  • Do NOT `web_extract` a full PDF (10–20 MB) — it triggers chunked LLM summarization on

the local model and can hang for many minutes. Fetch ar5iv HTML with curl and parse locally.

  • ar5iv URL form is https://ar5iv.labs.arxiv.org/html/<id> (HTML), not /pdf/<id>.
  • Semantic Scholar is read-only — do not attempt to POST paper metadata without the recommendations endpoint.
  • Always check for withdrawn papers — summary field may contain withdrawal notices.

Verification

  • Search returns ≥ 1 paper with title, authors, and arXiv ID.
  • BibTeX entry parses to a valid @article{} block.
  • Semantic Scholar returns non-zero citation counts for well-known papers.
  • ar5iv HTML fetch returns hundreds of KB and parses to non-empty text + ≥1 figure caption.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
4
Repository forks
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/arm2arm/astroagentassistant/arxiv/badge)](https://verified-skill.com/skills/arm2arm/astroagentassistant/arxiv)

Something wrong with this skill or its page? Tell us.