paper-compile

Compile LaTeX sources into a verified PDF with automatic error fixes.

2|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/chenghaoYang/auto-coder-trainer --skill paper-compile-chenghaoyang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paper-compile
Source: https://github.com/chenghaoYang/auto-coder-trainer/tree/main/aris/skills/paper-compile
Command: npx skills add https://github.com/chenghaoYang/auto-coder-trainer --skill paper-compile-chenghaoyang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Authors often spend time chasing LaTeX compilation errors and inconsistent builds. This skill automates the LaTeX-to-PDF workflow, fixes common issues, and validates the final output.

Core Features & Use Cases

  • Automatic multi-pass compilation: runs latexmk to resolve references and citations.
  • Error diagnosis and auto-fix: analyzes compile logs and fixes common issues such as missing packages, undefined references, and bibtex problems.
  • Output verification: confirms main.pdf exists, contains content, and is ready for submission.

Quick Start

Compile your LaTeX project by pointing the skill at your paper directory, and let it manage the build, fixes, and verification.

Frequently Asked Questions about paper-compile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compile LaTeX into a PDF and automatically fix build errors?

Compile LaTeX into a PDF by pointing the skill at your project directory to run multi-pass latexmk builds, automatically diagnosing logs and fixing common issues like missing packages and undefined references to produce a polished document.

Why does my LaTeX compilation fail with undefined references and bibtex problems?

LaTeX compilation fails with undefined references when single-pass builds do not resolve citations. This skill runs multi-pass latexmk compilation to automatically resolve bibtex references and diagnose common build errors from logs.

Do I need bibtex to compile a LaTeX project with citations?

Yes, bibtex is required to format citations in a typical academic workflow. The skill handles bibtex references during multi-pass compilation, automatically resolving citation issues and undefined cross-references to ensure a submission-ready PDF.

What is the best way to automate multi-pass latexmk compilation for an academic paper?

Automate multi-pass latexmk compilation by configuring a MAX_COMPILE_ATTEMPTS limit. The skill manages repeated builds to resolve references and citations, analyzes logs for errors, and verifies the final output exists and is ready for submission.

How to verify a LaTeX PDF is submission-ready after compilation?

Verify a LaTeX PDF is submission-ready through post-build verification checks. The skill confirms the main.pdf file exists, ensures it contains actual content, and validates that all references and citations resolved properly during the build.

LaTeX compilation not working due to missing packages, can logs be auto-fixed?

When LaTeX compilation fails due to missing packages, the skill analyzes compile logs to diagnose the error and applies automatic fixes for common issues, retrying the build up to a configurable MAX_COMPILE_ATTEMPTS limit.