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-code

Installs 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 .tex file

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
1adobe avatarblock-inventoryadobe/skillsUse this when the page-import pipeline needs to survey the block palette available from a local AEM Edge Delivery Services project and the Block Collection to i1.6Kskills.sh installs
2aahl avatarhass-builderaahl/skillsA skill to build and manage Home Assistant configurations. Use when using the Home Assistant Builder (`hab`) CLI to inspect, create, update, delete, operate, or1.6Kskills.sh installs
3refoundai avatarproduct-taste-intuitionrefoundai/lenny-skillsHelp users develop product taste and intuition. Use when someone wants to improve their product judgment, struggles to evaluate design quality, needs to make de1.6Kskills.sh installs
4lingzhi227 avatarpaper-to-codelingzhi227/agent-research-skillsConvert an ML research paper into a complete, runnable code repository. 3-stage pipeline from Paper2Code — Planning (UML + dependency graph) → Analysis (per-fil1.6Kskills.sh installs
5astronomer avatarmanaging-astro-local-envastronomer/agentsManage local Airflow environment with Astro CLI (Docker and standalone modes). Use when the user wants to start, stop, or restart Airflow, view logs, query the 1.6Kskills.sh installs
6lingzhi227 avatarpaper-assemblylingzhi227/agent-research-skillsOrchestrate the full paper pipeline end-to-end. Manage state propagation between phases (literature → plan → code → experiments → figures → tables → writing → r1.6Kskills.sh installs