Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bib-manage

БесплатноЗапускает вложенные скриптыНе проверен

ALWAYS use when a manuscript's BIBLIOGRAPHY is the thing being fixed, or when a cite's PDF turns out to be wrong — 'link my bib entries to the PDFs', 'which…

edwinhuот edwinhu★ 28 звёзд на GitHub

Об этом скилле

Bib-manage

What this skill carries — grep references/ for any subject the names below miss: !d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"

Owns the bibliography as an index: every entry pointing at the right PDF, and that PDF being the version of record.

pincite CONSUMES this index — it resolves footnote → source through file = {...} and through nothing else. So the two failures this skill exists to prevent are both silent in pincite: an entry with no file is a pincite that is never attempted, and an entry pointing at a preprint is a pincite that is confidently wrong.

audit    entries with/without file, files missing on disk, entries without a
         DOI, PDFs no entry claims          <- run this first
link     citekey -> PDF, written back as file = {...}
version  is each entry's PDF the published version, or a preprint/proof?
doi      backfill missing DOIs from Crossref, verified against the bib's pages,
         and the PAGE RANGE that same verified record already carries
reconcile
         rewrite the entry's OWN FIELDS from a better source:
         Paperpile > Crossref > the extracted value. Never `file`, never a key
fedreg   fetch the Federal Register PDFs the entries cite

CLI

B="${CLAUDE_SKILL_DIR}/scripts/bibman.py"

python3 "$B" audit   --root .                 # start here
python3 "$B" link    --root . --dry-run       # inspect the mapping first
python3 "$B" link    --root . --backup        # then write
python3 "$B" version --root .
python3 "$B" doi     --root . --dry-run --only aggarwal2015
python3 "$B" reconcile --root . --dry-run            # read the full set FIRST
python3 "$B" reconcile --root . --backup --fields doi,pages
python3 "$B" fedreg  --root . --dry-run

Every path is a flag — --bib, --pdf-dir, --fedreg-dir — defaulting to the layout pincite uses, so the tool works on any manuscript. --only scopes version and doi to named citekeys; --dry-run reports without writing; --backup leaves a .bak; --strict makes version exit 1 on any entry that is not the version of record.

--fields scopes reconcile to a subset of author,title,journal,volume,pages, year,doi,publisher; --pp-index points at the Paperpile CLI's index cache.

audit, link and version never touch the network. doi and fedreg do. reconcile reads Paperpile locally and reaches Crossref only for what Paperpile does not cover.

Facts

  • The link threshold depends on the YEAR, and that is the whole of its accuracy. Two matchers run in order: PDF stem == citekey (48 of 79 on the test bibliography), then Paperpile-style Author Year - Title.pdf on first-author surname plus title similarity (the other 31). Same year, the year corroborates and 0.55 is enough. DIFFERENT year — a working paper against its published version, Lund 2017 → lund2018 — demand ≥ 0.95, because only the title separates two papers by one author. At 0.55 with the year ignored, alexander2010 ("Interim News and the Role of Proxy Voting Advice") claims the PDF "The role of advisory services in proxy voting" at 0.52. That is a wrong file in the bib, which is the one input pincite trusts absolutely — a mis-link there sends a footnote to another paper and can verify CONFIRMED while doing it.

  • Never force a match; REPORT what stays unmapped. On the test bibliography four PDFs stay unclaimed and every one is correct: Alexander et al. 2009 (0.52), Cremers and Romano 2011 whose filename is truncated mid-title by the filesystem (...proxy voting on co ... ion plans..., best match 0.89 against a 2007 entry), and two whose filenames are not Author Year - Title at all. An unmapped PDF costs a minute of human attention. A forced one costs a wrong citation nobody looks at again.

  • Paperpile writes SURNAMES ONLY, so the first-author surname is the FIRST token. Barzuza et al., Bebchuk and Hirst, Rock. Taking the last token — the correct habit for a bibtex author field — reads "Barzuza et al." as an author named "al." and unmapped 14 of 83 PDFs here before it was caught.

  • A 6-digit pages is an Elsevier ARTICLE NUMBER, not a page. J. Fin. Econ. 154 (2024) 103810 is paginated 1–N in its own PDF and IS the version of record. Range-testing it reports every such entry as a preprint — shu2024 and cabezon2025 are both genuinely published and both false alarms without this exception.

  • A publisher's own PDF can be an ADVANCE-ACCESS PROOF. OUP served iliev2021 as pages 1–49 instead of 5581+, v 00 n 0, internal name RFS-OP-….tex — authenticated, current, and useless for a pincite. Flag when the range t

Полный SKILL.md на GitHub

Установить bib-manage в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/bibman.pyscripts/bibman_test.py

FAQ

Что делает скилл bib-manage?

ALWAYS use when a manuscript's BIBLIOGRAPHY is the thing being fixed, or when a cite's PDF turns out to be wrong — 'link my bib entries to the PDFs', 'which sources am I missing a PDF for', 'audit my sources.bib', 'my bib entry has no file field', 'fetch the Federal Register PDFs', 'why can't pincite find this source'. WRONG FILE: 'is this PDF the published version or the preprint', 'this PDF is a book review, not the book', 'the file field points at the wrong paper', 'the PDF doesn't match the citation'. METADATA: 'reconcile my bib against Paperpile', 'these entries were extracted by a model, check them', 'fix the metadata in sources.bib', 'my bib has no DOIs and the fields look wrong', 'pull the real author/journal/volume from my library', 'where did this bib entry's metadata come from'. PAGE RANGES: 'does my bib have page ranges', 'my bib only has start pages', 'backfill the page ranges', 'pull the pages from the DOI', 'add DOIs to my bibliography'. Use proactively before any pincite run — pincite resolves footnotes through `file = {...}` and silently skips entries that lack one. NEGATIVE ROUTING: the page number inside a footnote is pincite, but whether that footnote's PDF is the version of record or the wrong document is THIS skill, mid-pincite-run included; whether a cited source says what the footnote claims is source-verify; Bluebook FORM is bluebook or bluebook-audit; finding or downloading a paper is fetch-paper or paperpile.

Как установить скилл bib-manage?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bib-manage запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить bib-manage с