Communitygithub.com

Samin12/skills

通過關鍵字、作者、分類或ID搜尋與檢索 arXiv 學術論文。

skills 是什麼?

此技能讓 AI 代理能直接透過 arXiv 的免費 REST API 搜尋與檢索學術論文,無需 API 金鑰或外部依賴,僅需 curl 命令即可運作。它支援多種搜尋語法,包括按標題、作者、摘要類別進行布林查詢,並可排序與分頁結果。此外,整合了 Semantic Scholar API,用於取得引用數據、相關論文及作者資料。此技能適用於 Claude Code、Cursor 等支援 shell 命令與 web_extract 的 AI 代理平台,讓代理能完成從論文發現、影響力評估、摘要與全文閱讀,到生成 BibTeX 引文的完整研究流程。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Samin12/skills/tree/HEAD/arxiv

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

arXiv 研究

通過 arXiv 的免費 REST API 搜尋與檢索學術論文。無需 API 金鑰,無外部依賴 — 只需 curl。

快速參考

動作命令
搜尋論文curl "https://export.arxiv.org/api/query?search_query=all:QUERY&max_results=5"
取得特定論文curl "https://export.arxiv.org/api/query?id_list=2402.03300"
閱讀摘要(網頁)web_extract(urls=["https://arxiv.org/abs/2402.03300"])
閱讀全文(PDF)web_extract(urls=["https://arxiv.org/pdf/2402.03300"])

搜尋論文

API 回傳 Atom XML。可透過 grep/sed 解析,或透過 python3 pipe 得到乾淨輸出。

基本搜尋

curl -s "https://export.arxiv.org/api/query?search_query=all:GRPO+reinforcement+learning&max_results=5"

乾淨輸出(將 XML 解析為可讀格式)

curl -s "https://export.arxiv.org/api/query?search_query=all:GRPO+reinforcement+learning&max_results=5&sortBy=submittedDate&sortOrder=descending" | 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}')
    print(f'   發佈日期: {published} | 分類: {cats}')
    print(f'   摘要: {summary}...')
    print(f'   PDF: https://arxiv.org/pdf/{arxiv_id}')
    print()
"

搜尋語法

前綴搜尋範圍範例
all:所有欄位all:transformer+attention
ti:標題ti:large+language+models
au:作者au:vaswani
abs:摘要abs:reinforcement+learning
cat:分類cat:cs.AI
co:評論co:accepted+NeurIPS

布林運算子

# AND(使用 + 時為預設)
search_query=all:transformer+attention

# OR
search_query=all:GPT+OR+all:BERT

# AND NOT
search_query=all:language+model+ANDNOT+all:vision

# 精確詞組
search_query=ti:"chain+of+thought"

# 組合
search_query=au:hinton+AND+cat:cs.LG

排序與分頁

參數選項
sortByrelevance、lastUpdatedDate、submittedDate
sortOrderascending、descending
start結果偏移(從 0 開始)
max_results結果數量(預設 10,最大 30000)
# cs.AI 的最新 10 篇論文
curl -s "https://export.arxiv.org/api/query?search_query=cat:cs.AI&sortBy=submittedDate&sortOrder=descending&max_results=10"

取得特定論文

# 透過 arXiv ID
curl -s "https://export.arxiv.org/api/query?id_list=2402.03300"

# 多篇論文
curl -s "https://export.arxiv.org/api/query?id_list=2402.03300,2401.12345,2403.00001"

生成 BibTeX

取得論文元數據後,生成 BibTeX 條目:

{% raw %}

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)
if entry is None: sys.exit('Paper not found')
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('}')
"

{% endraw %}

閱讀論文內容

找到論文後,閱讀它:

# 摘要頁面(快速,包含元數據與摘要)
web_extract(urls=["https://arxiv.org/abs/2402.03300"])

# 全文(PDF → markdown,透過 Firecrawl)
web_extract(urls=["https://arxiv.org/pdf/2402.03300"])

如需本機 PDF 處理,請參閱 ocr-and-documents 技能。

常見分類

分類領域
cs.AI人工智慧
cs.CL計算語言學(自然語言處理)
cs.CV電腦視覺
cs.LG機器學習
cs.CR密碼學與安全
stat.ML機器學習(統計學)
math.OC最佳化與控制
physics.comp-ph計算物理

完整列表:https://arxiv.org/category_taxonomy

輔助腳本

scripts/search_arxiv.py 腳本負責 XML 解析並提供乾淨輸出:

python scripts/search_arxiv.py "GRPO reinforcement learning"
python scripts/search_arxiv.py "transformer attention" --max 10 --sort date
python scripts/search_arxiv.py --author "Yann LeCun" --max 5
python scripts/search_arxiv.py --category cs.AI --sort date
python scripts/search_arxiv.py --id 2402.03300
python scripts/search_arxiv.py --id 2402.03300,2401.12345

無外部依賴 — 僅使用 Python 標準庫。


Semantic Scholar(引用、相關論文、作者資訊)

arXiv 不提供引用數據或推薦。請使用 Semantic Scholar API — 免費,基本使用無需金鑰(每秒 1 次請求),回傳 JSON。

取得論文詳細資料與引用

# 透過 arXiv ID
curl -s "https://api.semanticscholar.org/graph/v1/paper/arXiv:2402.03300?fields=title,authors,citationCount,referenceCount,influentialCitationCount,year,abstract" | python3 -m json.tool

# 透過 Semantic Scholar 論文 ID 或 DOI
curl -s "https://api.semanticscholar.org/graph/v1/paper/DOI:10.1234/example?fields=title,citationCount"

取得某篇論文的引用(哪些論文引用了它)

