Skip to content

Compile LaTeX papers to submission-ready PDF, diagnose errors, and verify page limits and references.

CCM score
65 of 100
skills.sh installs
609
GitHub stars
20.1K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full build path: latexmk multi-pass compilation, error diagnosis, a fix loop capped at 3 attempts, and output checks
  • Includes checks for undefined references and citations, missing figures, [VERIFY] markers, stale section files, and font embedding
  • Enforces page limits by venue, counting references for IEEE and excluding them for ML conferences, with a pdftotext check
  • Designed for authors preparing ML or IEEE submissions with pdflatex, xelatex, or lualatex engines

Install

$ npx -y skills add wanshuiyin/auto-claude-code-research-in-sleep --skill paper-compile -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Paper Compile: LaTeX to Submission-Ready PDF

Compile the LaTeX paper and fix any issues: $ARGUMENTS

Constants

  • COMPILER = latexmk — LaTeX build tool. Handles multi-pass compilation automatically.
  • ENGINE = pdflatex — LaTeX engine. Options: pdflatex (default), xelatex (for CJK/custom fonts), lualatex.
  • MAX_COMPILE_ATTEMPTS = 3 — Maximum attempts to fix errors and recompile.
  • PAPER_DIR = paper/ — Directory containing LaTeX source files.
  • MAX_PAGES — Page limit. ML conferences: main body to Conclusion end (excluding references & appendix). ICLR=9, NeurIPS=9, ICML=8. IEEE venues: references ARE included in page count. IEEE journal ≈ 12-14 pages, IEEE conference ≈ 5-8 pages (all inclusive).

Workflow

Step 1: Verify Prerequisites

Check that the compilation environment is ready:

# Check LaTeX installation
which pdflatex && which latexmk && which bibtex

# If not installed, provide instructions:
# macOS: brew install --cask mactex-no-gui
# Ubuntu: sudo apt-get install texlive-full
# Server: conda install -c conda-forge texlive-core

Verify all required files exist:

# Must exist
ls $PAPER_DIR/main.tex

Details

Repository
github.com/wanshuiyin/auto-claude-code-research-in-sleep
Categories
Research & Academic, Office Files & Slides
First seen
Jun 3, 2026

Questions

What does the paper-compile skill do?

paper-compile compiles a LaTeX paper into a submission-ready PDF using latexmk, reads compile.log when a build fails, and applies fixes for missing packages, undefined references, missing figures, citation errors and BibTeX syntax. It then checks the PDF for page count, undefined citations and font embedding before a conference submission.

How do I install the paper-compile skill?

Run npx -y skills add wanshuiyin/auto-claude-code-research-in-sleep --skill paper-compile -y in your project. Once installed, paper-compile lets the agent build your LaTeX source in the paper directory and repair compile errors across up to three attempts.

What does paper-compile need before it can run?

paper-compile needs a working LaTeX installation with pdflatex, latexmk and bibtex on the path, plus a main.tex file in the paper directory. The skill's own prerequisite check tells you which package to install for macOS, Ubuntu or a server.

Where does paper-compile stand in the Research & Academic category?

paper-compile sits in the Research & Academic category alongside research, paper-context-resolver and repo-intake-and-plan. Its focus is narrower than those: it handles only the build and error-repair step that turns LaTeX source into a PDF.

More from wanshuiyin/auto-claude-code-research-in-sleep

All 41

Similar to Paper Compile

More Research & Academic