doi-bibtex
Installation
SKILL.md
DOI to BibTeX
Fetch BibTeX
./scripts/doi2bib.sh <DOI>
Paths are relative to this skill's directory.
Accepts bare DOIs (10.1038/nature12373) or full URLs.
Workflow
- Fetch and inspect the BibTeX entry.
- If the user asked only for the citation, return it without modifying files.
- If the user asked to add it, use an explicit bibliography path when provided. Otherwise, inspect the paper's bibliography declarations and nearby
.bibfiles. Ask only when the destination is ambiguous. - Search the destination for the normalized DOI before appending. Report an existing entry instead of creating a duplicate, and preserve the file's formatting when adding a new entry.