Skip to content
Back to skills

Validate Bib

ASecurity

Validate bibliography entries against citations in manuscript and Quarto book files. Find missing entries, unused references, potential typos, and quality issues. This skill should be used when asked to "check the bibliography", "validate citations", or "validate-bib".

  • 5,142 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 3, 2026
research

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill validate-bib --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Validate Bib?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Validate Bib
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/brycewang-stanford-validate-bib-97317a56/badge)](https://www.skillsdirectory.com/skills/brycewang-stanford-validate-bib-97317a56)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: validate-bib
description: Validate bibliography entries against citations in manuscript and Quarto book files. Find missing entries, unused references, potential typos, and quality issues. This skill should be used when asked to "check the bibliography", "validate citations", or "validate-bib".
allowed-tools: ["Read", "Grep", "Glob"]
---

# Validate Bibliography

Cross-reference all citations in manuscript and book files against bibliography entries.

---

## Workflow

### Step 1: Read the bibliography

Read `docs/overleaf/refs.bib` and extract all citation keys.

### Step 2: Scan all files for citation keys

- **`.tex` files** in `docs/overleaf/`: look for `\textcite{`, `\parencite{`, `\cite{`, `\citet{`, `\citep{`, `\citeauthor{`, `\citeyear{}`
- **`.qmd` files** in `book/`: look for `@key`, `[@key]`, `[@key1; @key2]`
- Extract all unique citation keys used

### Step 3: Cross-reference

- **Missing entries (CRITICAL):** Citations used in files but NOT in `refs.bib`
- **Unused entries (informational):** Entries in `refs.bib` not cited anywhere
- **Potential typos:** Similar-but-not-matching keys (Levenshtein distance)

### Step 4: Check entry quality

For each bib entry:
- Required fields present (author, title, year, journal/booktitle)
- Author field properly formatted (Last, First and Last, First)
- Year is reasonable (1900-2026)
- No malformed characters or encoding issues
- Entry type appropriate (@article, @incollection, @techreport, etc.)

### Step 5: Report findings

```markdown
## Bibliography Validation Report
**Date:** YYYY-MM-DD
**Bibliography:** docs/overleaf/refs.bib
**Total entries:** N
**Files scanned:** N .tex + N .qmd

### Missing Entries (CRITICAL)
| Citation Key | Used In | Line |
|-------------|---------|------|
| ... | ... | ... |

### Unused Entries
| Citation Key | Entry Type |
|-------------|------------|
| ... | ... |

### Potential Typos
| Used Key | Similar Bib Key | File |
|----------|----------------|------|
| ... | ... | ... |

### Quality Issues
| Citation Key | Issue |
|-------------|-------|
| ... | Missing journal field |
```

---

## Files to scan

```
docs/overleaf/*.tex
book/*.qmd
```

## Bibliography location

```
docs/overleaf/refs.bib
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.