/paperpush:paperpush-validatefrom paperpush
Validates academic manuscript .sub files against venue guidelines, running deterministic checks (form fields, references, layout, prose) and producing a color-coded PDF report. Supports unsupported venues by building temporary guidelines.
Ships in paperpush. 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.
paperpush validate runs every deterministic check itself: form fields, files,
links, DOIs, registry searches for references without a DOI and for
preprints that have since been published, the .bib file's structure,
sensitive data, hidden text, the venue's author guidelines, page
layout (margins, font, size, spacing, line/page numbers, template), figures
(resolution, lettering size and typeface in vector figures, panel labels),
figure/table citation order, whether the title, abstract, authors,
keywords, and statements in the .sub match the manuscript, and mechanical
prose checks (double spaces, doubled words, punctuation spacing, unbalanced
brackets and quotes, common misspellings, numbers, abbreviations, acronyms).
Some checks need someone to look at the files. Without an API key they come
back as needs AI. You are that reader: the CLI writes those checks out as
tasks, you do them, and the CLI merges your verdicts into the report. No
--ai flag or API key is involved.
.sub file (absolute path). If the user did not give one, look for a
<venue>.sub.txt in the manuscript directory they named. If there is none,
don't make one just to validate: name the files instead, e.g.
paperpush validate --venue <venue> --manuscript <abs> --title-page <abs> --cover-letter <abs> --figures <abs> ... --supplement <abs> (MCP: the same
arguments to validate_subfile / validation_ai_tasks). Without a venue,
leave --venue out: only the checks that apply to any manuscript run (links,
references, hidden text, citation order, prose, ...). The form checks come
back not applicable, so the report is about the files, not whether the
submission is ready. Re-run with the same flags to merge --ai-results.--manuscript takes
one file, and each form sees different things. The .tex run reads the
.bib (DOIs registered to other works, preprints since published,
duplicate and uncited entries), the source's headings, acronyms, comments,
and secrets; the PDF run measures what was printed (layout, fonts, page
count, metadata, links, figure placement). Run step 1 twice with the same
other flags, --manuscript <abs main.tex> and --manuscript <abs main.pdf>
(separate --ai-tasks files; do the AI tasks once, from the PDF run, and
merge them there), and report every Failed and Warnings entry from both.
Both runs would save to the same default path, so give the .tex run its
own report next to the .sub, -o <sub dir>/<sub stem>_tex_validation.pdf --overwrite (it gets no merge step), and let the PDF run's merge (step 3)
save the default <sub stem>_validation.pdf.
The same goes for a .sub whose manuscript is one form while the other is
in the directory. Never validate only the PDF because it is "what will be
submitted"..sub, by default. Don't ask
where to save it. The final run (step 3) saves it as
<sub stem>_validation.pdf next to the .sub (or next to the first file
named, without a .sub), replacing an earlier one there, so leave -o
off. Never point -o at the scratch directory: scratch is for the task
and result JSON only, and a report saved there is lost to the user. Pass
-o <abs path> --overwrite only when the user names another place or
format (.html/.md/.txt), and --no-report on the final run only when
they say not to save it. Mention --colorblind if they ask for
color-blind-friendly colors, and --dark if they want a dark-view report.describe_venue shows manuscript.initial_submission_any_format). If so,
add --initial-submission (MCP: initial_submission=true) so errors are
reported as warnings.--reproduce-figures (MCP: reproduce_figures=true) to every command
below, including the one that merges --ai-results. It runs the authors'
code on this machine and can take --reproduce-minutes (default 30) per
figure, so confirm before starting if they did not ask in so many words.Before step 0, resolve the venue to its slug. Every command takes the venue's
slug (acl_arr, nature_methods), not the name the user typed ("ACL
Rolling Review", "Nat Methods", "ARR"). Don't guess a slug. Run
paperpush venues and match the user's name against each row's slug,
name, and full name (abbreviations in parentheses count). paperpush
also accepts the exact name or full name, and an unknown name fails with
unknown venue '...'. Did you mean: <slugs>?: retry with the suggested
slug that fits. Only when no row is the venue the user means is it
unsupported (step 0). Never drop to a manual review because a slug
guess failed.
Venue paperpush does not support yet? If the user names a venue
(--venue, or the venue they want a .sub for) that paperpush venues
does not list (try its name, abbreviation, and publisher's title), don't
stop there and don't fall back to venue-free checks silently. Tell the
user it is not supported, then build a temporary entry for it and
validate against that:
Run the paperpush-add-venue-validate skill (Skill tool) for the venue
in its temporary mode: it reads the venue's guidelines and writes
the entry into a draft data directory,
<scratch>/venue_drafts/<slug>/, instead of paperpush's own databases.
This works from a pip install too: no repo clone is needed.
Run every paperpush command below (and paperpush subfile <slug> if
a .sub is needed) with PAPERPUSH_VENUE_DATA=<scratch>/venue_drafts/<slug>/data
set, so paperpush reads the draft entry. Without it the venue is
unknown.
In the summary (step 4), say the rules came from a temporary entry that was read from the venue's guidelines just now, so they are only as good as that reading. Point the user to the draft files they can hot-fix:
<scratch>/venue_drafts/<slug>/<slug>.txt: the venue file, the
easy one to edit (every key is commented);<scratch>/venue_drafts/<slug>/data/manuscript_requirements.json
and submission_forms.json: the JSON entries validate reads.After editing the venue file, they (or you) rebuild the JSON and re-validate:
paperpush add-venue <scratch>/venue_drafts/<slug>/<slug>.txt --data-dir <scratch>/venue_drafts/<slug>/data --overwrite
PAPERPUSH_VENUE_DATA=<scratch>/venue_drafts/<slug>/data paperpush validate ...
Say the draft is temporary: it lives in a scratch directory, so copy it somewhere if they want to keep it.
End with the add-venue-validate skill's share it suggestion: send the entry upstream as a pull request so the venue is supported for everyone.
Run the deterministic checks and export the AI tasks.
paperpush validate <abs .sub> --ai-tasks <scratch>/validate_tasks.json --no-report
--no-report here only skips the intermediate report, because step 3
saves the final one (the .tex run of a LaTeX + PDF pair is the
exception: give it -o, as in Inputs).
Add --disable-integrity.links --disable-references only if the user wants it
offline. Read the report it prints: note every Failed and Warnings
entry for your summary. (MCP alternative: validation_ai_tasks(subfile).)
Do each task in the task file. This step is required. The
deterministic checks alone miss what only a reader can see: fabricated
references (ai.unverified_references), figures that don't show what the
text says, cover-letter title and author mismatches, prose errors, misplaced
content, and the venue's free-text rules. Do every task unless the user
explicitly asked to skip the AI checks. "Write a findings file", a time
budget, or a long task list are
not reasons to skip. If a task can't be done (no web access for
reference lookups, an unreadable file), mark it unclear with the reason;
never leave it out. tasks[] gives each check's id,
instructions, and the files to read. For each:
pass, fail, suggest (nothing is wrong, but there are
points of style the author could defensibly keep, listed in details;
the task says when it wants them, e.g. ai.prose), unclear (the files
do not let you decide), or not_applicable (e.g. a portal or fee rule,
or no tables to check). Never use suggest to soften a real fail.fail, details must say exactly what is wrong and where (file,
page, figure, panel, rule number) so the author can fix it; add a short
quote or location as evidence.ai.unverified_references lists references that Crossref, OpenAlex,
and arXiv could not confirm. Look each one up rather than judging from
memory: search Crossref (https://api.crossref.org/works?query.bibliographic=<title author year>),
the publisher's or arXiv's page, or the web, and compare title, authors,
and year. fail names each reference that appears not to exist or that
describes a different work, with the correct details where you found
them; a book or web page the registries miss is not fabricated. If you
cannot search, answer unclear.ai.flagged_references lists the references the lookups themselves
reported as likely errors (a DOI registered to a different title or
authors, a .bib entry that matches no registered work, an author list
that is not the work's, an ISBN that Open Library files under another
book), each with an id
like ref-0123abcd. The lookups match strings, so they misfire on a
title worded differently, a paper indexed under its proceedings, a group
author, or garbled PDF text. Look each one up the same way. Add a
"cleared": [...] list to this result with the ids you verified as
false positives: the work exists and the entry's title, authors, year,
and DOI (or ISBN) describe it. A real work cited with another paper's DOI,
another book's ISBN, or the wrong authors is not cleared. pass = every flag is a false positive;
fail = at least one is right (name it in details). Cleared flags are
lowered to warnings when you merge with --ai-results (a full run, not
--ai-only). Don't clear a flag you could not verify.ai.uncited_claims asks for the statements that need a source but cite
none. Read the whole body text. fail quotes each one (a statistic that
is not the study's own result, an earlier study or survey it describes,
a quotation, a named dataset or tool the authors did not make) with its
location and the kind of source it needs. The paper's own methods,
results, and reasoning, and common knowledge in the field, need none.ai.citation_targets asks whether each citation points to the work
its sentence names. For every citation whose sentence names something
checkable (authors, a method, model, dataset, or tool, a year, a kind of
work), look up the entry it points to (the numbered entry, the .bib
key, the label, or the author and year) and confirm it is that work.
fail lists each mismatch with its location, a quote, what the sentence
names, and what the entry really is ("BERT [12]", but [12] is He et al.
2016); say when several are off by the same amount, which means the list
was renumbered. Citations that name nothing checkable, and entries that
don't exist (bibliography.uncited), are not this task's.ai.anonymity (double-blind venues, or --anonymous) asks whether
anything beyond the keyword scan's findings identifies the authors. Read
the whole manuscript and supplement as a reviewer would. fail quotes
each passage that claims the authors' earlier work in the first person
("as we showed in [5]"), reveals a third-person citation as theirs,
names or implies their lab or institution, or relies on a resource only
they have. A self-citation in the third person is fine, as is "we"
meaning the present paper. Don't repeat the findings the task lists as
already reported.ai.figures.content_matches_text lists each figure's legend and the
sentences that cite it, tagged with the panels they cite. Look at every
figure and every named panel and check that it shows what is said about
it: the right kind of plot or image, variables, groups, and panel count,
and the claimed trend or difference actually visible. fail names the
figure and panel and the mismatch (e.g. the text cites Fig. 2b for the
survival curve, which is panel c; the file attached as Figure 2 is the
one Figure 3's legend describes). Do not fail it for style or lettering;
other checks cover those.ai.figures.design lists the design rules to check in every figure and
panel: axis and color-bar labels with units, tick labels kept (images
get a scale bar), bar charts from zero and no unexplained zoomed axes,
no pie charts, paired bar charts as one scatter, the same color for the
same thing across panels and figures, and a second channel (marker,
line style, direct label) where color separates series. fail names
the figure and panel, the problem, and the fix.ai.prose is a proofread of the whole manuscript: read all of it, not a
sample. List real errors (typos, grammar, tense that breaks the paper's
own convention) with a quote and the correction; style preferences and
defensible choices are not failures.ai.rigor.figure_provenance (queued when the manuscript links or
attaches code): clone the repository into the scratch directory, at the
release or commit the paper cites, and read it without running anything.
Put the panel-to-code mapping in details, one line per panel; it is
what the reproduction tasks start from, so do this task first.ai.figure_reproduction.<n> (only with --reproduce-figures): work in
<scratch>/reproduce/, never in the manuscript directory. Build one
isolated environment per repository from its own dependency files (a
venv, conda env, renv library, or its Dockerfile) and reuse it across
figures; never install into the user's global environment or add
packages the repository does not declare without saying so. Run each
figure's code with a timeout (timeout/gtimeout, or the Bash tool's
own) inside the budget the task states, and stop a download that would
exceed it. Then look at the output and the submitted figure side by
side. Start details with reproduced, differs, failed, or
not attempted, and map them to pass, fail, fail, and unclear
as the task says: a figure you could not try (controlled-access data,
over budget, no GPU) is unclear, never fail. Note what you had to
change to get it running; a hard-coded path or an undeclared dependency
is a finding even when the figure then reproduces. Remove the scratch
environments at the end unless the user wants them kept.Write the verdicts to <scratch>/validate_results.json:
{"results": [
{"id": "ai.figures.raster_lettering", "status": "fail",
"details": ["fig2.png: y-axis tick labels are ~4 pt printed (minimum 5 pt)", "fig2.png: panel labels A-C are not bold"],
"evidence": "fig2.png, left axis"},
{"id": "ai.consistency", "status": "pass", "details": "all fields agree with the manuscript", "evidence": ""}
]}
When a verdict has several separate findings, give details as a list of
strings, one finding each: the report shows each as its own bullet.
(A string numbered "1) ... 2) ..." is split the same way.)
Every task id from the file should get a result. Do not mark a task pass
to make the report greener: an honest unclear is better.
Merge and report.
paperpush validate <abs .sub> --ai-results <scratch>/validate_results.json [--colorblind] [--initial-submission]
No -o: this run saves the report at its default path next to the
.sub. Check that the output ends with Saved the report to <path>; if
it says it could not save there (a read-only directory), rerun with
-o <abs path the user can reach> --overwrite, never the scratch
directory. Add -o only for a place or format the user asked for (see
Inputs). (MCP alternative: validate_subfile(subfile, ai_results=[...]);
pass output= only for a path the user asked for.)
Your verdicts appear marked "(AI)". A failed AI check never blocks: it is a
likely error for the checks where a real failure is critical (unverified
references, the template, trial registration, ethics approval, anonymity) and a warning
for the rest; a suggest verdict is a suggestion.
If the user asks for the AI checks only, add --ai-only to both commands
(MCP: ai_only=true): the report then lists just the AI checks and gives
no ready-to-submit verdict. Leave it off otherwise, so the summary covers
the deterministic checks too.
Summarize for the user, in this order: blocking errors (must fix),
likely errors (status likely_error, orange ◆: each would be critical if
real, such as an identity leak or a fabricated reference, so ask the author
to confirm or fix every one before submitting), similarity findings
(status similarity, pink ◈: the plagiarism or AI-text scan reached its
threshold; give the score and the matches, say it is an outside service's
estimate, not a verdict, and never offer to reword text to lower an
AI-detection score: if AI tools helped write it, the fix is the disclosure
the venue asks for), warnings (deterministic
first, then AI), what could not be checked and why
(could not run / not implemented), suggestions on style (one line with the
count and the check ids, unless the user asks for them; the JSON and a
saved report list them, and so does the terminal with --suggestions),
and the absolute path of every saved report (from the Saved the report to line). Never count suggestions as warnings. Relay
heuristics as things to confirm, not as certainties. List every AI task
with its verdict (one line each), so it is visible that none was skipped.
If the user asked for the findings in a file or another format, include
every item the saved report lists, from both the deterministic report
and the AI verdicts, each with its location: errors, likely errors,
similarity findings, warnings, and every suggestion (one entry each,
marked as a suggestion, e.g. "Suggestion:" at the start of the issue when
the format has no suggestion level). The one-line count of suggestions is
for the chat summary only; the file lists them all.
.sub to make a check pass.
Report; let them decide. (Fixing a typo in the .sub is fine if they ask.)
If they ask you to fix what validate found, use paperpush-fix..sub, never into scratch.ai.figure_reproduction.* tasks, only in
the scratch directory, and with no credentials (no tokens, keys, or signed-in
sessions passed to it).--data-dir plus PAPERPUSH_VENUE_DATA.paperpush validate <sub> --ai
does steps 1–3 in one call through the provider's API instead.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/paperpush-add-venueGive a venue full `paperpush submit` support: a Venue class with Playwright login() and submit() methods, the portal's submission fields in submission_forms.json, a sample .sub with ground-truth documents plus unit tests, and a live run through the portal that stops before the final submit. For a venue that already has a runner, run its existing tests (offline and live), fix what breaks, and write any tests that are missing. Triggers: "add <venue> to paperpush", "support submitting to <journal>", "write the runner for <venue>", "fix <venue>'s submit", "<venue>'s tests are failing"./paperpush-add-venue-validateRead a venue's author-guidelines and submission-instructions pages and record them in paperpush: the manuscript rules in manuscript_requirements.json and the basic submission fields in submission_forms.json, through a venue file and `paperpush add-venue`. Given a venue paperpush already has, re-read its guideline pages and update what changed. The guidelines can come from the venue's web pages (fetched with Playwright) or from guideline files the user provides (.txt, .md, .html, .pdf, .docx). No submit runner is written (that is paperpush-add-venue). A temporary mode writes the entry to a draft data directory instead (no clone needed), for validating against a venue paperpush does not support yet. Ends by suggesting a pull request for a new venue. Triggers: "add <venue>'s guidelines to paperpush", "make <venue> validate-only in paperpush", "re-check <venue>'s author guidelines", "update <venue>'s word limits", "fill in this venue file", "add <venue> to paperpush from these guideline files"./paperpush-autofillFill a paperpush .sub submission file from a directory of manuscript files. Reads the manuscript, title page, figures, and supplements, extracts the submission fields, and writes them into the .sub via the deterministic autofill core. Use when the user wants to auto-populate a venue submission from their files. Also updates an already-filled .sub after the manuscript changes, reusing the paths it records and keeping hand edits. Triggers: "autofill my sub", "fill the biorxiv sub from this folder", "populate my submission from this manuscript directory", "update my sub, the manuscript changed", "re-autofill", "refresh the sub from the new draft"./paperpush-fixFix what `paperpush validate` flags in a .sub's files, then validate again, for up to three rounds, until only the issues the author has to decide or fix remain. Backs up every file first, finds the editable source behind each file (the .tex or .docx behind a PDF), makes the mechanical fixes and the small trims (an abstract a few words over its limit), rebuilds the PDF, applies arxiv_latex_cleaner to LaTeX source after reviewing its output, and reports separately what it fixed, what needs the author's decision (a manuscript thousands of words over its limit), and what it cannot fix. Never ticks a confirmation or invents content. Triggers: "fix the validate errors", "fix what validate found", "make my sub pass validation", "clean up the validation warnings", "clean my LaTeX source", "paperpush-fix"./paperpush-loginSign the author in to a venue's submission system so paperpush can submit for them, without the password ever passing through the chat: starts `paperpush login <venue> --browser`, which opens a one-time sign-in page on this computer where the author types their credentials, checks them against the venue, and stores them in the OS keyring. Also reports, re-checks, or removes a stored login. Called by paperpush-submit and paperpush-prepare-submission when a login is missing. Triggers: "log me in to <venue>", "store my <venue> login", "sign in to <venue> for paperpush", "am I logged in to <venue>", "check my <venue> login still works", "log me out of <venue>", "switch my <venue> account", "paperpush-login"./paperpush-pick-venueSuggest where to submit a manuscript. Reads the manuscript yourself to choose its subjects, runs `paperpush pick-venue` (journals and conferences that publish similar work, from OpenAlex, with conference ranks, deadlines, and archival status, plus a ranking of the venues paperpush supports), then checks each candidate against the author's constraints (open access, APC budget, preprint policy, venues already tried) and, for supported venues, against the venue's manuscript rules (word, figure, and reference limits, article types). Reports a short list with the reasons for each, the citation metrics labelled for what they are, and which venues paperpush can submit to, then hands the chosen venue to paperpush-prepare-submission. Triggers: "where should I submit this paper", "pick a journal for my manuscript", "suggest venues for /path/to/paper", "which journals fit this manuscript", "which conference should I submit to", "paperpush-pick-venue".npx claudepluginhub pachterlab/paperpush --plugin paperpushOther plugins' skills for the same job