
This handles LaTeX compilation using latexmk, which is the right tool because it auto-detects dependencies and reruns builds as needed for cross-references. The live preview mode with `-pvc` is the main reason you'd reach for this. It watches your `.tex` files and auto-recompiles on changes, with Skim integration for PDF reload. Also covers the standard cleanup commands and troubleshooting for common issues like missing packages or stuck builds. The skill is self-documenting with a checklist and reference docs for multi-file projects and CI integration. One honest take: latexmk solves the "how many times do I need to run pdflatex" problem, so if you're still doing that manually, stop.
$ npx -y skills add terrylica/cc-skills --skill latex-build --agent claude-codeInstalls into .claude/skills of the current project.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Use this skill when:
Industry standard build tool:
latexmk -pdf document.tex
# Result: document.pdf created
latexmk -pvc -pdf document.tex
# What happens:
# - Compiles document initially
# - Watches for file changes
# - Auto-recompiles when files change
# - Auto-reloads PDF in Skim viewer
Stop watching: Press Ctrl+C
Sponsors