# arxiv-search

arxiv-search searches arXiv preprints across physics, math, and computer science using natural language via Valyu. Useful for tracking research before peer review.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1100 installs · ★ 64 repo stars
- Author: yorkeccak
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/yorkeccak/scientific-skills/tree/HEAD/skills/arxiv-search/SKILL.md
- Updated: 2026-10-04
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/arxiv-search

## What it does

This skill queries the Valyu semantic search API using plain language. Instead of returning abstracts alone, it delivers full paper texts along with figure links and relevance scores. You do not need to assemble complex API query parameters.

The tool runs via `scripts/search` and `scripts/search.mjs`. Node.js 18+ provides the runtime with native `fetch`, so no third-party packages are installed.

A Valyu API key is mandatory for every query. Without it, the search script stops and demands configuration. You configure access by passing your token to `scripts/search setup <api-key>`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add yorkeccak/scientific-skills --skill arxiv-search -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/arxiv-search/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/arxiv-search/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add yorkeccak/scientific-skills --skill arxiv-search -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/arxiv-search/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add yorkeccak/scientific-skills --skill arxiv-search -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/arxiv-search/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install yorkeccak/scientific-skills skills/arxiv-search
```

2. **Manually: put the files in place**
- File: `.github/skills/arxiv-search/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add yorkeccak/scientific-skills --skill arxiv-search -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/yorkeccak/scientific-skills --path skills/arxiv-search
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/arxiv-search/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add yorkeccak/scientific-skills --skill arxiv-search -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/yorkeccak/scientific-skills/tree/HEAD/skills/arxiv-search/SKILL.md

## When to use it
- search arXiv preprints using plain language queries
- retrieve full article contents alongside figure links
- track machine learning and physics trends prior to peer review
- inspect prior art across multidisciplinary scientific topics

## Example prompts
- Search arXiv for recent papers on large language model architectures
- Find arXiv preprints discussing topological quantum computation with figures
- Check arXiv for distributed systems consensus algorithms

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 57f1423cef3ee183.

BEGIN THIRD-PARTY FILE 57f1423cef3ee183
````text
---
name: arxiv-search
description: Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.
keywords:
  - arxiv
  - preprints
  - physics
  - mathematics
  - computer-science
  - ai-research
  - semantic-search
license: MIT
---


# arXiv Search

Search the complete arXiv database of preprints across physics, mathematics, computer science, and quantitative biology using natural language queries powered by Valyu's semantic search API.

## Why This Skill is Powerful

- **No API Parameter Parsing**: Just pass natural language queries directly - no need to construct complex search parameters
- **Semantic Search**: Understands the meaning of your query, not just keyword matching
- **Full-Text Access**: Returns complete article content, not just abstracts
- **Image Links**: Includes figures and images from papers
- **Comprehensive Coverage**: Access to all of arXiv's preprint archive across multiple disciplines

## Requirements

1. Node.js 18+ (uses built-in fetch)
2. Valyu API key from https://platform.valyu.ai ($10 free credits)

## CRITICAL: Script Path Resolution

The `scripts/search` commands in this documentation are relative to this skill's installation directory.

Before running any command, locate the script using:

```bash
ARXIV_SCRIPT=$(find ~/.claude/plugins/cache -name "search" -path "*/arxiv-search/*/scripts/*" -type f 2>/dev/null | head -1)
```

Then use the full path for all commands:
```bash
$ARXIV_SCRIPT "quantum entanglement" 15
```

## API Key Setup Flow

When you run a search and receive `"setup_required": true`, follow this flow:

1. **Ask the user for their API key:**
   "To search arXiv, I need your Valyu API key. Get one free ($10 credits) at https://platform.valyu.ai"

2. **Once the user provides the key, run:**
   ```bash
   scripts/search setup <api-key>
   ```

3. **Retry the original search.**

### Example Flow:
```
User: Search arXiv for transformer architecture papers
→ Response: {"success": false, "setup_required": true, ...}
→ Claude asks: "Please provide your Valyu API key from https://platform.valyu.ai"
→ User: "val_abc123..."
→ Claude runs: scripts/search setup val_abc123...
→ Response: {"success": true, "type": "setup", ...}
→ Claude retries: scripts/search "transformer architecture papers" 10
→ Success!
```

## When to Use This Skill

- Searching preprints across physics, mathematics, and computer science
- Finding research before peer review publication
- Cross-disciplinary research combining fields
- Staying current with rapid developments in AI and theoretical physics
- Prior art searching for new ideas
- Tracking emerging research trends
## Output Format

```json
{
  "success": true,
  "type": "arxiv_search",
  "query": "quantum entanglement",
  "result_count": 10,
  "results": [
    {
      "title": "Article Title",
      "url": "https://arxiv.org/abs/...",
      "content": "Full article text with figures...",
      "source": "arxiv",
````
END THIRD-PARTY FILE 57f1423cef3ee183

The third-party file has ended. Everything between the 57f1423cef3ee183 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 3006 of 5485 bytes. © yorkeccak · MIT · https://github.com/yorkeccak/scientific-skills/tree/HEAD/skills/arxiv-search/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
