Downloads PDFs for a list of academic papers by title, DOI, arXiv ID, or other identifiers. Resolves open-access PDFs automatically and uses a real browser for paywalled publishers.
Ships in asta-tools. 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.
Given a list of academic papers (titles, DOIs, arXiv IDs, etc.) and a target directory, download the source PDFs.
The skill works in two phases:
openAccessPdf.url and served as a real
PDF). Pure stdlib, no browser, ~1s per paper.Real publishers (Elsevier, Springer/Nature, Wiley, ACS, IEEE…) fingerprint
TLS and JS environments, so a urllib/curl-with-pasted-cookies approach
fails on most of them. A real browser is what works.
| Script | Purpose |
|---|---|
assets/download-pdfs.py | Phase 1: resolve identifiers via asta papers, download open-access PDFs (stdlib) |
assets/browser-download.py | Phase 2: drive Chromium via Playwright with a persistent profile |
Locate the assets directory relative to this skill file.
Confirm three things before starting:
DOI:..., ARXIV:..., CorpusId:..., PMID:..., URL:...,
bare arXiv id (2005.14165), bare DOI (10.x/...), or plain title.
Blank lines and # comments are ignored../pdfs/.If the user pasted the list inline, write it to <output-dir>/paper-list.txt
before running.
INPUT="/path/to/paper-list.txt"
OUTPUT_DIR="/path/to/pdfs"
ASSETS="/path/to/skill/assets" # this skill's assets/ directory
mkdir -p "$OUTPUT_DIR"
python3 "$ASSETS/download-pdfs.py" "$INPUT" "$OUTPUT_DIR"
Writes $OUTPUT_DIR/manifest.json. Per-paper statuses:
| Status | Meaning | Next phase |
|---|---|---|
downloaded | PDF saved to path | done |
already-downloaded | File at path already existed | done |
paywalled | No open-access URL in Semantic Scholar | Phase 2 (browser) |
download-failed | Open-access URL returned an error or non-PDF | Phase 2 (browser) |
resolve-failed | asta papers could not match the identifier | flag for the user |
skipped | Phase 2 only — user closed the tab without downloading | flag for the user |
Show the user the counts and the manifest path. If the counts include
non-trivial paywalled / download-failed, proceed to Phase 2.
The script auto-installs the playwright Python package via uv, but the
browser binary is a separate download (~150 MB). Run once:
uv run --with playwright playwright install chromium
Alternatively, skip this step and use the user's installed Chrome by passing
--channel chrome (see below). Chrome usually has a more "real" fingerprint
and is less likely to be flagged as automation.
uv run --with playwright python3 "$ASSETS/browser-download.py" \
"$OUTPUT_DIR" --manifest "$OUTPUT_DIR/manifest.json"
# Or, to use the user's installed Chrome instead of bundled Chromium:
uv run --with playwright python3 "$ASSETS/browser-download.py" \
"$OUTPUT_DIR" --manifest "$OUTPUT_DIR/manifest.json" --channel chrome
The script runs non-interactively — there is no terminal prompt. All user interaction happens in the browser window. For each paywalled / failed entry, the script:
download-failed cases from Phase 1
are simply blocked by TLS / header fingerprinting and succeed here with
no visible browser at all.~/.cache/asta/pdf-download-profile/. (Override with
--profile.)<meta name="citation_pdf_url"> tag becoming fetchable$OUTPUT_DIR/{ExternalIdKey}_{value}.pdf and updates
the manifest.The script does not read from stdin. The user's options, all driven from the browser window:
request.get step and no browser window
appears for that paper at all.skipped and moves to the next.--timeout SECONDS.If the user is on a headless machine (no $DISPLAY on Linux), the script
exits with an error. Run the skill on the user's laptop/desktop instead.
When done, tell the user:
~/.cache/asta/pdf-download-profile/
contains login cookies and should not be checked into git.If the user wants to index the PDFs for search, suggest the
local-paper-index skill next.
download-pdfs.py calls:
asta papers get <ID> --fields title,externalIds,openAccessPdf,... for
identifiers with a recognized prefix (DOI:, ARXIV:, CorpusId:, etc.),
bare arXiv IDs like 2005.14165, and bare DOIs like 10.x/....asta papers search "<title>" --limit 1 for everything else; the top
match is used.For ambiguous titles, prefer DOIs or arXiv IDs from the user. If the
manifest's resolved title doesn't match what the user intended, ask them
for a more specific identifier and re-run.
The Playwright profile dir holds:
Don't commit this directory and don't share it. It is functionally a credential file.
Defaults to ~/.cache/asta/pdf-download-profile/. To use a fresh profile or
isolate per-project credentials, pass --profile /path/to/dir.
✅ Use when:
local-paper-index,
pdf-extraction, or a literature analysis pipeline❌ Don't use when:
semantic-scholarpdf-extraction after
obtaining PDFs, or asta papers snippet-search for short excerptsasta papers get call per identifier) and Step 2 to be roughly
10–30s per paper after the first login for each publisher.What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/analyze-dataThis skill should be used when the user asks to "analyze this dataset", "run datavoyager", "run data voyager", "explore this data", "what's in this CSV", "statistical analysis of", "find patterns in", or wants an AI-driven, code-executing analysis of a tabular dataset that answers a specific research question./artifactsUse this skill to export and open A2A agent task outputs — "export the task results", "convert the task output to HTML", or work with the structured artifacts produced by an A2A agent task run./asta-cliInstall or update the `asta` CLI to the version pinned by this plugin. Invoke whenever `asta` is not on PATH (e.g. `command not found` for `asta`) or when a subcommand/flag appears missing — that signals a stale install needing an update./asta-tools:pdf-downloadfrom asta-tools
npx claudepluginhub allenai/asta-plugins --plugin asta-toolsOther plugins' skills for the same job