/papers:paper-provenancefrom Papers
Tracks provenance of every number and fact in academic papers, linking results to their source calculations, files, or citations. Validates manuscripts before submission.
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.
A reader, or you next month, should be able to take any number or fact in the paper and follow it
to where it came from. In a LaTeX paper, computed results reach the page from code: a script writes
them to paper/numbers.tex, with the source of each noted beside it, and the text uses their names.
Everything else is recorded in paper/provenance.tsv. A script fails if a number has neither, if a
result was typed, or if the code no longer gives what the paper prints.
Do this for every computed result in a .tex manuscript. One script, scripts/paper_numbers.py
(not numbers.py, which hides a Python module that statistics needs), reads the stored results, computes each number and prints the whole file:
acc = mean_accuracy("results/run-2/metrics.csv", "ours") # your calculation
print("% generated by: python3 scripts/paper_numbers.py")
print(rf"\newcommand{{\accOurs}}{{{acc:.2f}\%}} % source: results/run-2/metrics.csv: mean of accuracy, ours")
Write it with python3 scripts/paper_numbers.py > paper/numbers.tex, put \input{numbers} in the preamble,
and write \accOurs{} in the text. Command names take letters only, no digits.
% generated by: COMMAND, run from the project root. It must
print the file rather than write it.% source: note on its own line: the project file it is computed from, then a
colon and how. Several files are separated by ;..tex file made the same way and brought in with \input. It has a
% source: line of its own near the top, which covers all its numbers.Generated numbers need no row in the record. The check reruns each command and compares the output
with the file, so a stale or hand-edited number fails. For a Python generator it also records which
project files it reads, and each must be a declared source (MANIFEST.txt and code excepted). In a
temporary copy it then alters each declared text source, and every decimal must change when its
sources do, so a constant presented as a result fails. Whole numbers that do not change go to the
review list. A threshold you chose, such as 0.05, is typed with an exempt row, not generated. Your
data is not touched. Keep sources in
results/ or data/, and compute from stored results rather than rerunning an experiment, because
the generator runs several times.
These stay typed, with a row: numbers from other papers (citation), settings you chose (exempt,
or a file row with a reason), and every number in a Markdown manuscript, which has no named numbers.
A computed result may be typed in a .tex manuscript only with a reason in the row's typed column,
for example a value inside a figure caption that LaTeX cannot expand. Generating it is the default;
a reason is not a shortcut.
Tab-separated, with this header. No quoting: a cell cannot contain a tab.
text value kind source typed
| Column | Meaning |
|---|---|
text | Words copied exactly from the manuscript that contain the number or state the fact. LaTeX stays as written (87.79\%). Copy enough to identify this occurrence; the sentence fragment, not the number alone. |
value | The number as printed. Empty for a fact with no number. * for every number in the text, or in the whole table when the text is inside one. |
kind | calculation, file, citation or exempt. |
source | Depends on the kind, below. |
typed | Optional. The reason, in words, a computed number in a .tex manuscript is typed. |
calculation: a command, run from the project root, that prints the number in the units printed
in the paper, and that names a project file (python3 scripts/stats.py mean-ours). It must
recompute from stored results rather than print a saved value. The number is compared at the
printed precision.file: a path relative to the project root that holds the value. Use it for a value stated
directly in a results or data file, and for whole tables with *, where every cell is checked
against the file.citation: the citation key, optionally followed by a colon and where in the paper
(he2016: section 4.2). Use it for facts and for numbers taken from other papers.exempt: the reason in words, for numbers that are not results, such as stride of 2 with
architecture setting chosen by us. Do not use it for results.Our method reached 87.79\% accuracy 87.79\% calculation python3 scripts/stats.py mean-ours
Scores by method * file results/run-2/table1.csv journal template needs a hand-set table
They report a 3.57\% error 3.57\% citation he2016: section 4.2
We used a stride of 2 2 exempt architecture setting chosen by us
worse than that of their 110-layer network citation he2016: section 4.2
Add the number to the script, or the row to the record, in the same edit as the sentence. Never copy
a number from the conversation. In Markdown, write the number from the calculation and record that
calculation. A number with no route goes back to the author rather than into the paper: leave it out
or mark it in the text for them. A value the code does not reproduce stays a failure until the author
settles it; never record it as exempt. One * exempt row covers every occurrence of a model name
such as Llama 3.2 1B.
Facts have no digits for a script to find. Give every factual sentence that is not common knowledge
in the field a citation in the text and a citation row, and check the sentence against the
cited paper's text (not its abstract) before recording it.
python3 "${CLAUDE_SKILL_DIR}/scripts/check_provenance.py" paper/main.tex --ledger paper/provenance.tsv --root . --bib paper/refs.bib
The commands in the record run with the shell, so read a record you did not write before running
it, or pass --no-run to check everything else. On failure (exit code 1), fix the paper or the
calculation. Never edit a number to make the check pass without finding out which side is wrong, and
never add an exempt row for a result.
Exit code 3 means everything the script can test holds, and it lists what only a person can judge:
exempt and typed rows, numbers quoted from citations, generators it could not trace or that run
other programs or stop when altered, binary sources, sources outside results/ and data/, local
style files and decimals in display equations.
Exit code 0 means that list is empty or acknowledged. Report exit code 3 as waiting for the author,
never as a pass. The author reads the list and runs the same command with --ack in a terminal.
Never write the .reviewed file yourself. Changing a listed entry brings it back.
Then:
--sentences lists sentences with no citation and no record. Read them and decide which state
facts that need a source.papers:reference-verifier for the references, and papers:claim-fact-checker on the claims
that matter most.Say these when reporting a pass.
.bbl or the printed PDF, and display equations only reach
the review list, so a result stated only there needs a row added by hand.MANIFEST.txt, which any generator may read, are not
tested.exempt reaches a person through the
review list and goes no further on its own.claim-fact-checker tests it._ARCHIVE, and calculations on a results/<run> with no MANIFEST.txt.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./claim-fact-checkerFan-out fact-checking workflow that checks the claims its extractor lists in a deliverable against archived sources, with one isolated verifier subagent per claim plus a source-quality skeptic, and writes a findings + fix-plan pair. Use this whenever the user wants to fact-check, claims-audit, source-check, or verify a document or an academic paper review against its sources before committing or publishing. Trigger on phrases like "fact-check this report", "verify the claims", "audit the sources", "check this review against the paper", or when finishing a report or paper review that has a folder of sources. Built on Claude Code dynamic workflows, so it stays accurate on long deliverables where a single context window tends to degrade./library-searchSearch across the user's own papers on this machine: the Markdown that academic-pdf-to-mkd writes and the LaTeX that arxiv-fetcher downloads, indexed passage by passage with SQLite full-text search. Use when the user wants to find where a result, method, definition or phrase appears in their papers, asks which of their papers discusses something, wants a passage they half-remember, or wants a folder of converted papers made searchable. Triggers include: 'search my papers', 'which paper said', 'find where I read about', 'search the library', 'index these papers', 'is there anything in my papers on'. Refused papers (subscription papers and manuscripts under review, by the licence check's records) are found by title only, never by their text./paper-reviewMulti-agent academic paper review system. Use this skill whenever the user asks to review, critique, improve, or get feedback on an academic paper, manuscript, preprint, or draft. Triggers include: 'review my paper', 'critique this manuscript', 'find weaknesses in my paper', 'help me improve this draft', 'simulate peer review', 'what would reviewers say', 'prepare for submission', any mention of reviewing a .tex or .pdf paper, or requests to check a paper's theory, experiments, writing quality, or positioning before submission. Also triggers when the user wants to iteratively refine a paper through multiple review rounds. Works with LaTeX source (.tex files) or PDF. Supports venue-specific review rubrics (NeurIPS, ICML, ICLR, COLT, AAAI, JMLR, Nature, Science, PNAS, etc.)./reference-verifierVerify the references/bibliography of an academic paper. Use this skill whenever the user wants to check, verify, validate, audit, or sanity-check the references, citations, or bibliography of a paper, manuscript, or preprint. Triggers include: 'verify references', 'check the bibliography', 'are these citations real', 'find hallucinated citations', 'check for fake references', 'validate the bib file', 'audit citations', 'check DOIs', 'are the references correct', any mention of LLM-fabricated or AI-hallucinated citations, or requests to confirm that cited works actually exist before submission. Works with .tex and .bib source, and with PDF and Word manuscripts, whose reference list Claude transcribes into a .bib first. Performs existence checks, metadata cross-validation, DOI resolution, and duplicate/orphan detection; it does NOT verify whether the cited paper actually supports the claim.npx claudepluginhub shocklab/co-scientist-toolkit --plugin papersOther plugins' skills for the same job