
Paper Compilation
This is the full LaTeX compilation pipeline wrapped in a Claude skill. It runs pdflatex, bibtex, and multiple passes automatically, then parses errors and tries to fix them. You get pre-compilation citation and figure validation, automatic error correction for common issues like HTML tags in LaTeX or mismatched braces, and a post-compilation report with page counts and warnings. The auto-fix mode will retry compilation up to three times after applying corrections. Honestly, this is great for iterating on papers without context-switching to the terminal, though you'll still need to understand LaTeX errors when the auto-fixes don't cover your specific issue.
- skills.sh installs
- 1.7K
- GitHub stars
- 459
- last updated
- Aug 21, 2026
Install
$ npx -y skills add lingzhi227/agent-research-skills --skill paper-compilation --agent claude-codeInstalls into .claude/skills of the current project.
Files
Paper Compilation
Compile a LaTeX paper to PDF with error detection and correction.
Input
$ARGUMENTS— Path to the main.texfile
Scripts
Compile paper
python ~/.claude/skills/paper-compilation/scripts/compile_paper.py paper/main.tex
python ~/.claude/skills/paper-compilation/scripts/compile_paper.py paper/main.tex --check-style
python ~/.claude/skills/paper-compilation/scripts/compile_paper.py paper/main.tex --output paper/output.pdf
Reports: compilation status, page count, warnings, citation/reference stats, style issues.
Validate citations before compiling
python ~/.claude/skills/citation-management/scripts/validate_citations.py \
--tex paper/main.tex --bib paper/references.bib --check-figures --figures-dir paper/figures/
Auto-fix LaTeX errors
python ~/.claude/skills/paper-compilation/scripts/fix_latex_errors.py \
--tex paper/main.tex --log compile.log --output paper/main_fixed.tex
Fixes: HTML tags in LaTeX, mismatched environments, missing figures. Key flags: --dry-run, --auto-detect
Sponsors
Details
- Repository
- github.com/lingzhi227/agent-research-skills
- Categories
- DevOps & CI/CD, Code Review & Quality, AI & Agent Building, Data Science & ML, Debugging, Automation & Workflows, Sales & Marketing, Office & Documents
- First seen
- Jun 3, 2026
More from lingzhi227/agent-research-skills
All 31- Atomic Decomposition1.6K
- Paper To Code1.6K
- Experiment Code1.6K
- Paper Assembly1.6K
- Symbolic Equation1.6K
- Excalidraw Skill1.6K
- Literature Review4.1K
- Literature Search2.7K
- Figure Generation2.3K
- Latex Formatting2.3K
- Backward Traceability2.3K
- Math Reasoning2.2K
- Citation Management2.2K
- Data Analysis2K
- Deep Research2K
- Idea Generation1.9K
- Novelty Assessment1.9K
- Paper Writing Section1.8K
- Paper Revision1.8K
- Experiment Design1.8K
- Github Research1.8K
- Research Planning1.8K
- Survey Generation1.8K
- Algorithm Design1.7K