Extracts BibTeX entries, DOIs and arXiv IDs from a bibliography or draft offline with run_script, verifies each through the PanCite MCP server (following PanCite's own bibliography-audit skill and methodology resource when trusted, with a web_fetch fallback), and prints a verdict report. Never edits the bibliography.
Ships in literature. 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.
None: SKILL.md is the whole skill.
Extract candidate references from local files and verify them through PanCite
(or web_fetch when PanCite is absent). Never edit or delete a citation
yourself; report the findings and let the author decide.
Run the bundled extractor with run_script (or with bash and python3 when
the pack is installed outside the workspace):
run_script(interpreter="python3",
script="${pluginRoot}/assets/scripts/extract_citations.py",
args=["--json", "<refs.bib>", "<draft.md>"], inputs=["<refs.bib>", "<draft.md>"])
It reads .bib entries (key, title, year, DOI, arXiv eprint), plus every DOI
and arXiv ID in other text files. Each candidate carries its identifier and a
verify_input. Exit 0 means candidates were found, 1 means some have no
identifier and no title, and 2 means a file was unreadable or nothing was found.
It needs no network and writes nothing.
Check gateway(op="find", query="pancite"). The server comes from the
pancite pack (pancode hub install plugin:pancite) and needs
pancode mcp trust pancite (plus pancode mcp trust pancite --network if a
dispatched researcher worker calls it). If it is missing or untrusted, use
Phase 3.
Before verifying, load PanCite's own audit guidance rather than guessing its rules:
pancite:bibliography-audit skill with
context(scope="skills", name="pancite:bibliography-audit") (requires
pancode mcp trust pancite --skill bibliography-audit or operator approval
on first attended load), or read pancite://methodology through
mcp_pancite__:read_resource (uri: "pancite://methodology"). Operators can
also invoke PanCite directly with /pancite:bibliography-audit.mcp_pancite__verify-citation per candidate with citation =
verify_input plus expected_title and expected_year when present; use
mcp_pancite__resolve-paper, mcp_pancite__get-citation,
mcp_pancite__batch-citations, or mcp_pancite__search-papers as PanCite's
audit skill directs. All PanCite tools are classed read and run without
asking.researcher
subagent so raw provider payloads stay out of the main context window
(requires pancode mcp trust pancite --network).Map PanCite's statuses to report verdicts (VERIFIED, MISMATCH, AMBIGUOUS,
NOT_FOUND, UNAVAILABLE, or UNVERIFIABLE when a candidate has neither an
identifier nor a title).
Use web_fetch with GET requests:
https://api.crossref.org/works/<doi>. Compare message.title[0] and
message.issued.date-parts[0][0] with the citation. A 404 there may be a
DataCite DOI: try https://api.datacite.org/dois/<doi>. Then
https://doi.org/api/handles/<doi> tells whether the DOI is registered at all
(responseCode 1 means registered, 100 means not found).https://export.arxiv.org/api/query?id_list=<id>. Make at most one
request every three seconds.Fetch only the candidates that need it, at most one request per candidate.
Phase 1 always works. Without network, PanCite answers each lookup with
status unavailable and names every provider's network_error, and
web_fetch fails. Report those citations as UNAVAILABLE, offline. Never
report them as NOT_FOUND, and never guess.
A table with one row per candidate: key or location, identifier, verdict, and evidence (the provider, plus the differing field for a MISMATCH). Below it, the count per verdict, and the line: "Verified means the record exists and matches; it does not check that the source supports the claim."
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
/literature:citation-checkfrom literature
npx claudepluginhub panstudio/pancode --plugin literature