/overfull:fix-buildfrom Overfull
Diagnoses and fixes LaTeX build failures and PDF output problems using `overfull build` and `overfull check --json`. Handles TeX errors, undefined references/citations, missing files, overfull boxes, and duplicate labels.
Ships in Overfull. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Build and check:
overfull build
overfull check --json --checks build,output
If nothing changed since the last good build, overfull build does not start
latexmk (it prints "is up to date" and reports on the existing log). After a
change to a file the build does not track, or to get a clean run, use
overfull build --force. With --json, a build that fails before LaTeX writes
a log prints {"error": {"code": "build-failed", ...}} and exits 1.
Work on the first build error only. Overfull groups follow-on errors
under the root cause (related counts them). Fixing the first one often
clears the rest.
Open location.file at location.line. Read message, detail and
fix. For more, run overfull explain <rule>.
Make the smallest change that fixes the cause. Rebuild and recheck.
When build passes, fix output errors, then review output warnings.
| Symptom (rule id) | Usual cause | Fix |
|---|---|---|
Undefined control sequence (undefined-control-sequence) | Typo, or package not loaded | Fix the name. Add a package only if the author agrees. |
Missing $ inserted (missing-dollar) | _, ^, &, %, # in text | Escape: \_, \&, \%, \#. Use math mode for math. |
& or < in source | HTML escaping | Replace with \& or < in math. |
File not found (missing-file, missing-figure) | Wrong path or case | Use the real path; paths are case-sensitive in CI. |
Undefined reference ?? (undefined-reference) | Missing or misspelled \label | Fix the label or the \cref. |
Undefined citation [?] (undefined-citation) | Bibliography not rebuilt, or the key is not in the bib (citation-key-missing) | Rebuild; for a missing key see the add-citation skill. Never write BibTeX by hand. |
Rerun / stale bibliography (rerun-needed, bibliography-stale) | Build stopped early | Rebuild with overfull build. |
Duplicate label (duplicate-label) | Copied figure or section | Rename one label and its references. |
Overfull box > 10pt (overfull-box) | Long word, URL, table or formula | Rephrase, allow a break (\url, \allowbreak), resize the table to \linewidth, split the formula. |
If a package is missing from the local TeX installation, build in Docker (the
one case where you pass --engine; the image installs packages it lacks):
overfull build --engine docker
Without overfull on PATH, make build already runs in Docker. Never install
TeX packages or fonts globally, and do not switch engines except via the
documented arXiv path (prepare-arxiv). If the package is also missing in
Docker, tell the author.
overfull check --checks build,output has no errors.\sloppy, change \hbadness, or add negative spacing to
hide overfull boxes.\DocumentMetadata or tagging. If it causes the error,
see the make-accessible skill.overfull pages <n> to confirm a layout fix.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub amet13/overfull --plugin overfull10 skills in this plugin
/add-citationAdd a verified reference to the bibliography with `overfull cite` and cite it in the LaTeX source. Use whenever a sentence needs a citation, the author gives a DOI, arXiv id or paper title, or `overfull check` reports an undefined citation or a not-found reference. Never write BibTeX by hand or from memory./add-figureAdd a reproducible figure to the document, either a data-driven pgfplots plot from figures/data or an image file, with meaningful alt text, sensible float placement, a caption, a label and a \cref reference. Use when the author asks for a plot, chart, diagram or image, or when check reports a figure without alt text./fit-page-limitBring the document within the venue page limit measured by the Overfull venue check, by tightening prose, merging or resizing figures, and moving material to the appendix, without shrinking fonts or margins or hacking spacing. Use when the venue check reports the page limit is exceeded or the author asks to cut the paper to N pages.Other plugins' skills for the same job