paper-fetch

paper-fetch is a skill for Claude Code, Codex from HK-hub/AgentSkills. It costs 162 tokens per session (5,848 once invoked), scanned A, a copy of paper-fetch, MIT.

A paper-fetching skill that finds and downloads a research paper's PDF from sources such as open-access repositories, arXiv, PubMed Central, or bioRxiv. bioRxiv is a public server where scientists share research papers before formal peer review.

In plain words
What is it for?
Use it to obtain PDFs for academic papers from a DOI, arXiv ID, title, citation, or list of DOIs.
Why use it?
It reduces the effort of locating an accessible PDF when you only have a DOI, title, citation, or preprint identifier.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to obtain PDFs for academic papers from a DOI, arXiv ID, title, citation, or list of DOIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hk-hub/agentskills/paper-fetch
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 HK-hub/AgentSkills --skill paper-fetch
Clone the repo
git clone --depth 1 https://github.com/HK-hub/AgentSkills

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 paper-fetch

README.md
[![agentmods](https://agentmods.dev/badge/skills/hk-hub/agentskills/paper-fetch/github.svg)](https://agentmods.dev/skills/hk-hub/agentskills/paper-fetch)
Your own site
<a href="https://agentmods.dev/skills/hk-hub/agentskills/paper-fetch"><img src="https://agentmods.dev/badge/skills/hk-hub/agentskills/paper-fetch/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 paper-fetch

Your own site · 80×15
<a href="https://agentmods.dev/skills/hk-hub/agentskills/paper-fetch"><img src="https://agentmods.dev/badge/skills/hk-hub/agentskills/paper-fetch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 162 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,848 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.
Origin 100% copy Near-identical to another mod 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.00162 $0.05848
Opus 5.5 $0.00065 $0.02339
Sonnet 5.5 $0.00032 $0.01170
Haiku 4.5 $0.00016 $0.00585

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

Security

Grade A, and why

paper-fetch 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 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/cloak_pdf.py, scripts/fetch.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Some publishers (e.g. `science.org`) sit behind Cloudflare, which answers a plain HTTP client with a `403`/`429` or a "Just a moment…" JS-challenge page instead of the PDF — so the default `urllib` download can't get thr
Origin

This is a copy

100% identical to paper-fetch — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

paper-fetch/SKILL.md · 325 lines

How it starts

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

paper-fetch

Fetch the PDF for a paper given a DOI (or title). Tries multiple sources in priority order and stops at the first hit.

Resolution order

  1. Unpaywall — https://api.unpaywall.org/v2/{doi}?email=$UNPAYWALL_EMAIL, read best_oa_location.url_for_pdf (skipped if UNPAYWALL_EMAIL not set)
  2. Semantic Scholar — https://api.semanticscholar.org/graph/v1/paper/DOI:{doi}?fields=openAccessPdf,externalIds
  3. arXiv — if externalIds.ArXiv present, https://arxiv.org/pdf/{arxiv_id}.pdf
  4. PubMed Central OA — if PMCID present, https://www.ncbi.nlm.nih.gov/pmc/articles/{pmcid}/pdf/
  5. bioRxiv / medRxiv — if DOI prefix is 10.1101, query https://api.biorxiv.org/details/{server}/{doi} for the latest version PDF URL
  6. Publisher direct (institutional mode only — PAPER_FETCH_INSTITUTIONAL=1) — DOI-prefix → publisher PDF template (Nature / Science / Wiley / Springer / ACS / PNAS / NEJM / Sage / T&F / Elsevier). The caller's own subscription IP / cookies / EZproxy are what authorize the fetch; unauthorized responses fail the %PDF check and fall through to step 7.
  7. Sci-Hub mirrors (on by default; disable with PAPER_FETCH_NO_SCIHUB=1) — last-resort fallback. Tries the mirror list in PAPER_FETCH_SCIHUB_MIRRORS (or built-in defaults sci-hub.ru, sci-hub.st, sci-hub.su, sci-hub.box, sci-hub.red, sci-hub.al, sci-hub.mk, sci-hub.ee) in order; on full miss, scrapes https://www.sci-hub.pub/ once per process for fresh mirrors. CAPTCHA / missing-paper pages have no PDF iframe and fall through silently.
  8. Otherwise → report failure with title/authors so the user can request via ILL

CloakBrowser fallback (download layer, opt-in — PAPER_FETCH_CLOAK=1). This is not a separate source: it sits at the download chokepoint, so it applies to any of the sources above. When a resolved PDF URL is blocked by Cloudflare — HTTP 403/429, or a "Just a moment…" HTML interstitial served in place of the file — and the operator opted in, the URL is retried through CloakBrowser (a stealth Chromium that passes the JS challenge) via the cloak_pdf.py companion. Bytes it returns are re-validated through the same %PDF magic-byte + 50 MB checks; on success the result carries via: "cloak". Off by default, fails closed (missing CloakBrowser → silent fall-through), and the agent cannot opt in — see CloakBrowser access below.

Read the full file on GitHub · 325 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 325 lines · 162 tokens per session scan A c3b4b1c4ebe5

Subscribe to this mod's changes

paper-fetch is a skill published in the GitHub repository HK-hub/AgentSkills (7 stars, last pushed 3mo ago), licensed MIT. It adds 162 tokens to every session and 5,848 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to paper-fetch, differing in 0 lines, and is treated as a copy.

Related

paper-fetch compared with skills from other repositories

paper-fetch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
paper-fetchHK-hub/AgentSkillsSkill73mo agoMITA162Claude Code, Codex
peer-reviewxintaofei/codegSkill4.8k4d agoApache-2.0A71Claude Code
scientific-critical-thinkingxintaofei/codegSkill4.8k4d agoApache-2.0A63Claude Code
scientific-brainstormingxintaofei/codegSkill4.8k4d agoApache-2.0A60Claude Code, Codex
alterlab-qiime2-ampliconAlterLab-IEU/AlterLab-Academic-SkillsSkill882d agoMITA270Claude Code
alterlab-citation-verifierAlterLab-IEU/AlterLab-Academic-SkillsSkill882d agoMITA218Claude Code
alterlab-cobrapyAlterLab-IEU/AlterLab-Academic-SkillsSkill882d agoMITA91Claude Code