Awesome-Agent-Skills-for-Empirical-Research bib-check
Cross-checks citation keys in index.qmd against references.bib, reporting missing, orphaned, and duplicate entries. Use when verifying citations.
install
source · Clone the upstream repo
git clone https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/29-quarcs-lab-project20XXy/dot-claude/skills/bib-check" ~/.claude/skills/brycewang-stanford-awesome-agent-skills-for-empirical-research-bib-check && rm -rf "$T"
manifest:
skills/29-quarcs-lab-project20XXy/dot-claude/skills/bib-check/SKILL.mdsource content
Audit Citations and References
Cross-check all citation keys in the manuscript against
references.bib and report mismatches.
Steps
-
Read
and extract every citation key:index.qmd- Narrative citations:
@key - Parenthetical citations:
,[@key][@key1; @key2] - Ignore email addresses and
,@sec-
,@fig-
cross-references@tbl-
- Narrative citations:
-
Read
and extract every entry key (the identifier afterreferences.bib
,@article{
, etc.)@book{ -
Check for duplicate keys within
(same key defined more than once)references.bib -
Report three categories:
Errors — cited in manuscript but missing from
:.bib- List each missing key with the line number in
where it appearsindex.qmd - For each, suggest running
to add the entry/project:cite <key>
Orphaned — in
but never cited in manuscript:.bib- List each unused key (informational, not necessarily a problem)
Duplicates — same key appears multiple times in
:.bib- List each duplicate with line numbers in
references.bib
- List each missing key with the line number in
-
Print a summary: total cited keys, total
entries, errors, orphaned, duplicates.bib
Error handling
- If
does not exist, report the error and stop.references.bib - If
contains no citations, report "No citations found" and stop.index.qmd