paper-compile
Skill by wanshuiyin
Compiles a LaTeX paper to PDF, fixes common build errors, and checks the output for submission. It is aimed at authors preparing conference or IEEE submissions.
Install paper-compile
Built from the published package, never by AI.
git clone --depth 1 https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep /tmp/Auto-claude-code-research-in-sleep && mkdir -p ~/.claude/skills && cp -r /tmp/Auto-claude-code-research-in-sleep/skills/skills-codex/paper-compile ~/.claude/skills/paper-compileRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep /tmp/Auto-claude-code-research-in-sleep && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Auto-claude-code-research-in-sleep/skills/skills-codex/paper-compile ~/.gemini/antigravity-cli/skills/paper-compileAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Paper Compile is a skill for AI assistants that builds a LaTeX paper into a submission-ready PDF. It runs latexmk on the files in the paper/ directory, reads compile.log when a build fails, and applies fixes for common errors such as missing packages, undefined references, missing figures, citation keys and BibTeX syntax. It makes up to three fix attempts by default.
After a successful build, it checks the PDF for file size, page count, undefined references and citations, and font embedding. It also checks page limits for ML conferences and IEEE venues, flags section files that main.tex does not reference, and writes a compilation report. It never deletes the user's source files.
Written from the project's SKILL.md and checked against it.
What it can do
- Prerequisite checkChecks that the LaTeX tools and required paper files are installed and present.
- Compilation with latexmkRuns latexmk with pdflatex, bibtex and repeated passes to build the PDF.
- Error diagnosis and auto-fixReads compile.log and fixes missing packages, references, figures, citations and BibTeX syntax.
- VERIFY marker searchFinds [VERIFY] markers left by /paper-write so unverified citations can be flagged.
- Post-compilation checksChecks PDF size, page count, undefined references and citations, and rendered figures.
- Page count verificationChecks the main body against the page limit for ML conferences and IEEE venues.
- Stale file detectionLists section .tex files that main.tex does not reference.
- Submission readiness checksCovers anonymity, font embedding, appendix placement and file size before submission.
- Compilation reportOutputs status, page counts, fixed errors and remaining warnings in a markdown report.
What you need
- LaTeX distribution with latexmk, pdflatex and bibtex
- Paper source files in paper/ with a main.tex file
- Shell access to run commands
Try asking
- Compile my LaTeX paper to PDF and fix any errors
- Check whether my main body fits the 9-page NeurIPS limit
- Build a submission-ready PDF from the paper/ folder
Good to know
- Stops after three compile attempts by default (MAX_COMPILE_ATTEMPTS = 3)
- IEEE venues count references toward the page limit; ML conferences do not
- Assumes the paper source is in paper/ with main.tex
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/skills-codex/paper-compile/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to paper-compile
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
paper-compile: common questions
Does it fix every LaTeX error?
No. The source describes fixing common errors such as missing packages, undefined references, missing figures and BibTeX syntax. If the same error class fails after two attempts, it preserves compile.log and asks for a focused rescue.
How does it count pages?
For ML conferences, the main body runs to the end of the Conclusion and references and appendix are excluded. For IEEE venues, the total including references must fit the limit.
Which LaTeX engine does it use?
It uses pdflatex by default. The source also lists xelatex for CJK or custom fonts and lualatex as options.
How do I install paper-compile?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is paper-compile free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is paper-compile safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to paper-compile?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
