agentleFS
HeteroCatHeteroCat/heterocat-skills/.claude/skills/p-arxiv/SKILL.md

arxiv

Skill4 starsChanged 8 months agoApache-2.0View on GitHub

Search and retrieve academic papers from arXiv using the arXiv API. Use when users want to find research papers, search by author/title/abstract, get paper metadata, download paper information, or explore academic literature in physics, mathematics, computer science, and related fields.

43 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use competitor-news-monitor, p5js and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Samin12Skill

    competitor-news-monitor

    Watch named companies for material news; cited digests.

    Also in 7 projects that use this

  • mae616Skill

    p5js

    p5.js(クリエイティブコーディング)のProcessing由来「コードでスケッチ」思想を軸に、setup/drawループ・座標系・インタラクション・パフォーマンス最適化を整理する。p5.js、Processing、クリエイティブコーディング、ジェネラティブアート、インタラクティブ表現、ビジュアルプログラミング、Canvas描画、パーティクル、フラクタル、ノイズ表現に関する相談で必ず使うこと。ユーザーが「コードでアート」「動くビジュアル」「インタラクティブな描画」と言った場合にも適用する。

    Also in 13 projects that use this

  • Tommy-ywSkill

    songwriting-and-ai-music

    Songwriting craft, AI music generation prompts (Suno focus), parody/adaptation techniques, phonetic tricks, and lessons learned. These are tools and ideas, not rules. Break any of them when the art calls for it.

    Also in 12 projects that use this

  • john-data-chenSkill

    teams-meeting-pipeline

    Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.

    Also in 9 projects that use this

  • math-incSkill

    findmy

    Track Apple devices and AirTags via FindMy.app on macOS using AppleScript and screen capture.

    Also in 13 projects that use this

  • math-incSkill

    heartmula

    Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.

    Also in 7 projects that use this

  • +1 more from math-inc

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 43 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search and retrieve academic papers from arXiv's open-access repository.

    line 8
  2. Distinctive:

    Search for papers by keywords:

    line 14
  3. Distinctive:

    Respect rate limits: - Add delays between requests

    line 160
  4. Very specific:

    URL encode queries: - Use urllib.parse.quote() for special characters

    line 161
  5. Very specific:

    Handle pagination: - Use start parameter for large result sets

    line 162
  6. Distinctive:

    When using arXiv data, include this attribution:

    line 166

“Common” is measured: kept by at least 6 in 10 of the 43 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

arXiv API Skill

Search and retrieve academic papers from arXiv's open-access repository.

Quick Start

Basic Search

Search for papers by keywords:

import urllib.request
import urllib.parse
import xml.etree.ElementTree as ET

def search_arxiv(query, max_results=10):
    """Search arXiv for papers matching the query."""
    base_url = "http://export.arxiv.org/api/query"
    params = f"?search_query=all:{urllib.parse.quote(query)}&max_results={max_results}"

    with urllib.request.urlopen(base_url + params) as response:
        return response.read().decode('utf-8')

# Example usage
xml_result = search_arxiv("quantum computing", max_results=5)

Search by Author

def search_by_author(author_name, max_results=10):
    """Search for papers by a specific author."""
    base_url = "http://export.arxiv.org/api/query"
    params = f"?search_query=au:{urllib.parse.quote(author_name)}&max_results={max_results}"

    with urllib.request.urlopen(base_url + params) as response:
        return response.read().decode('utf-8')

Get Paper by ID

def get_paper_by_id(arxiv_id):
    """Retrieve a specific paper by its arXiv ID."""
    base_url = "http://export.arxiv.org/api/query"
    params = f"?id_list={arxiv_id}"

    with urllib.request.urlopen(base_url + params) as response:
        return response.read().decode('utf-8')

Search Query Syntax

Field Prefixes

PrefixField
ti:Title
au:Author
abs:Abstract
co:Comment
jr:Journal Reference
cat:Subject Category
rn:Report Number
all:All fields

Boolean Operators

  • AND - Both conditions must match
  • OR - Either condition matches
  • ANDNOT - Exclude matching results
# Complex query example
query = "au:del_maestro AND ti:checkerboard"
query = "cat:cs.AI AND abs:machine learning"
query = "all:neural network ANDNOT ti:review"

Date Filtering

# Papers submitted in 2023
date_query = "submittedDate:[202301010000 TO 202312312359]"

# Combine with other queries
full_query = f"au:smith AND {date_query}"

Parsing Results

The API returns Atom 1.0 XML. Parse it to extract paper information:

import xml.etree.ElementTree as ET

def parse_arxiv_response(xml_data):
    """Parse arXiv API XML response into a list of paper dictionaries."""
    ns = {
        'atom': 'http://www.w3.org/2005/Atom',
        'arxiv': 'http://arxiv.org/schemas/atom'
    }

    root = ET.fromstring(xml_data)
    papers = []

    for entry in root.findall('atom:entry', ns):
        paper = {
            'title': entry.find('atom:title', ns).text.strip() if entry.find('atom:title', ns) is not None else '',
            'summary': entry.find('atom:summary', ns).text.strip() if entry.find('atom:summary', ns) is not None else '',
            'id': entry.find('atom:id', ns).text if entry.find('atom:id', ns) is not None else '',
            'published': entry.find('atom:published', ns).text if entry.find('atom:published', ns) is not None else '',
            'updated': entry.find('atom:updated', ns).text if entry.find('atom:updated', ns) is not None else '',
            'authors': [author.find('atom:name', ns).text for author in entry.findall('atom:author', ns)],
            'categories': [cat.get('term') for cat in entry.findall('atom:category', ns)],
            'primary_category': entry.find('arxiv:primary_category', ns).get('term') if entry.find('arxiv:primary_category', ns) is not None else '',
            'comment': entry.find('arxiv:comment', ns).text if entry.find('arxiv:comment', ns) is not None else '',
            'journal_ref': entry.find('arxiv:journal_ref', ns).text if entry.find('arxiv:journal_ref', ns) is not None else '',
            'doi': entry.find('arxiv:doi', ns).text if entry.find('arxiv:doi', ns) is not None else '',
            'pdf_url': None
        }

        # Find PDF link
        for link in entry.findall('atom:link', ns):
            if link.get('title') == 'pdf':
                paper['pdf_url'] = link.get('href')
                break

        papers.append(paper)

    return papers

API Parameters

ParameterDescriptionDefault
search_querySearch terms with field prefixes-
id_listComma-separated arXiv IDs-
startStarting index (0-based)0
max_resultsNumber of results to return10
sortBySort order: relevance, lastUpdatedDate, submittedDaterelevance
sortOrderascending or descendingdescending

Usage Limits

  • Maximum results per query: 30,000 total
  • Maximum per request (max_results): 2,000
  • Recommended delay between calls: 3 seconds
  • Results update daily at midnight

Best Practices

  1. Cache results - Store responses to avoid repeated API calls
  2. Respect rate limits - Add delays between requests
  3. URL encode queries - Use urllib.parse.quote() for special characters
  4. Handle pagination - Use start parameter for large result sets

Attribution

When using arXiv data, include this attribution:

"Data provided by arXiv.org"

See references/api_reference.md for complete API documentation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.