/paperlint:verify-citationsfrom paperlint
Verifies every citation in an academic paper is a real work with correct metadata (arXiv/DOI/venue+year) and that the paper explicitly states its delta over the nearest prior work. Runs continuously whenever a \cite is added or moved. Use as a pre-submission gate.
Ships in paperlint. 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.
Editing the paper's text after an approved copy exists (paperlint versions approve): declare each change in versions/<cycle>/changes.yaml, paperlint versions diff shows what was lost (EXPERIMENTAL; docs/rules/cycle/changes-since-approved.md).
Reviewers reject on a single fabricated or wrong citation — it reads as either sloppiness or a hallucinated bibliography, and either one is fatal. And they reject on "this was already done by ___" if your delta over the nearest prior work isn't spelled out. This skill closes both holes before submit.
It re-runs whenever a \cite is added or moved. Not once, not "at the end" — every time the
bibliography changes, including the edit you make on the last day. Scorecard row cites in
<paper-dir>/PIPELINE-STATUS.md; see the CONTINUOUS section of paper-pipeline.
cites row dated before a \cite was added or
moved does not cover that cite; a prose edit that moves no \cite leaves the row as it is.
paper/refs-checked says when the last build's references were not checked.\cite is enough to fire it. There is no batch size below which this is skippable.For EACH reference in the .bib / bibliography:
% VERIFY in the .tex at the cite site and resolve it
before submit. A VERIFY that survives to submission is a bug.The most common substantive reject is "this was already done by ___." Defend against it in the prose, not just the bibliography:
Every subfield has a paper a reviewer expects to see; its absence reads as "the authors don't know the area." Ask: what is the one work a reviewer in this exact niche will look for first? Make sure it's cited and positioned. If you genuinely shouldn't cite it, know why.
scripts/verify-cites.mjsSections 1–4 are LLM judgment: good for the delta and the expected-citation calls, but non-reproducible
for the mechanical part — "does this id actually resolve?". scripts/verify-cites.mjs compiles that part into
a deterministic, cacheable gate (same "prose isn't policy → make it a self-checking artifact" move as
build-benchmark).
What it does. For each citation it hits four real databases — Crossref, OpenAlex, Semantic Scholar,
arXiv — DOI/arXiv-id first, then a title search. Title comparison is robust, not raw Levenshtein: it
also does token-set containment + acronym expansion, so a split subtitle ("Gotta Catch 'Em All" vs the
subtitled full title), an abbreviation ("Deep CNNs" ↔ "Deep Convolutional Neural Networks"), or a
preprint→published title drift does not read as an unrelated paper. Normalization preserves Unicode
letters, so two different non-Latin titles no longer collapse to the same empty string. A title search
match still needs year within ±1. A CVE-YYYY-NNNNN is checked against NVD; a PoC/exploit commit is
checked for exactly 40 hex chars (short / >40 / malformed → advisory flag, not a verdict).
The DOI-authority gate (M1 — why a 404 is never fabrication). A 404 from a content registry
(Crossref / OpenAlex / Semantic Scholar) means only "this registry has no metadata," which is the common
case for DataCite/Zenodo DOIs and freshly-minted 2026 DOIs (including a paper's own artifact DOI). It is
not disproof of existence. So before ever emitting false for a DOI, the reducer requires the DOI
authority — doi.org/api/handles/{doi} — to say the handle does not exist (responseCode 100). A DOI
that resolves at doi.org but has no registry metadata → unresolvable (exists, metadata unverifiable),
never false. For arXiv ids, only a definitive not-found from the reachable arXiv API itself is disproof
(a Semantic-Scholar miss on a fresh arXiv id is not); arXiv's "Error" sentinel entry is detected as
not-found, not mistaken for an unrelated paper.
The narrowed-false rule (the important part). The reducer collapses evidence to three verdicts:
| verdict | when | meaning |
|---|---|---|
true | any resolver matched (match always wins) | found, metadata matches |
false | no match and an authoritative disproof: doi.org says the DOI is responseCode 100, the reachable arXiv API definitively rejects the id, NVD has no such CVE, or the id's own registry (arXiv for an arXiv id or arXiv DOI, Crossref for any other DOI) puts it on a confidently-different paper (DOI_MISMATCH) | fabrication — the only thing we call fabrication |
unresolvable | title-misses, registry-404s with no authority disproof, uncomparable titles, and/or unreachable resolvers | couldn't verify, but no positive disproof |
The whole point: a title you simply can't find is NOT fabrication → unresolvable, never false. A
real-but-unindexed / regional / pre-digital paper looks exactly like a title-miss; a registry-404 without a
doi.org not-found looks exactly like a DataCite DOI; a network outage looks like neither — all degrade to
unresolvable. The reducer never turns a transport failure or a registry-404 into false. Fabrication
requires positive disproof from the relevant authority, or a DOI pointing at a confidently-different
paper.
How to run.
node ${CLAUDE_SKILL_DIR}/scripts/verify-cites.js cites.json # JSON array of {id,doi?,arxiv?,title?,year?,cve?,commit?}
node ${CLAUDE_SKILL_DIR}/scripts/verify-cites.js refs.bib # best-effort .bib extraction
cat cites.json | node ${CLAUDE_SKILL_DIR}/scripts/verify-cites.js -
node ${CLAUDE_SKILL_DIR}/scripts/verify-cites.js cites.json --offline # no network (everything degrades to unresolvable)
It prints per-cite {id, verdict, reason, matched_db, matched_title?, flags?} + a summary, and exits 1 iff
any false (fabrication) — unresolvable alone is advisory and does NOT fail the gate, matching the
narrowed-false philosophy. API responses are cached to ~/.cache/paperlint/cite-cache.json
(VERIFY_CITES_CACHE overrides) so re-runs are cheap and deterministic — outside the installed package,
which npm ci wipes.
paperlint build — from a committed cachenpx paperlint build runs verify-cites and bib-authors over the paper's bibliography after the PDF is
built and records the verdicts, with the SHA-256 of the bibliography it checked, in
<paper>/_build/references.json. paperlint lint reads that record offline: paper/cite-exists and
paper/author-list report a failing entry on its own line, paper/refs-fresh says when the bibliography
changed since, and paper/refs-checked warns when nothing was recorded or the build had no network. The
step never fails the build.
What the services ANSWERED is kept in <paper>/repro/data/references-cache.json — commit it. A build asks
only the questions that file cannot answer (a new or edited entry, or an answer older than 30 days), so an
unchanged bibliography builds with no network at all, in CI too, until its answers age out. It holds responses, never verdicts: the verdicts are derived again on
every build. A service that refuses (429, HTML instead of JSON, a timeout) is not asked again for the rest of the
build (the requests already in flight still land); the entries it would have answered say not asked: <service>: <reason>, and DBLP's become
authors: unchecked. Answers are asked again after 30 days; to refresh one sooner, delete its entry, or delete the file. Details:
docs/references.md in the package. Run the scripts by hand (below) to read a single verdict in full.
scripts/bib-authors.mjsverify-cites.mjs answers "does this citation exist, and does the id point at it?". There is a second
question it structurally cannot ask: is our author list the one of the version we cite (the proceedings),
or the arXiv preprint's? The two are often different lists, and every existence check passes either way.
The three defects that found it: docs/design/verify-citations-history.md in the package.
How to run.
node ${CLAUDE_SKILL_DIR}/scripts/bib-authors.js <paper-dir> # the databases bibtex opened in the last build; or a .bib, or a .tex
node ${CLAUDE_SKILL_DIR}/scripts/bib-authors.js <paper-dir> --json
Exits 1 on any author-set or author-order disagreement, 0 when clean, 2 on usage/IO error. A paper
directory or a .tex is read through the build's record (_build/sources.json): a paper that was never built,
or changed since, is refused (exit 2) and told to run npx paperlint build first — the databases are TeX's answer,
not a reading of the source. A .bib named is read as itself.
Source is DBLP, and that choice is the evidence. DBLP indexes the proceedings record and the CoRR record separately, so a single query returns both lists side by side — the cleanest proof available that the difference is real and not a metadata glitch. Entries that themselves declare a preprint venue are out of scope (a preprint entry is allowed to carry preprint metadata).
Two rules hold the checker honest: it compares surname sequences only (Last, First vs
First Last is formatting, not a finding), and a failed lookup is never a skip — it lands in its own
bucket and turns the verdict to PARTIAL, never PASS. Why DBLP and not rebiber, and how both rules
were measured: docs/design/verify-citations-history.md in the package.
Honest limits. Semantic Scholar rate-limits (HTTP 429) without an API key, and arXiv's export API can be
unreachable behind some proxies — both degrade to unreachable (→ contribute nothing, never false). And,
by design, the gate declines in three situations rather than risk a false accusation:
unresolvable, and is caught by the LLM claim-faithfulness check (§1) + human review, not here. Verifying
a work exists is not the same as verifying the paper's claim about it is faithful — that's §1's job.DOI_MISMATCH — the id counts as resolved (true) or, absent other confirmation, unresolvable.
Never false. The doi_mismatch → false verdict fires only for two confidently-comparable titles that
are genuinely different.unresolvable with DOI_MISMATCH unconfirmed. Aggregators copy metadata and do attach DOIs to the
wrong work; on 2026-10-01 OpenAlex mapped the arXiv DOIs of SWE-bench and ReAct to unrelated papers while
arXiv was rate-limiting. Only the id's own registry can disprove it.unresolvable, because the work exists but its metadata (title/year) cannot be cross-checked here. This
is the correct verdict for a paper's own artifact DOI; treat unresolvable as advisory, not a failure.Known narrow residue (rare, treat a lone DOI_MISMATCH → false as advisory, eyeball it). Two edge cases
can still mis-fire: (a) a correct DOI whose own registry records junk metadata — e.g. the container /
proceedings title instead of the paper's — reads as "unrelated" (mitigated when any other registry has the real
title, since a match wins); (b) a translated-journal title in the same script (transliterated Latin vs
English) that shares no tokens. Both need semantics the gate doesn't have; both are near-zero frequency in an
English CS bib. Identifier-prefix / trailing-punctuation mangling (doi:, arXiv:, a bib-swallowed .) is
fixed — normalized at the verify boundary — so the common real-DOI-→-false path is closed.
extract-ref-facts.mjs + the refs/* ESLint rules§5 asks does this identifier name a real work. This one asks is the work it names the one the entry describes — and those are different questions, which is why they are different tools and not one flag. Run both; neither replaces the other.
# 1. measure: parse the bibliography bibtex opened (build the paper first), ask CrossRef/arXiv, write _build/refs.facts.json
node ${CLAUDE_SKILL_DIR}/../paper-pipeline/scripts/extract-ref-facts.js <paper-dir>
node ${CLAUDE_SKILL_DIR}/../paper-pipeline/scripts/extract-ref-facts.js <paper-dir> --offline # cached responses only
# 2. judge: rules over those facts — severity from the config, positions, disable-with-reason
npx eslint --no-config-lookup --config eslint.config.mjs "<paper-dir>/_build/refs.facts.json"
The difference from §5: verify-cites.mjs never compares an author list or an exact year; the refs/*
rules do, and a reference they cannot check (no identifier, a partial comparison) is reported as a
finding, one rule per reason, never counted as verified. Why, and what it found: docs/design/verify-citations-history.md in the package.
\cite added or moved. A cites row older than that change does not cover
it — "we checked last cycle" is not a verification.% VERIFY.unresolvable, not a fabrication — false needs an authoritative disproof
(doi.org responseCode 100, a reachable arXiv rejection, NVD-has-no-CVE) or a confidently-different title.
A registry-404, an uncomparable/non-Latin title, or any transport failure is unresolvable, never false.SKILL.md.spec.ts (opens in a new tab)scripts/__snapshots__/verify-cites.net.test.mjs.snap (opens in a new tab)scripts/bib-authors.check.test.mjs (opens in a new tab)scripts/bib-authors.cli.test.ts (opens in a new tab)scripts/bib-authors.d.mts (opens in a new tab)scripts/bib-authors.mjs (opens in a new tab)scripts/bib-authors.test.mjs (opens in a new tab)scripts/verify-cites.cli.test.ts (opens in a new tab)scripts/verify-cites.d.mts (opens in a new tab)scripts/verify-cites.mjs (opens in a new tab)scripts/verify-cites.net.test.mjs (opens in a new tab)scripts/verify-cites.test.mjs (opens in a new tab)verify-citations.eval.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (zernie/paperlint) — no native marketplace selected
npx claudepluginhub p/zernie-paperlint23 skills in this plugin
/analyze-sibling-paperDeep-analyze a specific related / competing / concurrent paper — reading the ACTUAL paper, not its abstract — to decide the "isn't this just X?" question before a reviewer asks it: what it really does, whether it's prior or concurrent work, the strongest scoop a reviewer could claim, whether your delta is REAL or merely cosmetic, and the exact cite + positioning clause (or a scoop escalation) to apply. Saves the analysis to the paper's research folder and surfaces action points. Use whenever a paper close enough to yours surfaces — via verify-citations' nearest-neighbor, a reviewer's "this was already done", your own lit search, or an arXiv alert. Distinct from verify-citations (confirms a cite is real + one-line delta) and study-accepted-papers (mines a venue's accepted corpus for levers); this one does the deep per-competitor overlap/scoop analysis. Compose with verify-citations (feeds it neighbors), harden-paper (its nearest-neighbor-scoop axis calls this), and extend-paper (a scooped angle can become the extension's pivot)./argument-arcBuild or repair the paper's argument architecture — the one-sentence-per-section outline, the bottom-up inevitability pass, and the name/number budget. Run it when the reader says the paper throws ideas at them, when a structural objection repeats, or before any large rewrite. Not a prose or length skill.