curl -s "https://api.semanticscholar.org/graph/v1/paper/arXiv:2402.03300/citations?fields=title,authors,year,citationCount&limit=10" | python3 -m json.tool

取得某篇論文的參考文獻(它引用了哪些論文)

curl -s "https://api.semanticscholar.org/graph/v1/paper/arXiv:2402.03300/references?fields=title,authors,year,citationCount&limit=10" | python3 -m json.tool

搜尋論文(arXiv 搜尋的替代方案,回傳 JSON)

curl -s "https://api.semanticscholar.org/graph/v1/paper/search?query=GRPO+reinforcement+learning&limit=5&fields=title,authors,year,citationCount,externalIds" | python3 -m json.tool

取得論文推薦

curl -s -X POST "https://api.semanticscholar.org/recommendations/v1/papers/" \
  -H "Content-Type: application/json" \
  -d '{"positivePaperIds": ["arXiv:2402.03300"], "negativePaperIds": []}' | python3 -m json.tool

作者資訊

curl -s "https://api.semanticscholar.org/graph/v1/author/search?query=Yann+LeCun&fields=name,hIndex,citationCount,paperCount" | python3 -m json.tool

實用的 Semantic Scholar 欄位

title、authors、year、abstract、citationCount、referenceCount、influentialCitationCount、isOpenAccess、openAccessPdf、fieldsOfStudy、publicationVenue、externalIds(包含 arXiv ID、DOI 等)


完整研究流程

  1. 發現:python scripts/search_arxiv.py "你的主題" --sort date --max 10
  2. 評估影響力:curl -s "https://api.semanticscholar.org/graph/v1/paper/arXiv:ID?fields=citationCount,influentialCitationCount"
  3. 閱讀摘要:web_extract(urls=["https://arxiv.org/abs/ID"])
  4. 閱讀全文:web_extract(urls=["https://arxiv.org/pdf/ID"])
  5. 尋找相關研究:curl -s "https://api.semanticscholar.org/graph/v1/paper/arXiv:ID/references?fields=title,citationCount&limit=20"
  6. 取得推薦:POST 到 Semantic Scholar 推薦端點
  7. 追蹤作者:curl -s "https://api.semanticscholar.org/graph/v1/author/search?query=NAME"

速率限制

API速率認證
arXiv約每秒 1 次請求不需要
Semantic Scholar每秒 1 次請求不需要(使用 API 金鑰可達每秒 100 次)

備註

  • arXiv 回傳 Atom XML — 使用輔助腳本或解析程式碼片段以獲得乾淨輸出
  • Semantic Scholar 回傳 JSON — 透過 python3 -m json.tool pipe 以提升可讀性
  • arXiv ID:舊格式(hep-th/0601001)vs 新格式(2402.03300)
  • PDF:https://arxiv.org/pdf/{id} — 摘要:https://arxiv.org/abs/{id}
  • HTML(可用時):https://arxiv.org/html/{id}
  • 如需本機 PDF 處理,請參閱 ocr-and-documents 技能

ID 版本控制

  • arxiv.org/abs/1706.03762 始終解析為最新版本
  • arxiv.org/abs/1706.03762v1 指向特定的不可變版本
  • 生成引用時,保留您實際閱讀的版本後綴,以防止引用漂移(後續版本可能大幅變更內容)
  • API <id> 欄位回傳帶版本的 URL(例如 http://arxiv.org/abs/1706.03762v7)

撤回論文

論文可能在提交後被撤回。發生時:

  • <summary> 欄位包含撤回通知(請查找 "withdrawn" 或 "retracted")
  • 元數據欄位可能不完整
  • 在將結果視為有效論文之前,務必檢查摘要

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

Samin12/skills

Chief Security Officer mode. Infrastructure-first security audit: secrets archaeology, dependency supply chain, CI/CD pipeline security, LLM/AI security, skill supply chain scanning, plus OWASP Top 10, STRIDE threat modeling, and active verification. Two modes: daily (zero-noise, 8/10 confidence gate) and comprehensive (monthly deep scan, 2/10 bar). Trend tracking across audit runs. Use when: \"security audit\", \"threat model\", \"pentest review\", \"OWASP\", \"CSO review\".

Samin12/skills

Geocode, POIs, routes, timezones via OpenStreetMap/OSRM.

Samin12/skills

p5.js sketches: gen art, shaders, interactive, 3D.

Samin12/skills

Write a markdown plan to .hermes/plans/; no execution.

Samin12/skills

Ship workflow: detect + merge base branch, run tests, review diff, bump VERSION, update CHANGELOG, commit, push, create PR. Use when asked to \"ship\", \"deploy\", \"push to main\", \"create a PR\", or \"merge and push\". Proactively suggest when the user says code is ready or asks about deploying.

Samin12/skills

Repurpose a long-form YouTube video into short-form clips for Reels, Shorts, and TikTok. Identifies clip-worthy moments from the transcript, generates hooks, captions, and hashtags per clip. Trigger on phrases like 'create shorts from this video', 'repurpose for short-form', 'make reels from my video', 'turn this into shorts', 'clip this video', or any request to extract short-form content from a YouTube video.

Samin12/skills

Reach for this first for external or live data. ~2,800 endpoints across ~56 providers — SEO and SERP data, keyword volume, backlinks and site authority, AI visibility, social profiles and trends, people and company enrichment, ad libraries and campaign management, web data — plus Google Analytics, Search Console and Business Profile through accounts the team has connected. Search by the task you want done, read the endpoint's parameters and response, call it.

Samin12/skills

X/Twitter via xurl CLI: raw post search, posting, DM, media.

相關技能