/research-papers:paper-retriever <arxiv-url-or-doi> [optional-output-name]from research-papers
Downloads scientific paper PDFs from arxiv URLs, DOIs, or titles. Handles open-access retrieval and falls back to configured access skills for paywalled papers.
Ships in research-papers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Download a scientific paper PDF to the papers/ directory.
The command examples below use scripts/... paths that are relative to this skill's directory. Resolve them against the installed skill location, not the user's project root.
The argument can be:
https://arxiv.org/abs/XXXX.XXXXX or https://arxiv.org/pdf/XXXX.XXXXX10.XXXX/...https://aclanthology.org/...https://ojs.aaai.org/...$ARGUMENTS names exactly one intended paper. Preserve that identity throughout retrieval.
The goal of this skill is to obtain the intended paper's PDF. Metadata resolution and canonical naming support that goal; they are not the definition of success.
Before downloading, decide whether the input is already a strong paper identifier:
If the input is weak, first infer the intended paper and continue with the strongest identity-preserving input available. Prefer:
Do not keep retrying a weak URL mechanically when a stronger identifier is already apparent.
If the input is a paper title (not a URL or DOI), search for it first:
uv run scripts/search_papers.py "PAPER TITLE" --source all --max-results 5 --json
Review the results. If there's a clear match, extract the strongest available identifier and continue to Step 3. If ambiguous, present the top results to the user and ask which one.
For weak URL input, use the inferred title or metadata from Step 1.5 and perform the same search/normalization before Step 3.
Use the fetch_paper.py script to download the PDF and extract metadata:
uv run scripts/fetch_paper.py "<identifier>" --papers-dir papers/
Where <identifier> is the arxiv ID/URL, DOI, ACL URL, or S2 paper ID from the input or search results.
If you had to normalize a weak input first, use the normalized identifier here rather than the original weak URL.
Use fetch_paper.py as the first download path, not as the definition of whether retrieval is possible. One metadata-resolution failure does not by itself mean the paper is unretrievable.
The script will:
Author_Year_ShortTitle)metadata.json alongside paper.pdfBefore treating Step 3 as successful, verify that the resolved metadata still matches the intended paper. If not, stop on mismatch.
If fetch_paper.py obtains the intended paper's PDF through an allowed path, Step 3 succeeded even if metadata had to be materialized afterward.
If fetch_paper.py returns "fallback_needed": true, the paper couldn't be downloaded via open-access channels. In that case it returns the planned dirname/directory plus inline metadata, but it does not create metadata.json or the paper directory yet.
Choose the fallback path by input shape:
Papers with no DOI and no arxiv ID that live at a canonical publisher URL as HTML (and possibly also as PDF) should use headless Chrome print-to-pdf. W3C Recommendations (https://www.w3.org/TR/...) are the canonical example.
Detect this case when:
w3.org/TR/..., ecma-international.org, or similar publisher URL, ORLocate Chrome:
for p in "/c/Program Files/Google/Chrome/Application/chrome.exe" \
"/c/Program Files (x86)/Google/Chrome/Application/chrome.exe" \
"/usr/bin/google-chrome" "/usr/bin/chromium" \
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"; do
[ -x "$p" ] && CHROME="$p" && break
done
Print the canonical URL to PDF:
mkdir -p "./papers/<dirname>"
"$CHROME" --headless --disable-gpu \
--print-to-pdf="./papers/<dirname>/paper.pdf" \
--print-to-pdf-no-header \
"<canonical URL>"
Chrome must retain its normal sandbox. If the platform cannot run sandboxed headless Chrome, stop and request explicit approval for a suitably isolated alternative; do not silently disable the sandbox. State what isolation will contain the browser before proceeding.
Verify the output is a valid PDF (file ./papers/<dirname>/paper.pdf reports "PDF document", size > 100KB) before treating this as success. Then materialize metadata.json:
uv run scripts/fetch_paper.py "<identifier>" --papers-dir papers/ --output-dir "<dirname>" --metadata-only
If metadata resolution already failed and no DOI/arxiv lookup can produce fields, write metadata.json by hand from the paper's title page (title, authors, year required; doi and arxiv_id as null; url set to the canonical URL).
If this path succeeds, STOP.
For a paywalled DOI/URL, retrieval depends on what access this install has. The access
methods live in separate paper-retriever-* skills so each user enables only the ones
they have. Invoke the enabled access skill(s), in order, until one places the PDF:
/research-papers:paper-retriever-scihub "<identifier>" "<dirname>" — sci-hub (enabled by default)/research-papers:paper-retriever-institutional "<identifier>" "<dirname>" — institutional / library proxy (enable only if configured)Same nested-skill convention as the rest of the plugin: if nested skill invocation works
on this platform, invoke the named skill directly; otherwise open that skill's SKILL.md
and follow its steps inline. A disabled or absent access skill is simply skipped.
Each access skill's only job is to place the intended paper's PDF at
./papers/<dirname>/paper.pdf. When one reports success, materialize metadata and verify:
uv run scripts/fetch_paper.py "<identifier>" --papers-dir papers/ --output-dir "<dirname>" --metadata-only
Then STOP. If no enabled access skill yields the PDF, continue to Option 2.
If the paper is not retrievable above (e.g. a very new paper not yet mirrored), search the open repositories by title:
uv run scripts/search_papers.py "<title>").metadata.json:
mkdir -p "./papers/<dirname>" && curl -L -o "./papers/<dirname>/paper.pdf" "OPEN_ACCESS_URL"
uv run scripts/fetch_paper.py "<identifier>" --papers-dir papers/ --output-dir "<dirname>" --metadata-only
If none of the above yields the PDF, STOP and report cleanly: "copy not found, supply a PDF." Ask the user to download the PDF manually into the paper directory.
file "./papers/<dirname>/paper.pdf"
ls -la "./papers/<dirname>/"
Confirm:
metadata.json exists with title, authors, yearThe core success condition is that the intended paper's PDF exists at ./papers/<dirname>/paper.pdf. metadata.json should also exist by the end of the step, but earlier metadata-resolution failures do not negate successful retrieval if the correct PDF and final metadata are in place.
When done, report:
Retrieved: papers/<dirname>/paper.pdf
Source: [arxiv/aclanthology/sci-hub/unpaywall/open-repository]
Size: [file size]
rm -f ./papers/temp_*.pdfIf Edit/Write fails with "file unexpectedly modified":
./relative, C:/forward/slashes, C:\back\slashesYou may be running alongside other agents in parallel.
FORBIDDEN GIT COMMANDS - NEVER USE THESE:
git stash, git restore, git checkout, git reset, git cleanWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
arxiv, scientific-papers, pdf-retrieval, unpaywall, academic
28 skills in this plugin
/adjudicateSystematically adjudicate disagreements across a paper collection. Produces ruthless verdicts on who was wrong, what supersedes what, and what the best current understanding is. Organized by topic clusters with actionable replacement values for implementation./author-contextIdentify a paper analysis context and author it only through an available Propstore context-owner workflow./author-lifting-rulesAssess justified cross-context applicability and author supported lifting rules when the installed Propstore CLI exposes their owner workflow.npx claudepluginhub ctoth/research-papers-plugin --plugin research-papersOther plugins' skills for the same job