skills/latex-project-build/SKILL.md
Use when configuring, diagnosing, or compiling LaTeX projects, especially multi-file reports, theses, books, chapter-based projects, Overleaf exports, latexmk/arara/Makefile workflows, bibliography/index/glossary passes, or projects that require pdflatex, xelatex, lualatex, latex->dvips, biber, or bibtex.
npx skillsauth add miaodi/llm_config latex-project-buildInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Configure and compile LaTeX projects reliably by identifying the root file, selecting the correct engine, preserving project-specific build conventions, and using log output to fix compilation failures.
Use for whole-project LaTeX work: compiling PDFs, repairing build errors, setting up latexmkrc, diagnosing engine mismatches, cleaning auxiliary files, handling bibliography/index/glossary passes, and making multi-chapter projects build reproducibly.
latexmk or the project's existing wrapper for repeatable multi-pass builds..tex roots, latexmkrc, .latexmkrc, Makefile, arara directives, Tectonic.toml, .bib, .bst, .cls, .sty, image folders, and generated output directories.\documentclass, \begin{document}, % !TeX root, % !TeX program, \include, \input, \subfile, and README or build script hints.latexmkrc, magic comments, Makefile targets, CI commands, Overleaf settings, or arara rules.xelatex or lualatex for fontspec, unicode-math, polyglossia, system fonts, or CJK/font shaping requirements.pdflatex for traditional projects with inputenc, fontenc, and no Unicode/system-font requirements.make, latexmk, arara, project scripts, or documented CI commands. If no entrypoint exists, prefer latexmk with the detected engine.subfiles, standalone classes, or explicit per-chapter wrappers.latexmk manage repeated passes for references, bibliography, index, glossary, and reruns. If building manually, run the appropriate sequence for bibtex or biber, then rerun LaTeX until references stabilize..log, .blg, .ilg, and tool output after a failure. Start at the first fatal error marker, inspect the nearby source line, and distinguish root causes from cascading undefined-control-sequence or missing-file noise.make, make pdf, latexmk, or the command documented in the project.latexmk -pdf main.texlatexmk -xelatex main.texlatexmk -lualatex main.texlatexmk -c main.texlatexmk -C main.texUse the actual root filename instead of main.tex.
\input or \include structure unless explicitly asked.latexmkrc, or CI build around a new tool unless there is a concrete reproducibility problem..tex, .bib, .sty, .cls, figure, or source files as part of cleanup..aux, .bbl, .blg, .fls, .fdb_latexmk, .log, .out, .toc, and .synctex.gz unless the project explicitly tracks them.Provide:
development
Use when creating C++ learning notes or minimal experiments for low-level computational, numerical, CPU/GPU, compiler, and hardware concepts such as false sharing, floating point, registers, caches, SIMD, atomics, numerical stability, and benchmarking pitfalls.
development
Use when working with graph traversals (BFS, DFS, level-order), minimum spanning trees, strongly connected components, topological sort, graph coloring, bipartite detection, elimination trees, level-set extraction, parallel graph algorithms, task-tree parallelism, sparse graph representations, and exploiting graph structure for parallel sparse computations.
testing
Use when planning or executing Git branch workflows, especially merge/rebase across branches, conflict resolution, safe history rewriting, and recovery from mistakes.
tools
Use when drafting, reviewing, or normalizing Git commit messages or Perforce changelist descriptions from the shared Git/P4 commit message template.