validate-bib

Cross-reference LaTeX and Quarto citations against a .bib bibliography.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/naj2r/claude-econ-paper-template --skill validate-bib-naj2r
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validate-bib
Source: https://github.com/naj2r/claude-econ-paper-template/tree/main/.claude/skills/validate-bib
Command: npx skills add https://github.com/naj2r/claude-econ-paper-template --skill validate-bib-naj2r

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects mismatches between in-text citations and the bibliography to prevent missing references, unused entries, and low-quality bib records that can break compilation or produce inaccurate reference lists.

Core Features & Use Cases

  • Cross-references citation commands in LaTeX (.tex) and Quarto (.qmd) files against a central .bib bibliography to find missing citation keys and unused entries.
  • Flags potential typos by identifying similar-but-nonmatching keys and reports severity for critical missing items versus informational unused entries.
  • Validates bib entry quality by checking required fields (author, title, year, venue), recommending DOIs when possible, and enforcing natbib-compatible entry types for compilation consistency.
  • Use case: run a project-wide scan before submission to ensure all citations resolve and bibliography entries meet journal natbib expectations.

Quick Start

Run the validation on the project's bibliography and paper sections to get a prioritized report of missing, unused, and problematic bib entries.

Frequently Asked Questions about validate-bib

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my LaTeX citations against my bibtex bibliography for missing entries?

To check LaTeX citations against a bibtex bibliography, cross-reference citation commands in .tex files with entries in a central .bib file. This validation process identifies missing citation keys, unused entries, and mismatched records to prevent compilation errors.

How do I validate required fields and natbib entry types in a .bib file?

Validating required fields and natbib entry types in a .bib file involves checking each bibtex entry for critical metadata like author, title, year, and venue. This ensures records meet natbib compatibility expectations and produce accurate reference lists during compilation.

Can I find unused or mismatched bibtex keys in Quarto .qmd chapters?

Yes, you can find unused or mismatched bibtex keys in Quarto .qmd chapters by parsing citation commands across the manuscript and comparing them against the central .bib bibliography. This flags unused entries and detects potential key typos by severity.

What is the best way to detect citation key typos before submitting an empirical economics paper?

The best way to detect citation key typos before submission is to run a project-wide scan that identifies similar-but-nonmatching keys. This flags potential typos and reports severity for critical missing items versus informational unused entries.

Does bibliography validation work with both LaTeX and Quarto manuscript formats?

Bibliography validation works with both LaTeX and Quarto manuscript formats by parsing citation commands in .tex sections and .qmd chapters. It cross-references these against a central .bib file to find missing keys and validate bib entry quality.

Why does my bibliography break when compiling with natbib?

A bibliography may break when compiling with natbib due to missing citation keys, unused entries, or low-quality bib records lacking required fields. Validating natbib-compatible entry types and checking for mismatches prevents these compilation failures.