/papers:reference-verifierfrom Papers
Verifies academic paper references against bibliographic databases (Crossref, OpenAlex, Semantic Scholar, arXiv) to detect fabricated citations, metadata errors, broken DOIs, and duplicates. Works with .tex, .bib, PDF, and Word manuscripts.
Ships in Papers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Checks each reference in a paper against authoritative bibliographic databases (Crossref → OpenAlex → Semantic Scholar → arXiv) to catch fabricated references, metadata errors, broken DOIs, and bibliography hygiene issues.
What this skill does:
.tex and .bib source directly. For a PDF or Word manuscript, Claude first transcribes the reference list into a .bib, which the script then checks.tex only: entries in bibliography but not cited, or vice versa)What this skill does NOT do:
.bib entries (reports only; use --suggest-fixes for proposed diffs).bib file, bibliography section, or reference list for accuracyuv run --script "${CLAUDE_SKILL_DIR}/scripts/verify_references.py" <input_file> [options]
Use uv, which installs the script's Python libraries on first use. They are listed at the top of the script. Don't run it with plain python3, which may lack them.
The script accepts .tex, .bib and .bbl input and detects the type by extension. For a PDF or Word file, first transcribe the reference list as described below. For a .tex project with a separate .bib, pass the .tex file. The script locates the .bib through \bibliography{...} and uses the .bbl if no .bib is found.
Options:
--output <path>: write Markdown report to this path (default: <input>_refs_report.md)--cache-dir <dir>: override default cache location (~/.cache/refverify/)--no-cache: bypass the cache for this run--concurrency <N>: parallel API request limit (default: 5; raise carefully)--check-body / --no-check-body: control orphan/missing detection for .tex inputs (default: on if body available)--suggest-fixes: also write <report>.diff.md, replacing the report path's extension with .diff.md. For each metadata_mismatch and low_confidence entry, this Markdown file lists the title, year, DOI and venue suggested by the matched record.--strict: exit non-zero if any reference fails verification (useful in CI)--transcribed-from <file>: identify the PDF or Word file used to transcribe a .bib. The report's confidence line records this.The script reads a contact email from REFVERIFY_CONTACT_EMAIL. If set, the script sends it to all four services in every request's User-Agent header, and as the mailto parameter for OpenAlex. Crossref and OpenAlex use it to assign requests to their faster polite pools. Set it once in your shell:
export REFVERIFY_CONTACT_EMAIL="[email protected]"
If no email is set, the script uses slower, lower-priority anonymous queries and warns once per run. Crossref and OpenAlex may rate-limit or deprioritise these requests under load.
Optionally set SEMANTIC_SCHOLAR_API_KEY if you have one. It raises the rate limit from ~1 req/s to ~100 req/s. Without a key, Semantic Scholar often returns HTTP 429 (rate limited). If Crossref and OpenAlex both searched without finding a match, the reference is still reported as not_found, with a note that Semantic Scholar could not be reached. It is not cached, so the next run queries Semantic Scholar again.
.tex (preferred)Source input is the most reliable. The script:
.tex file and locates \bibliography{file1,file2} to find .bib files.bib is referenced or found, parses the .bbl. One heuristic parser handles every style: it splits entries on \bibitem and guesses the year, DOI, arXiv ID, title (from \emph, \textit or quotation marks) and authors (from the text before the year). Every entry parsed this way has a parse warning, and the report's confidence line says medium.bib entries with a tolerant BibTeX parser (handles concatenation, string macros, common quirks)--check-body is enabled, scans the .tex body for \cite{...}, \citep{...}, \citet{...}, \citeauthor{...}, \autocite{...}, etc., to detect orphans and missing citationsThe script refuses PDF and Word input with exit code 2. Transcribe the reference list into a .bib, then check it:
pdftotext -layout <file>.pdf -. If pdftotext is missing or produces garbled text, use the Read tool. For Word, run pandoc -t plain --wrap=none <file>.docx. On a Mac without pandoc, use textutil -convert txt -stdout <file>.docx; it prints list numbers as bullets, so count the items to recover the numbering. If the PDF is a published paper rather than the user's own manuscript, the licence hook's rules apply to reading it, including its reference list.<file>.transcribed.bib, beside the original. Copy each field exactly as printed: authors, title, journal or venue, volume, number, pages, year, and any DOI or arXiv ID. Put a DOI in doi = {...}. Put an arXiv ID in eprint = {...} with archiveprefix = {arXiv}. The parser reads identifiers only from those fields, or an arXiv ID from an arxiv.org link in url; it ignores identifiers in note, howpublished or the title. Do not correct anything, fill gaps from memory or look anything up, as the check is meant to find errors in the manuscript. Use -- for page ranges and and between authors. Key each entry by its citation in the text: ref1 for [1], or maldacena1999 for "(Maldacena, 1999)". Omit fields not given in the list..bib with --transcribed-from <file>.pdf (or .docx). Tell the user that Claude transcribed the entries and that a flagged entry should be checked against the original before correction.For each parsed reference, the script attempts identification in this order:
works/{doi} (authoritative, no fuzzy matching needed)works?query.bibliographic=... with title + first authorworks?search=...graph/v1/paper/searchEach fuzzy-search candidate is scored out of 100:
rapidfuzz.fuzz.token_sort_ratio of the two lowercased titles, divided by 100 and multiplied by 60A score >= 75 gives verified if no mismatch was recorded, or metadata_mismatch otherwise. A score of 50 to 74 gives low_confidence; below 50, no match is recorded. A mismatch is recorded if title similarity is between 0.5 and 0.85, fewer than half the cited surnames are found, or the years differ. A DOI or arXiv ID match is accepted as the work regardless of score, with status verified if no mismatch was recorded or metadata_mismatch otherwise.
Distinguish a failed lookup from a service reporting no record. Network errors, timeouts, HTTP 429 after retries, 5xx replies and unreadable replies are failures. HTTP 404 and searches with zero results are answers. The script caches only answers, never failures. If no match is found and a Crossref, OpenAlex or arXiv lookup failed, the status is lookup_failed, never not_found. If only Semantic Scholar failed, the status is not_found with a note, and the result is not cached.
When checking raw URLs (reports, blog posts, institutional pages) rather than DOIs:
curl | grep '<title>' with the citation text for a quick check.Each reference is classified into exactly one of:
| Status | Symbol | Meaning |
|---|---|---|
verified | ✅ | High-confidence match; metadata agrees |
metadata_mismatch | ⚠️ | Match found but ≥1 field disagrees (which fields are listed) |
low_confidence | ⚠️ | Best match below threshold; top candidate shown for human review |
not_found | ❌ | Every lookup answered, but none returned a plausible match (possibly fabricated) |
lookup_failed | 📡 | No match found, but a Crossref, OpenAlex or arXiv lookup failed because of a network or service error or rate limit. The reference was not fully checked; this is not evidence of fabrication. Run it again |
unparseable | 🔧 | Could not extract structured fields from the entry |
duplicate | 🔁 | Same work cited under two keys (only the later occurrence flagged) |
orphan | 👻 | In bibliography but not cited in body (.tex only) |
missing | 🚫 | Cited in body but absent from bibliography (.tex only) |
The report is a single Markdown file structured as:
# Reference verification report
## Summary
| Status | Count |
| --- | --- |
| ✅ Verified | 42 |
| ⚠️ Metadata mismatch | 3 |
| ⚠️ Low confidence | 2 |
| ❌ Not found | 1 |
| 📡 Lookup failed (not checked) | 0 |
| 🔧 Unparseable | 0 |
| 🔁 Duplicate | 1 |
| 👻 Orphan | 0 |
| 🚫 Missing | 0 |
**Total references:** 49
**Confidence:** high (parsed from .bib source)
## Issues requiring attention
### ❌ Not found
- **smith2024quantum** — "Quantum entanglement in non-Hermitian systems"
Authors: J. Smith, A. Doe (2024)
Searched: Crossref, OpenAlex, Semantic Scholar, arXiv — no match
*Likely fabricated. Verify with the author or remove.*
### ⚠️ Metadata mismatch
- **jones2021topology** — DOI matches but year disagrees
Cited: 2021 → Crossref: 2020
Cited authors: M. Jones → Crossref: M. Jones, R. Patel
...
## All verified references
(collapsed by default — full list)
The cache defaults to ~/.cache/refverify/cache-v2.json. Its keys are (normalised_title, first_author_surname, year) for fuzzy lookups, doi for direct DOI lookups and the arXiv ID for arXiv lookups. It stores service answers, including "no record", but never failed lookups, so offline checks do not leave cached not_found verdicts. A fuzzy result is not cached if any of its three searches failed. The older cache.json in the same folder is not read. Entries expire after 30 days. Re-running the verifier on a revised draft is therefore fast: only new or changed entries require network requests.
To force a fresh run, use --no-cache. To clear the cache entirely:
rm -rf ~/.cache/refverify/
not_found. Treat not_found as "needs human review", not as "definitely fabricated". Report a lookup_failed reference as unchecked, never as missing: it has not been checked at all. Re-run before drawing any conclusion..tex or .bib source when it exists.low_confidence flags on legitimate references.not_found, check arXiv or the publisher's site directly.Workflow for iterating:
.bib or manuscript. For PDF or Word input, fix the transcribed .bib too.verified (and optionally accepted low_confidence cases)For CI integration, use --strict to fail the build on any non-verified reference.
What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/academic-pdf-to-mkdExtract academic PDFs into structured Markdown (body text, figures, tables, page thumbnails as separate artefacts) with automatic per-file engine selection (docling / pymupdf4llm / MinerU-math / poppler) and an OCR preflight. Use whenever the user wants to convert or extract a paper, preprint, or scanned PDF into Markdown, especially when figures, tables, or equations must survive. Triggers: 'extract this PDF to markdown', 'convert this paper to markdown', 'get the text and figures out of this PDF', 'OCR this scanned paper', 'this PDF has no text layer', 'copy-paste comes out garbled', 'make this PDF searchable for Zotero', 'split these two-up scanned spreads', or any hand-off needing fulltext.md before review (feeds paper-review). Handles math-heavy (MinerU), short born-digital (fast), and two-column (docling) papers, plus a Zotero branch producing a searchable OCR PDF from a scan. For arXiv papers prefer arxiv-fetcher (native .tex is cleaner). Prefer this over the generic pdf skill for research papers./arxiv-fetcherFetch LaTeX source and PDF from arXiv papers. Use this skill whenever the user mentions an arXiv paper, arXiv ID, arXiv URL, or asks to download/fetch/pull/get a paper from arXiv. Also triggers when the user wants to read, review, or analyse an arXiv paper and you need to retrieve it first. Handles all arXiv ID formats (2301.12345, 2301.12345v2, hep-th/0601234, arxiv.org URLs). Downloads source .tex files and PDF. Works as a standalone tool or as a prerequisite for the paper-review skill.npx claudepluginhub shocklab/co-scientist-toolkit --plugin papersOther plugins' skills for the same job