Fetches and verifies source-backed BibTeX for papers using arXiv IDs, DOIs, DBLP keys, OpenReview IDs, or titles. Useful for citation generation, bibliography edits, and reference verification.
Ships in fetch-bib. 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.
Accept arxiv:ID, doi:ID, dblp:KEY, openreview:ID, a title in quotes, or an abbreviation.
For source reliability, field-specific databases, workshop handling, and acceptance verification, read references/citation-guide.md when those distinctions affect the request.
Each principle exists because a specific class of citation error is common and hard to catch after the fact.
Ask when uncertain. Citations involve judgment calls — which of two similar titles is the right paper, whether something is workshop or main track, what venue a paper belongs to. Guessing wrong means the user silently gets a wrong citation in their manuscript. Ask the user about any ambiguous case: multiple candidates, unclear venue, conflicting metadata across sources.
One source per entry. Every field in a BibTeX entry (title, authors, year, venue) should come from the same source. Mixing metadata across sources — even "just the author order" from a different database — creates entries where no single source can verify the whole record. If sources disagree on a field, use the chosen source as-is or ask the user.
Discovery tools are not citation sources. Semantic Scholar and Google Scholar optimize for finding papers, not for metadata accuracy. Their venue names, dates, and author formatting frequently contain errors. Use them to locate papers and collect external IDs, then get the actual BibTeX from authoritative sources downstream.
Honest representation. Citing a preprint as a published paper (or vice versa) is academic misrepresentation. Workshop papers need "Workshop" in the booktitle — using only the parent conference name makes them look like main-track publications.
Entry types follow publication status. Conference or workshop paper → @inproceedings. Journal article → @article. Preprint → per [arxiv].entry_type in bibstyle.toml.
bibstyle.toml governs formatting. It controls field selection, venue style, key format, and arXiv conventions. If absent, create it with the defaults below or the user's custom settings before continuing.
Paperstack replaces the repository's former source wrappers and DBLP downloader. Always request structured output.
| Operation | Command | Use |
|---|---|---|
| Inspect an identifier | paperstack paper metadata <id> [--source <source>] --json | Retrieve source records for a known work |
| Search a source | paperstack paper search "<title>" --source <source> --json | Find candidates and external IDs |
| Check the DBLP index | paperstack index dblp status --json | Decide whether local indexed search is available |
metadata accepts arxiv:, doi:, dblp:, and openreview:. Sources include dblp, crossref, openreview, acl-anthology, arxiv, and semantic-scholar. Search supports all except acl-anthology.
Do not configure a Paperstack corpus. Citation lookup uses paperstack paper; the optional selected-venue DBLP index is managed entirely by paperstack index dblp.
Rate limits still apply to external APIs. Keep concurrent network lookups to 3 or fewer. On a 429, let Paperstack retry or retry once after waiting; do not add workers to evade throttling.
Check the tool and project configuration before starting.
Paperstack — run paperstack --help:
paper, config, and index dblp commands → proceed.uv tool install 'paperstack-cli>=0.3.2'.paperstack-cli.bibstyle.toml — look in the working directory:
Semantic Scholar credential — only when Semantic Scholar discovery is needed, run paperstack config status:
paperstack config set semantic-scholar.api-key so the secret never enters the conversation. Never write it to .env.DBLP index — for bulk, repeated, or offline lookup, run paperstack index dblp status --json:
paperstack index dblp install when it would materially help. Online DBLP lookup remains valid, and an index miss is not proof that a paper is unpublished.Identify the paper and collect its external IDs (DOI, arXiv ID, DBLP key, ACL ID).
paperstack paper metadata <id> --json.paperstack paper search "<title>" --source semantic-scholar --json to locate the paper and collect IDs, then fetch by those IDs. Confirm with --source dblp where applicable.If the input is ambiguous and search returns multiple plausible matches, ask the user to pick. A wrong paper is worse than a brief interruption.
Log the paper title and collected IDs before moving on.
Determine whether the paper is formally published (and where) or still a preprint. This distinction drives everything downstream — a published paper should be cited at its venue, not as an arXiv preprint.
Check in this verification sequence:
paperstack paper search "<exact title>" --source openreview --json) — confirms acceptance decisions directly. Check the invitation or venue data to distinguish workshop from main track.acl-anthology source where available; otherwise inspect the official page directly.If no venue is confirmed after exhausting these → treat as arXiv preprint.
Log: status: published at {venue} or status: preprint.
Obtain citation data from the most authoritative source available.
The critical constraint: if step 2 confirmed a formal venue, do not use arXiv as the BibTeX source. arXiv metadata reflects the preprint version — page numbers, venue, and sometimes even author lists differ from the published version. arXiv is a BibTeX source only for confirmed preprints (papers with no venue after step 2).
Try every source in tier order before falling back. A single failed method (e.g., title search miss) does not exhaust a source — try other methods (DOI lookup, key lookup, proceedings page) before moving to the next tier.
Tier 1 — Publisher / Anthology (authoritative metadata direct from publisher):
| Source | Retrieval | Scope |
|---|---|---|
| ACL Anthology | Paperstack acl-anthology, or aclanthology.org/{id}.bib | DOI prefix 10.18653/ |
| PMLR | Official proceedings.mlr.press/v{vol}/{key}.html export | ICML, AISTATS, CoRL, COLT, UAI, ALT |
| arXiv | Paperstack arxiv | Preprints only — no venue confirmed in step 2 |
| Other publishers | Official ACM DL, IEEE Xplore, Springer, etc. export | Any venue with official proceedings |
Tier 2 — Curated DB (normalized, reliable):
| Source | Retrieval | Scope |
|---|---|---|
| DBLP | Paperstack dblp | By key, title (optional index or online), or DOI |
| Field-specific | Official INSPIRE-HEP, ADS, PubMed export | Non-CS papers when Paperstack has no adapter |
Tier 3 — Fallback (constructed from API data — annotate as unverified):
| Source | Retrieval | Scope |
|---|---|---|
| CrossRef | Paperstack crossref | DOI exists, no higher-tier source available |
| OpenReview | Paperstack openreview | Recent acceptances not yet in Tier 1–2 |
CrossRef construction: title → title, author[].family/given → author, container-title → journal/booktitle, published.date-parts → year.
If the selected record contains bibtex, normalize that entry. Otherwise construct the entry only from fields present in that structured record. Never fill missing fields from another record or from memory.
Apply formatting from bibstyle.toml.
Add a provenance comment showing exactly where the BibTeX came from. This lets the user (and future tools) trace each entry back to its source:
% source: dblp:conf/cvpr/HeZRS16 via paperstack/dblp (https://dblp.org/rec/conf/cvpr/HeZRS16.html)
@inproceedings{he2016deep,
...
}
Use via paperstack/<source> for Paperstack records and via publisher for a direct official export. The URL must resolve to the record actually used.
Tier 3 sources get an additional warning — the user should know this entry wasn't verified against an authoritative source:
% ⚠ UNVERIFIED — constructed from API data, not from authoritative source
% source: doi:10.xxx via paperstack/crossref (https://doi.org/10.xxx)
If the user asks only for BibTeX, output the annotated entry without editing files. For bibliography changes, inspect the target first, detect duplicates and key collisions, preserve its local ordering and formatting, and change only the requested entries.
Walk through every item before outputting. If anything fails, fix it and re-check.
@inproceedings, journal → @article, preprint → per [arxiv].entry_type.[venue].style? Default is abbreviated, meaning short acronyms (NeurIPS, ACL, CVPR) not descriptive names. Sources including DBLP return full names — convert them. If proceedings_prefix is true, prepend "Proceedings of".[fields] for this entry type? Strip stray fields (editor, publisher, address) unless they're explicitly configured.[key].style? lastname_year → he2016deep, lastname_venue_year → he_cvpr2016, acl → ACL Anthology ID.⚠ UNVERIFIED?bibstyle.toml schemaControls all formatting. Create this file before citation work; use these values when the user chooses the defaults.
[fields]
conference = ["title", "author", "booktitle", "year"]
journal = ["title", "author", "journal", "year", "volume", "number"]
# Optional fields: "pages", "doi", "url", "publisher", "address", "editor", "month"
[authors]
max = 0 # 0 = unlimited
[venue]
style = "abbreviated" # "abbreviated" or "full"
proceedings_prefix = false # true → "Proceedings of NeurIPS"
[key]
style = "lastname_year" # "lastname_year", "lastname_venue_year", "acl"
[arxiv]
entry_type = "article" # "article" or "misc"
journal_format = "arXiv preprint arXiv:{id}" # or "CoRR"
When the user forbids network access, pass --offline to Paperstack. If the required record is not cached, stop rather than weakening verification. When a source remains unavailable, continue through Tier 1 → Tier 2 → Tier 3 and disclose the fallback used.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/fetch-bib:fetch-bibfrom fetch-bib
npx claudepluginhub milkclouds/fetch-bib --plugin fetch-bibOther plugins' skills for the same job