npx skills add ...
npx skills add lingzhi227/agent-research-skills --skill paper-compilation
Compile LaTeX papers to PDF with automatic error detection, chktex style checking, and citation/reference validation. Runs the full pdflatex + bibtex pipeline. Use when the user wants to compile a paper, fix compilation errors, or debug LaTeX.
npx skills add lingzhi227/agent-research-skills --skill paper-compilation
Compile a LaTeX paper to PDF with error detection and correction.
$ARGUMENTS — Path to the main .tex fileReports: compilation status, page count, warnings, citation/reference stats, style issues.
Fixes: HTML tags in LaTeX, mismatched environments, missing figures. Key flags: --dry-run, --auto-detect
Runs fix_latex_errors.py + recompile up to 3 rounds until compilation succeeds.
Run validate_citations.py to catch issues before compiling:
\cite{key} has a matching .bib entry\includegraphics{file} existsRun compile_paper.py which executes: pdflatex → bibtex → pdflatex → pdflatex
If compilation fails, read the error output and fix:
! Undefined control sequence → Add missing package or fix typo! Missing $ inserted → Wrap math in $...$! Missing } inserted → Fix unmatched braceCitation 'key' undefined → Add to .bib or fix \cite</end{figure}> → Replace with \end{figure} (HTML syntax in LaTeX)Apply minimal fixes. Do not remove packages unnecessarily. Recompile after each fix.
Check: page count vs venue limit, remaining warnings, chktex style issues.