fetch-bib

A universal agent skill for source-backed BibTeX.
fetch-bib uses Paperstack for paper discovery, external identifiers, metadata records, and its optional DBLP index. The skill keeps the editorial decisions that a metadata tool should not make: which version is citable, whether a work is formally published, which source is authoritative, and how an entry should be written into a bibliography.
It never invents missing metadata. Ambiguous works, conflicting venues, and workshop/main-track uncertainty are shown to the user instead of guessed.
Recorded examples
Published version resolution. A naive lookup may return the 2023 arXiv preprint for StreamingLLM. fetch-bib resolves the ICLR 2024 publication:
Bulk verification. In this recorded test, 14 of 48 generated bibliography entries contained metadata errors: fabricated or incorrect author names, wrong venues, missing co-authors, incorrect pages, or preprints cited instead of formal publications.
The complete bibliography fixtures are retained as before and after files.
Install
Prerequisites:
- Python 3.11 or newer
- uv
- Node.js and
npx for skill installation
Install the Paperstack CLI:
uv tool install 'paperstack-cli>=0.3.2'
Install fetch-bib globally for detected agents:
npx skills add MilkClouds/fetch-bib --skill fetch-bib -g
Target particular agents when needed:
npx skills add MilkClouds/fetch-bib --skill fetch-bib -g -a codex -a claude-code
Omit -g for a project-local installation. Update later with:
npx skills update fetch-bib -g
The skill is stored once in skills/fetch-bib and follows the open Agent Skills specification. It does not require the separate Paperstack agent skill or a configured Paperstack review corpus.
Use
Ask your agent naturally:
Get the BibTeX for arxiv:2106.09685.
Add doi:10.1109/CVPR.2016.90 to references.bib.
Verify every entry in references.bib.
Where was "Attention Is All You Need" published?
Supported identifiers include arxiv:, doi:, dblp:, and openreview:. Titles and common paper abbreviations are also accepted.
The core workflow is:
- Resolve the work and collect stable identifiers with Paperstack.
- Determine whether the citable version is a conference paper, workshop paper, journal article, or preprint.
- Select one authoritative source for the complete entry.
- Apply
bibstyle.toml, add provenance, and check the result.
- Return the entry or make the explicitly requested bibliography edit.
Every entry includes its actual source:
% source: dblp:conf/cvpr/HeZRS16 via paperstack/dblp (https://dblp.org/rec/conf/cvpr/HeZRS16.html)
@inproceedings{he2016deep,
title = {Deep Residual Learning for Image Recognition},
author = {He, Kaiming and Zhang, Xiangyu and Ren, Shaoqing and Sun, Jian},
booktitle = {CVPR},
year = {2016},
}
Crossref and OpenReview are last-resort records and receive an UNVERIFIED warning.
Configure
BibTeX style
On first use in a project, fetch-bib asks whether to create the default bibstyle.toml or customize it:
[fields]
conference = ["title", "author", "booktitle", "year"]
journal = ["title", "author", "journal", "year", "volume", "number"]
[authors]
max = 0
[venue]
style = "abbreviated"
proceedings_prefix = false
[key]
style = "lastname_year"
[arxiv]
entry_type = "article"
journal_format = "arXiv preprint arXiv:{id}"
Semantic Scholar
Semantic Scholar is used for discovery, not as a citation source. Its API key is optional but improves reliability.
paperstack config status
paperstack config set semantic-scholar.api-key
config set prompts without echoing the secret and stores it in Paperstack's user credential store. fetch-bib never asks for the key in chat and never writes it to a project .env.
DBLP
Paperstack owns the selected-venue DBLP index and its release lifecycle:
paperstack index dblp status
paperstack index dblp install
paperstack index dblp update
The index is optional. Without it, Paperstack can use online DBLP lookup. An index miss is not proof that a paper is unpublished because coverage is intentionally limited to selected CS venues.
Source policy