validate-bib

validate-bib is a skill for Claude Code, Codex from alohays/paper2pr. It costs 21 tokens per session (352 once invoked), scanned A, original, MIT.

A bibliography checker for lecture files. A bibliography is the list of published sources used in a lecture; the checker compares it with the citations that appear in the files.

In plain words
What is it for?
Use it to audit Quarto lecture decks and report missing, unused, misspelled or low-quality references.
Why use it?
It finds cited sources that are missing from the bibliography, listed sources that are never cited, possible citation-key typos and incomplete entries.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/alohays/paper2pr/validate-bib
Any agent
npx skills add alohays/paper2pr --skill validate-bib
Clone the repo
git clone --depth 1 https://github.com/alohays/paper2pr

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for validate-bib

README.md
[![agentmods](https://agentmods.dev/badge/skills/alohays/paper2pr/validate-bib.svg)](https://agentmods.dev/skills/alohays/paper2pr/validate-bib)
Your own site
<a href="https://agentmods.dev/skills/alohays/paper2pr/validate-bib"><img src="https://agentmods.dev/badge/skills/alohays/paper2pr/validate-bib.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 352 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.00352
Opus 5 $0.00010 $0.00176
Sonnet 5 $0.00004 $0.00070
Haiku 4.5 $0.00002 $0.00035

Measured 5d ago against content hash 7c64f3933572, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

validate-bib scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/skills/validate-bib/SKILL.md · 47 lines

What it actually says

Validate Bibliography

Cross-reference all citations in lecture files against bibliography entries.

Steps

  1. Read the bibliography file and extract all citation keys

  2. Scan all deck files for citation keys:

    • .qmd files: look for @key, [@key], [@key1; @key2]
    • Extract all unique citation keys used
  3. Cross-reference:

    • Missing entries: Citations used in lectures but NOT in bibliography
    • Unused entries: Entries in bibliography not cited anywhere
    • Potential typos: Similar-but-not-matching keys
  4. Check entry quality for each bib entry:

    • Required fields present (author, title, year, journal/booktitle)
    • Author field properly formatted
    • Year is reasonable
    • No malformed characters or encoding issues
  5. Report findings:

    • List of missing bibliography entries (CRITICAL)
    • List of unused entries (informational)
    • List of potential typos in citation keys
    • List of quality issues

Files to scan:

Quarto/*/*.qmd                    # decks are one level down, under their genre
Quarto/lectures/_series/*/*.qmd   # shared include slides, rendered into series decks

(python3 scripts/deckpath.py --list names every deck.)

Bibliography location:

Bibliography_base.bib  (repo root)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 47 lines · 21 tokens per session scan A 7c64f3933572

Subscribe to this mod's changes

validate-bib is a skill published in the GitHub repository alohays/paper2pr (5 stars, last pushed 2d ago), licensed MIT. It adds 21 tokens to every session and 352 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories