/paperpush:paperpush-autofillfrom paperpush
Populates a paperpush .sub submission file by extracting fields from manuscript files (title page, figures, supplements). Handles fresh fills and updates while preserving hand edits.
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.
Populate a <venue>.sub.txt file (creating it with paperpush subfile first if
it does not exist) from a directory of manuscript files. You read
the files and decide the values; the paperpush autofill command does all
the writing, gating, and form checks, so you cannot accidentally overwrite a
policy field or produce an invalid file. Your job is extraction, not writing.
Autofill checks the form only (required fields, allowed options, file
paths, the author list). It does not check the manuscript against the venue's
guidelines, look up references or links, or run the AI checks: that is
paperpush-validate, the next step. Don't run validate from this skill. When
paperpush-prepare-submission, paperpush-transfer, or
paperpush-respond-to-reviewers called you, they run it next themselves.
If the user points you at a .sub that already has values in it (a title, an
abstract, or file paths, not just the blank template), or asks to "update",
"refresh", or "re-autofill" it, this is an update: follow
Updating an existing .sub below. It replaces the
start-up questions with what the file already records. Otherwise this is a
fresh fill: continue here.
The manuscript directory is required. If the skill was invoked on its own,
without a directory or a filled .sub in the user's message, stop and ask the user to provide the
path to their manuscript directory before doing anything else — do not guess,
do not scan the repository for candidate folders, and do not fall back to test
fixtures. A good prompt is:
Which directory holds your manuscript files? Tell me the path, and (if you can) which file is the manuscript, which is the title page with authors and affiliations, where the figures are, and any supplements.
Only once the user has given you a directory should you continue. If they also named the venue, use it; otherwise infer or ask per the inputs below.
biorxiv). If the user did not say, ask, or infer
it from a <slug>.sub.txt filename they mention. Confirm it is supported with
paperpush venues.manuscript.pdf is the paper, title_page.pdf has the authors and
affiliations, figures are in figures/, supplement.pdf is supplementary
material." If they just give a folder, list it and propose a mapping from the
filenames, then confirm before extracting. List it with sizes (ls -lhA, or
find <dir> -maxdepth 2 -type f -exec ls -lh {} + for a deep tree) and
don't walk into large subtrees file by file; see
Large data files. Author names, emails, affiliations,
and ORCIDs come out far more reliably from a title page or LaTeX/Word source
than from a flattened PDF, so prefer those when present.Get the field schema and roles (the source of truth for what to fill):
paperpush schema <venue>
(schema is an internal command for the autofill front-ends; it is hidden
from paperpush --help but works as shown.)
This prints JSON with one entry per field: id, label, type, role,
required, options, type_options, accept, help. The role tells you
what to do with each field:
extract — copy from the manuscript text (title, abstract, authors,
competing-interest / funding / data-availability / code-availability
statements) or read a simple fact off the files (page/figure/table counts,
a repository URL or data accession printed in the paper).classify — choose exactly one of the field's options based on the
content (e.g. bioRxiv subject_category). For a yes/no declaration or
reproducibility-checklist field (a boolean with no options, e.g.
next_gen_sequencing, code_in_text, software_installable,
is_preprint), answer yes/no from what the manuscript says. Always
lower confidence (medium) so the value is flagged for the author.filemap — assign a file (or files) from the directory to this field.never — do not fill. These are only the fields you genuinely
cannot derive from the files: consent and attestations (e.g.
author_consent, agree_terms, software_tested), licensing and payment
choices, suggested/opposed reviewers, specific identifiers you would
otherwise have to invent (DOIs, manuscript IDs), demographic/portal
metadata, and revision/workflow flags. Fill everything that is derivable;
list only these in unfilled, with a short reason, and move on.Make sure the .sub exists — create it if it does not. paperpush autofill fills an existing .sub; it does not create one, so never skip
this check. Resolve the path in this order:
.sub path, use it. If that file does not exist yet,
create it at that path with the command below.<manuscript-dir>/<venue>.sub.txt already exists, reuse it (do not
overwrite it unless the user asks to regenerate).paperpush subfile <venue> -o <manuscript-dir>/<venue>.sub.txt
Use an absolute path for -o, check the file exists afterwards, and use
that resolved path for every later step. The new file's comments also
restate each field's options and help.
Read the files and extract values. Read the user-identified files with
the Read tool (PDFs and images are read directly). For a .docx or .tex
source, read or convert it to text first. For each non-never field, produce
a value:
extract: pull the statement verbatim where it exists. For authors, emit
one line per author in the column format that field's help gives — usually
Name | email | affiliation | ORCID | corresponding, marking exactly one
corresponding author yes and the rest no, but some venues reorder the
columns and some (arXiv) take the name alone. Leave a subfield blank (keep
the |) if the source does not give it — never invent an email or ORCID.classify: pick one option from options and explain your choice in
source. Use medium confidence at best.filemap: give an absolute path to each file (e.g.
/path/to/figures/fig1.png), one per line. For a filelist field
add the optional columns the help describes (path | label, or for
bioRxiv supplements path | type | linktext where type is from
type_options). Only the leading path segment is resolved, so keep it
absolute; the other columns are preserved as written.Only open the documents: the manuscript, title page, cover letter, supplements, figures, and small text files such as a README. Leave data files closed; see Large data files.
Set confidence honestly per value:
high — copied verbatim from the source, or an unambiguous file match.medium — inferred, lightly reformatted, or a classification.low — a guess you are unsure about.Write values.json in this schema (this is the contract the command
reads — keep it exactly):
{
"fields": [
{"id": "title", "value": "...", "confidence": "high", "source": "manuscript.pdf p.1"},
{"id": "authors", "value": "Ada Lovelace | [email protected] | Example University | | yes",
"confidence": "medium", "source": "title_page.pdf"},
{"id": "subject_category", "value": "Bioinformatics", "confidence": "medium",
"source": "classified from abstract"},
{"id": "manuscript_file", "value": "manuscript.pdf", "confidence": "high", "source": "directory"},
{"id": "figure_files", "value": "figures/fig1.png | Figure 1\nfigures/fig2.png | Figure 2",
"confidence": "high", "source": "figures/"}
],
"unfilled": [
{"id": "license", "reason": "license is your policy choice"},
{"id": "author_consent", "reason": "all authors must consent — confirm yourself"}
]
}
Do not put any never-role field in fields; put it in unfilled.
Apply it (use absolute paths for the .sub, -p, and --values):
paperpush autofill <venue>.sub.txt -p <manuscript-dir> --engine manual --values values.json
-p takes several directories and/or documents if the files are spread
out (e.g. -p <ms-dir> <figures-dir> <cover-letter.docx>); it stops at the
next flag or the first .sub file.
Attestations. Add --confirm-attestations only when the user asked you
to confirm the attestations (e.g. "and say yes to the consent boxes"). It
sets every blank attestation (a required yes/no confirmation whose only
accepted answer is yes; the .sub marks it "must be yes to submit") to
yes on behalf of all authors, and prints each sentence under "Confirmed
with --confirm-attestations". Relay those sentences to the user verbatim.
Never add it to clear a validation error or because the attestation "has
to be yes anyway". Without it, attestations stay in unfilled like every
other never field.
Add --dry-run first if you want to preview without writing. The command
prints a summary of what was filled, what needs review, and what was left for
the user, and re-checks the form fields (not the manuscript).
Report to the user. Relay the command's summary, then make the handoff unambiguous. State plainly:
After the skill runs, only these are left for the user, because the skill cannot know or attest to them:
never fields — consent/attestations (e.g. author_consent,
software_tested), license and payment choices, suggested/opposed
reviewers, specific identifiers you would have to invent (e.g.
preprint_doi), and revision/workflow flags. List the exact ones left in
this file, each with the one-line reason from unfilled. For the
attestations among them, add that the user can set them to yes or ask
you to rerun with --confirm-attestations..sub.Then give them the next step: paperpush-validate, which checks the
manuscript against the venue's guidelines and runs the AI checks (skip this
when a calling skill runs validate next). After that, paperpush-submit
(it signs them in through paperpush-login if needed and fills the
portal). Or the commands, with the absolute .sub path:
paperpush validate <venue>.sub.txt
paperpush login <venue> --browser
paperpush submit <venue>.sub.txt
Remind them that login and submit open the portal and stop before the
final click, so they can review everything in the submission system before
submitting.
Manuscript directories, and above all the uploads for a data repository
(CaltechDATA, Zenodo, Dryad, ...), can hold gigabytes of data: .h5ad, .h5,
.loom, .zarr, .mtx, .fastq(.gz), .bam, .parquet, .npy, large
.csv/.tsv/.json, model checkpoints, archives. Opening one can exhaust the
machine's memory. So:
filemap field needs only
the path. Never Read, cat, strings, hexdump, or load one in Python
(anndata, h5py, pandas, scanpy, numpy), not even to "check what is
in it" or count its cells or samples.metadata.json or samples.tsv) gets
head -c 20000 or head -n 50, not a full read.values.json and pass -p the directory. Don't copy, decompress, or hash
them, and don't run md5/sha256sum over them; a checksum file already in
the directory can be cited by name.ls <dir> | sed 's/_.*//' | sort | uniq -c, or
ls <dir>/*.h5ad | wc -l) rather than printing every name into the
conversation more than once. A filelist field still takes one line per
file in values.json: write it with a short script (a glob over the
directory) instead of typing every path.Use this when the .sub is already filled and the manuscript files have
changed (a new draft, new figures, a reordered author list). The goal is to
bring the .sub in line with the files without re-asking what the file
already tells you and without losing anything the author typed in by hand.
Read the .sub and take what it already knows. The @venue: line is
the venue. The filemap fields (manuscript, title page, figures,
supplements, cover letter) give the file mapping, and their directories are
the manuscript directory (or directories) for -p. Don't ask the start-up
questions again. Ask only about what the file can't answer:
Re-extract every derivable field from the current files, exactly as in
steps 1, 3, and 4 of the fresh fill (schema, extraction, values.json),
with the same roles, confidence rules, and never handling. Re-propose
every field, not only the ones you think changed: the command compares each
value against the file and leaves matches untouched.
Preview the update with both --dry-run and --keep-existing:
paperpush autofill <venue>.sub.txt -p <manuscript-dir> --engine manual --values values.json --keep-existing --dry-run
The summary sorts every field into:
Settle the kept fields with the user. A kept field is either a hand edit the author wants to keep (a shortened title for the portal, a corrected affiliation) or a stale value from the old draft. You can't tell which from the file, so show the user each one as in the file vs manuscript now and ask which to keep. You may recommend: a new figure path, page count, or figure count is almost always stale; a reworded statement that differs from the manuscript only in formatting is likely a deliberate edit. Don't decide on their behalf when it's a judgment call.
Apply. Run the same command without --dry-run, keeping
--keep-existing, so only blank and default fields are written. Then, for
the kept fields the user chose to update, write a second values.json
holding only those fields and apply it without --keep-existing:
paperpush autofill <venue>.sub.txt -p <manuscript-dir> --engine manual --values values_accepted.json
Fields the user wants left alone stay out of that second file entirely.
If the user says up front to take everything from the new draft ("just
overwrite it from the manuscript"), skip --keep-existing and step 4, and
apply once. The summary marks each replaced value "[replaced the previous
value]".
Report as in step 6 of the fresh fill, but lead with what changed:
the fields updated from the new draft, the ones the user chose to keep, any
remapped or newly added files, and then what remains (the never fields
and form errors, as before). Since the manuscript changed, suggest
running paperpush-validate again.
.sub file, the manuscript directory
passed to -p, the --values file, and every file path inside values.json.
Never pass a bare filename or a ~/relative path.extract, classify, and
filemap roles), including yes/no declarations and reproducibility-checklist
booleans. Leave for the user only the never fields and anything you truly
cannot determine — do not punt a derivable field just because it is a
declaration.never-role fields. Never pass --confirm-attestations unless
the user asked for it. Never invent emails, ORCIDs, funders, DOIs,
or licenses not present in the source..tex, .docx) over a flattened PDF for
author metadata..h5ad, .h5, .bam, .fastq, .parquet, a
multi-MB .csv, ...): map it by its path and learn about it from the README
or manuscript. See Large data files.values.json strictly in the schema above; the command validates ids
against the venue and ignores anything unknown.--keep-existing, and apply a differing value only after the
user picked it (or told you to take everything from the new draft).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pachterlab/paperpush --plugin paperpush12 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-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"./paperpush-portal-debugDebug a `paperpush submit` run that stalls or fails partway through a venue's portal: drive the live browser to get past the failing step, keep a log of every change the Playwright runner needs, and (in a source checkout) put those changes into the runner with a regression test. Never sends the submission. Triggers: "submit is stuck", "paperpush submit failed at <step>", "the <venue> portal changed", "debug the submit run live", "fix the <venue> runner".Other plugins' skills for the same job