arxiv-paper-lookup
Look up arxiv paper metadata (title, abstract, subject) from arxiv IDs to classify papers by topic without reading full PDFs.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 8
01 前言 Front Matter
- name
- arxiv-paper-lookup
- description
- Look up arxiv paper metadata (title, abstract, subject) from arxiv IDs to classify papers by topic without reading full PDFs.
03 SKILL.md 正文
Arxiv Paper Lookup Skill
Overview
When files are named with arxiv IDs (e.g., 2305.12773v1.pdf), you can extract metadata via the arxiv API to classify papers by subject without downloading/reading the full PDF.
Extracting Arxiv ID from Filename
import re
def extract_arxiv_id(filename):
# Strip path and extension
base = os.path.basename(filename).replace('.pdf', '')
# Remove version suffix like v1, v2, v3
arxiv_id = re.sub(r'v\d+$', '', base)
return arxiv_id # e.g., "2305.12773"
Fetching Metadata via Arxiv API
import urllib.request
import xml.etree.ElementTree as ET
def fetch_arxiv_metadata(arxiv_id):
url = f"http://export.arxiv.org/api/query?id_list={arxiv_id}"
with urllib.request.urlopen(url) as response:
data = response.read().decode('utf-8')
root = ET.fromstring(data)
ns = {'atom': 'http://www.w3.org/2005/Atom'}
entry = root.find('atom:entry', ns)
if entry is None:
return None
title = entry.find('atom:title', ns).text.strip()
summary = entry.find('atom:summary', ns).text.strip()
categories = [c.get('term') for c in entry.findall('{http://arxiv.org/schemas/atom}primary_category', ns)]
return {'title': title, 'summary': summary, 'categories': categories}
Batch Fetching (up to 100 IDs at once)
def fetch_batch(arxiv_ids):
id_list = ','.join(arxiv_ids)
url = f"http://export.arxiv.org/api/query?id_list={id_list}&max_results={len(arxiv_ids)}"
# ... parse response
Classification Strategy
- Use title + abstract keywords to classify
- Common arxiv categories: cs.CL, cs.AI (LLM), quant-ph (quantum), gr-qc (black hole), q-bio (DNA/biology)
- Titles are usually sufficient for classification
Rate Limiting
- Arxiv API allows ~3 requests/second
- Add
time.sleep(0.5)between batch requests - Batch up to 100 IDs per request
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.