make-arxiv
Package the arXivTeX paper in main/ into a flattened, submission-ready copy for arXiv (arXiv/main.tex plus assets and MANIFEST.txt). Use when the user asks to run `make arxiv`, prepare an arXiv preprint/submission, flatten the paper, or refresh the arXiv/ output after editing main/.
Install
mkdir -p .claude/skills/make-arxiv && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13499" && unzip -o skill.zip -d .claude/skills/make-arxiv && rm skill.zipInstalls to .claude/skills/make-arxiv
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Package the arXivTeX paper in main/ into a flattened, submission-ready copy for arXiv (arXiv/main.tex plus assets and MANIFEST.txt). Use when the user asks to run `make arxiv`, prepare an arXiv preprint/submission, flatten the paper, or refresh the arXiv/ output after editing main/.About this skill
make-arxiv
Wraps this repo's make arxiv target: flattens main/main.tex (via
latexpand) into a single-entry-point, submission-ready copy under
arXiv/, then verifies the result actually compiles standalone before
handing it back. Unlike convert-template, there's no venue-macro
reasoning here — make arxiv is a deterministic script; this skill's
job is to run it, catch the failure modes a human would otherwise only
notice after uploading to arXiv, and report clearly. Never modify
main/ or main/main.bib; arXiv/ is fully regenerated output.
When to use
Trigger when the user asks to:
- Run
make arxiv, or "package"/"flatten"/"export the paper for arXiv". - Prepare an arXiv preprint or submission-ready copy of the paper.
- Refresh
arXiv/after editingmain/.
Inputs to establish before starting
None required by default (main/main.tex → arXiv/). Only ask if the
user wants non-default overrides:
MAIN=<file>— a different entry point thanmain.tex(e.g. a submission-only variant).ARXIV_DIR=<dir>— a different output directory thanarXiv/(e.g. to keep multiple flattened snapshots side by side).
Workflow
- Check prerequisites. Confirm
latexpandandperlare onPATH.make arxivalready hard-fails with a clear message iflatexpandis missing — surface that message rather than guessing at a fix. Both ship with most TeX Live installs. - Run the target. From the repo root:
make arxiv(addMAIN=/ARXIV_DIR=overrides if established above). This wipes and regenerates the output directory every time — never treatarXiv/as something to hand-edit and preserve across runs. - Inspect the manifest. Read
arXiv/MANIFEST.txt(the sorted file listing the target generates) against what's actually inarXiv/. Confirm:main.tex, the class/style/bib files (.cls/.sty/.bst/.bib/.bbx/.cbx), and every asset the flattenedmain.texreferences undersrcs/are present.- No stray files snuck in (editor swap files,
.DS_Store,.synctex.gz, previewer PDFs) — the target's copy step is extension-filtered so this should be rare; flag it if it happens.
- Verify it actually compiles standalone. Run
latexmk -pdf main.tex(orpdflatex/bibtexmanually iflatexmkisn't available) insidearXiv/itself, notmain/— the point is confirming the flattened copy has no hidden dependency on files outsidearXiv/. Read any errors:- Missing package → per this repo's README, that's a
main/main.clsormain/main.texfix (move the feature into the paper source or drop it), not something to patch insidearXiv/. - Missing file/path → check whether
main/figs/srcs/ormain/srcs/actually contains the asset; if it's genuinely missing, that's amain/content gap to report, not something to fabricate. - If no TeX toolchain is available in this environment, say so explicitly instead of claiming the copy compiles.
- Missing package → per this repo's README, that's a
- Report. Tell the user, in plain text:
- Where the output landed (
arXiv/, or the overridden$ARXIV_DIR) and its entry point. - Compile result (pass/fail, or "not verified — no TeX toolchain here").
- Anything needing manual attention before upload: absolute paths, unusually large assets, non-PDF/PNG/JPG figures, or any manifest entry that looks unintentional.
- Where the output landed (
Guardrails
- Never modify anything under
main/, includingmain/main.bib— per this repo'sCLAUDE.md. - Never hand-edit files inside
arXiv/as a "fix" — it is regenerated byte-for-byte on every run, so any real fix belongs inmain/followed by re-runningmake arxiv. - Don't fabricate or guess at missing assets; report the gap instead.
- This only flattens for arXiv. For venue-specific submission
templates (CVPR/ICCV/NeurIPS/...), use the
convert-templateskill instead.