kayforkind/skill-slice/arxiv
Claude Code and agent skill by kayforkind/skill-slice
- community
Checking that the SKILL.md file is still in the repository.
Searches arXiv via the Atom REST API and enriches papers with Semantic Scholar citations, references, and BibTeX. Use when finding preprints by keyword, author, category, or ID, or generating citations. Not for Hugging Face paper pages (hugging-face-papers) or general web due-diligence (end-to-end-research).
Install
npx vskill@latest install kayforkind/skill-slice/arxivSKILL.md
The same SKILL.md was published earlier as kayforkind/skill-slice/arxiv.
arXiv Research
Search and retrieve academic papers from arXiv via their free REST API, then enrich with citation data from Semantic Scholar. No API key required for either service at baseline rates.
When to Use
- Trigger keywords: "arxiv", "paper", "academic search", "citation count", "BibTeX", "related papers", "research", "preprint", "Semantic Scholar"
- You need to find papers on a topic, by an author, or in a specific category
- You need citation counts, reference lists, or paper recommendations
- You need to generate a BibTeX entry from an arXiv ID
- You need to read a paper's abstract or full PDF content
Prerequisites
curlavailable on PATH (Windows:curl.exeships with Windows 10+; in PowerShell usecurl.exeto avoid theInvoke-WebRequestalias)python3(orpython) for XML parsing and JSON formatting — no third-party dependencies, stdlib onlyweb_extracttool available for reading abstract pages and PDFs- No API keys required for arXiv or Semantic Scholar baseline rates
Windows / PowerShell notes:
- Use
curl.exeinstead ofcurlto bypass the PowerShell alias forInvoke-WebRequest - For multi-line Python snippets in PowerShell, use a here-string (
@' … '@) or write to a temp.pyfile and runpython file.py - Alternatively, use the helper script
scripts/search_arxiv.pywhich avoids inline quoting issues entirely
Procedure
1. Search arXiv by keyword
2. Get clean, parsed output
Use the helper script for the simplest path:
No dependencies — uses only Python stdlib.
Alternatively, parse XML inline:
3. Use search query syntax
| Prefix | Searches | Example | |
|---|---|---|---|
all: | All fields | all:transformer+attention | |
ti: | Title | ti:large+language+models | |
au: | Author | au:vaswani | |
abs: | Abstract | abs:reinforcement+learning | |
cat: | Category | cat:cs.AI | |
co: | Comment | co:accepted+NeurIPS |
Boolean operators:
4. Sort and paginate
| Parameter | Options | |
|---|---|---|
sortBy | relevance, lastUpdatedDate, submittedDate | |
sortOrder | ascending, descending | |
start | Result offset (0-based) | |
max_results | Number of results (default 10, max 30000) |
5. Fetch specific papers by ID
6. Generate BibTeX
7. Read paper content
For local PDF processing, see the ocr-and-documents skill.
8. Enrich with Semantic Scholar (citations, references, recommendations)
Semantic Scholar returns JSON — pipe through python3 -m json.tool for readability.
Get paper details + citation counts:
Get citations OF a paper (who cited it):
Get references FROM a paper (what it cites):
Search papers (returns JSON):
Get paper recommendations:
Author profile:
Useful Semantic Scholar fields:
title, authors, year, abstract, citationCount, referenceCount, influentialCitationCount, isOpenAccess, openAccessPdf, fieldsOfStudy, publicationVenue, externalIds (contains arXiv ID, DOI, etc.)
9. Complete research workflow
- Discover:
python scripts/search_arxiv.py "your topic" --sort date --max 10 - Assess impact:
curl -s "https://api.semanticscholar.org/graph/v1/paper/arXiv:ID?fields=citationCount,influentialCitationCount" - Read abstract:
web_extract(urls=["https://arxiv.org/abs/ID"]) - Read full paper:
web_extract(urls=["https://arxiv.org/pdf/ID"]) - Find related work:
curl -s "https://api.semanticscholar.org/graph/v1/paper/arXiv:ID/references?fields=title,citationCount&limit=20" - Get recommendations: POST to Semantic Scholar recommendations endpoint
- Track authors:
curl -s "https://api.semanticscholar.org/graph/v1/author/search?query=NAME"
Common Categories
| Category | Field | |
|---|---|---|
cs.AI | Artificial Intelligence | |
cs.CL | Computation and Language (NLP) | |
cs.CV | Computer Vision | |
cs.LG | Machine Learning | |
cs.CR | Cryptography and Security | |
stat.ML | Machine Learning (Statistics) | |
math.OC | Optimization and Control | |
physics.comp-ph | Computational Physics |
Full list: https://arxiv.org/category_taxonomy
Rate Limits
| API | Rate | Auth | |
|---|---|---|---|
| arXiv | ~1 req / 3 seconds | None needed | |
| Semantic Scholar | 1 req / second | None (100/sec with API key) |
Pitfalls
- arXiv returns Atom XML, not JSON. You must parse XML — use the helper script
scripts/search_arxiv.pyor the inline Python snippet. Do not attemptjson.toolon arXiv responses. - PowerShell `curl` alias. In PowerShell,
curlis aliased toInvoke-WebRequestby default. Usecurl.exeexplicitly, or remove the alias withRemove-Item Alias:curlin your session. - Inline Python in PowerShell. Multi-line
python3 -c "..."strings break in PowerShell due to quoting differences. Prefer writing to a temp.pyfile or usingscripts/search_arxiv.py. - Rate limiting. arXiv allows ~1 request per 3 seconds; Semantic Scholar allows 1 request per second without an API key. Exceeding these rates results in HTTP 429 or 503 errors. Add
sleep 3between arXiv calls in loops. - arXiv ID formats. Old-format IDs like
hep-th/0601001use a slash; new-format IDs like2402.03300do not. Always URL-encode the slash as%2Fif passing old IDs in query parameters. - ID versioning.
arxiv.org/abs/1706.03762always resolves to the latest version.arxiv.org/abs/1706.03762v1points to a specific immutable version. When generating citations, preserve the version suffix you actually read to prevent citation drift — a later version may substantially change content. The API<id>field returns the versioned URL (e.g.,http://arxiv.org/abs/1706.03762v7). - Withdrawn papers. Papers can be withdrawn after submission. The
<summary>field will contain a withdrawal notice (look for "withdrawn" or "retracted"). Metadata fields may be incomplete. Always check the summary before treating a result as a valid paper. - Semantic Scholar coverage gaps. Not all arXiv papers are indexed in Semantic Scholar. If you get a 404, the paper may not yet be indexed — fall back to arXiv metadata only.
- `max_results` cap. The arXiv API supports up to 30000 results per query, but large result sets are slow and may time out. Use
startfor pagination instead of requesting everything at once.
Verification
- Verify arXiv API is reachable:
Expected: XML output beginning with <?xml and containing <feed and at least one <entry>.
- Verify helper script works:
Expected: One result line with arXiv ID 1706.03762 (the "Attention Is All You Need" paper).
- Verify Semantic Scholar is reachable:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/arxiv/SKILL.md
Popularity
- 7-day trend score
- 5
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
[](https://verified-skill.com/skills/kayforkind/skill-slice/arxiv)