scansci-sort

scansci-sort is a skill for Claude Code, Codex from Rimagination/scansci-pdf. It costs 111 tokens per session (2,824 once invoked), scanned A, original, MIT.

A sorting workflow for large lists of academic papers, including normalization, duplicate removal, identifier checks, and routing into source categories such as open-access and repository queues. Open access means the full paper can be read without a subscription.

In plain words
What is it for?
Use it to clean and triage paper lists, check likely legal or institutional sources, create categorized files, and decide the next retrieval route for each paper.
Why use it?
It separates deciding where papers may be available from downloading them, making large retrieval jobs easier to manage. It preserves distinctions between found, missing, blocked, and incomplete results.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to clean and triage paper lists, check likely legal or institutional sources, create categorized files, and decide the next retrieval route for each paper.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rimagination/scansci-pdf/scansci-sort
About the project

Rimagination/scansci-pdf is an agent-oriented tool that finds and downloads academic papers from sources such as open-access repositories, preprint services, publishers, and institutional access routes. It accepts identifiers or literature lists, saves papers as named PDF files, and can also export citations or convert PDFs to Markdown. Its MCP server and agent plugins let coding agents use these paper-retrieval workflows.

Rimagination/scansci-pdf · 1,277 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Rimagination/scansci-pdf --skill scansci-sort
Clone the repo
git clone --depth 1 https://github.com/Rimagination/scansci-pdf

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scansci-sort

README.md
[![agentmods](https://agentmods.dev/badge/skills/rimagination/scansci-pdf/scansci-sort/github.svg)](https://agentmods.dev/skills/rimagination/scansci-pdf/scansci-sort)
Your own site
<a href="https://agentmods.dev/skills/rimagination/scansci-pdf/scansci-sort"><img src="https://agentmods.dev/badge/skills/rimagination/scansci-pdf/scansci-sort/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scansci-sort

Your own site · 80×15
<a href="https://agentmods.dev/skills/rimagination/scansci-pdf/scansci-sort"><img src="https://agentmods.dev/badge/skills/rimagination/scansci-pdf/scansci-sort.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,824 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 12
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.02824
Opus 5.5 $0.00044 $0.01130
Sonnet 5.5 $0.00022 $0.00565
Haiku 4.5 $0.00011 $0.00282

Measured 1mo ago against content hash de45484edaed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scansci-sort scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`www.mdpi.com/pdf` 对脚本 403(Cloudflare 按 TLS 指纹拦:python-ssl 必挂,curl 走代理也挂),但 CDN `mdpi-res.com` 开放且 URL 可构造:
dsh-plugin/skills/scansci-sort/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ScanSci Sort — 大清单文献分类摸底

核心原则:先嗅探、后下载;分类一次、路由到底。4000 篇实测嗅探 ≈30 分钟,之后每层下载只处理属于自己的桶。

环境检查

工具列表有 scansci_pdf_* → 可用 MCP(嗅探主要靠自写并发脚本,MCP 非必需);否则用 CLI scansci-pdf check 确认依赖。

嗅探阶段(只查不载)

0. 数据卫生

  • 去重、去空、规范化 DOI:剥 https://doi.org/ 前缀、小写、trim;正则 ^10\.\d{4,9}/.+ 校验。
  • WOS 导出约 5–6% 行缺 DOI → 提前分离单独文件,不进主流程。

1. OA 判定(全量,不碰灰色源)

  • 首选 OpenAlex:50 DOI/请求、10 并发、~3 min/4000 篇。⚠️ 免费配额按 IP 每日计,共享 IP 可能 429($0 remaining)。
  • 二选 Semantic Scholar 批量:POST /graph/v1/paper/batch?fields=isOpenAccess,openAccessPdf&id=DOI:...,500 篇/请求、无需邮箱、429 退避 10–20s 可续;openAccessPdf 直链质量不错。5645 篇 12 批 ≈3 min(2026-09 实测)。
  • 兜底 Unpaywall 单点并发:10 并发、3 次重试、每 500 条落盘 JSON 断点续传,~17 min/4000 篇。⚠️ 批量端点 POST /v2/dois 经常 500,不可依赖。
  • ⚠️ Unpaywall 拒绝占位邮箱(422 Please use your own email address,错误在响应 body):必须传真实用户邮箱,启动前先拿 1 条 DOI 验证;config.py 的默认 [email protected] 不可用于 Unpaywall。插件本体(mcp scansci_pdf_download)已改为:缺/被拒邮箱时返回 error_type=config_needed + action=ask_user_email(带 agent_hint),先向用户要邮箱再跑,不要静默跳过该渠道。
  • 查不到的 DOI 用 Crossref api.crossref.org/works/{doi} 验证:404 = 未注册(中文刊常见),不代表 Sci-Hub 没有。

2. 灰色源嗅探(只对非 OA 子集,请求量天然减半)

  • Sci-Hub 三镜像轮测:sci-hub.vg / sci-hub.al / sci-hub.ee(国内可达性 2026-08 实测;se/ru/st/ws/wf 不通,ru 返回反爬页)。
  • 15 并发、每篇 3 次重试轮换域名。四分类:hit(HTML 含 (embed|iframe) src="...pdf,命中页 ~8KB)/ miss / turnstile(含 challenges.cloudflare.com/turnstile 或 Verification - Sci-Hub,按 IP 频率随机插入,假 DOI 也会触发)/ blocked(403/503)。
  • ⚠️ HTTP 200 ≠ 成功,验证页也是 200,必须看内容。
  • LibGen 活着但有两道闸(2026-09 实测,推翻旧的"全镜像不可达"记录):libgen.li 走代理/libgen.bz 直连均可达;①裸请求拿到 200 空体——必须先 GET 首页拿会话 cookie 再带 Referer 请求 ads.php?doi=(插件已内置);②文件 CDN(booksdl)大概率 503,对 get.php 链接重试 3-4 次必中。搜不到结果时先区分"没会话"和"真没有"。
  • 三镜像全 miss = 灰色源确认无。

3. 合法 OA 补捞(对 Sci-Hub miss 子集)

  • OpenAIRE:api.openaire.eu/search/publications?doi={doi}&format=json,8 并发,递归提取 webresource.url 过滤 doi.org。实测 837 篇 miss 捞回 136 条记录、5 篇确定直链。
  • 链接分型:.pdf 直链→命中;PubMed 页→NCBI elink 查 PMC(多数无);Scopus/Lens→无用;机构库 landing→GET 页面找 .pdf 链接。
  • DOAJ API:doaj.org/api/search/articles/{doi} 补期刊官网直链。
  • 403/超时 ≠ 无全文(反爬/网络),标注"记录存在但连通受限"。

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +72 lines · +75 tokens per session de45484edaed
  2. 3mo ago First seen · 23 lines · 36 tokens per session scan A aeeb670862e3

Subscribe to this mod's changes

scansci-sort is a skill published in the GitHub repository Rimagination/scansci-pdf (1,277 stars, last pushed today), licensed MIT. It adds 111 tokens to every session and 2,824 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

scansci-sort compared with skills from other repositories

scansci-sort next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scansci-sortRimagination/scansci-pdfSkill1.3ktodayMITA111Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code