bibtex-genlisted
Install: claude install-skill Axect/skills
# bibtex-gen — BibTeX Generator (InspireHEP / Google Scholar / CrossRef)
Generate bibtex entries by routing each query to the most authoritative
source. The skill is **read-only** for the user's existing `.bib` files
unless they pass `--output`, in which case new entries are appended (never
overwritten or de-duplicated — that is the user's call).
## Routing logic
Each input is classified as HEP or non-HEP, then routed:
| Class | Primary source | Fallback |
|------------|---------------------------|----------------------------|
| HEP | InspireHEP (`format=bibtex`) | non-HEP path if InspireHEP returns nothing |
| non-HEP | Google Scholar via `scholarly` | CrossRef DOI bibtex transform |
**Classification rule**: a query is HEP iff InspireHEP returns at least one
match for it. arXiv IDs additionally check the arXiv API for `hep-*` /
`nucl-*` categories as a strong pre-signal. The user can override with
`--hep` or `--no-hep`.
This intentionally aligns with the user's preference:
- HEP citations follow **InspireHEP** style (`Author:YYYYabc` keys, journal
abbreviations, eprint fields, collaboration tagging).
- Non-HEP citations follow **Google Scholar** style first; if Scholar is
unavailable or returns nothing, fall back to the **publisher's bibtex**
via CrossRef's DOI→bibtex transform.
## Inputs accepted
The orchestrator auto-detects the input type:
- **arXiv ID** — `2301.00001`, `arxiv:2301.00001`, `hep-ex/0511032`
- **DO