latex-cleanup
Skill39 starsChanged 8 months agoMITView on GitHub
Review LaTeX documents for common issues, style consistency, typography, cross-references, draft artifacts, and debugging code. Use after editing LaTeX documents or before submission.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- CacinieP/TeXada-Studio-with-agentskillstheir own version, first seen Sep 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- CacinieP/TeXada-Studio-with-agentskills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- accessible-pdfSkill
- anonymize-repoSkill
- arxiv-metadataSkill
- arxiv-prepSkill
- bib-doi-toggleSkill
- check-refsSkill
- critique-figuresSkill
- critique-manuscriptSkill
- doi-bibtexSkill
- openalexSkill
- presubmit-checksSkill
- verify-mathSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Use a user-provided manuscript path when available.
- Distinctive: line 23
Document-class options, margins, and required front matter when venue requirements are available.
- Distinctive: line 28
Verify that every figure and table is referenced in the text and that placement specifiers are reasonable.
- Very specific: line 34
Use non-breaking spaces before citations and references, between quantities and units, and after titles such as Dr.~Smith.
- Distinctive: line 35
Keep citation commands and grouping consistent with the project's citation style.
- Very specific: line 36
Keep heading and caption capitalization, list punctuation, and forms such as Figure versus Fig.
- Very specific: line 37
Keep mathematical notation and variable names consistent.
- Distinctive: line 44
Verify that URLs are valid and correctly escaped when link checking is in scope.
- Distinctive: line 49
Use TeX opening and closing quotation marks for double and single quotes rather than straight quotes:
- Very specific: line 57
Use \ldots or \dots for ellipses and escape %, &, #, $, and _ where required.
- Distinctive: line 58
Keep one sentence per source line unless the project specifies another convention.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review LaTeX documents
Review technical correctness by default. Do not rewrite prose or modify files unless the user asks.
Scope
Use a user-provided manuscript path when available. Otherwise, identify the build entrypoint from the project configuration and TeX structure. Follow \input and \include dependencies rather than reviewing only the main file.
Build with the project's normal entrypoint when possible. Inspect both the compilation log and rendered PDF; do not infer page-layout problems from source alone.
Compilation and submission checks
- Compilation errors and missing source, bibliography, or figure files.
- Undefined references and citations, duplicate labels, and visible
??markers. - Overfull and underfull boxes, including their visible effect in the PDF.
draftdocument-class or package options,showkeys,lineno,\overfullrule, and other debugging aids that should not ship.- Document-class options, margins, and required front matter when venue requirements are available. Do not guess venue rules.
Cross-references and floats
- Flag undefined, duplicate, unused, and broken cross-file labels.
- Verify that every figure and table is referenced in the text and that placement specifiers are reasonable.
- For each float family separately, compare float source order with the order in which labels are first referenced in manuscript reading order. Flag figures, tables, algorithms, or other floats first referenced out of sequence; do not impose one global order across float types.
- Inspect rendered pages for widows, orphans, awkward float placement, and obvious whitespace problems. Treat manual page breaks as a last resort rather than the default fix.
LaTeX consistency
- Use non-breaking spaces before citations and references, between quantities and units, and after titles such as
Dr.~Smith. Do not insert~before\footnote{}. - Keep citation commands and grouping consistent with the project's citation style.
- Keep heading and caption capitalization, list punctuation, and forms such as
FigureversusFig.consistent. Spell out abbreviations at first use. - Keep mathematical notation and variable names consistent. Use
\text{}for words in subscripts, standard operators such as\logand\Pr, and\operatorname{}for custom operators. - Typeset negative numbers in math mode. Keep reference forms such as
Section~\ref{}versusSec.~\ref{}consistent.
Draft artifacts
- Flag
TODO,FIXME,XXX,HACK,TBD,PLACEHOLDER, literalLorem ipsum,\lipsum,\todo,\note,\marginpar, and similar draft material. - Flag long commented-out sections and comments that are clearly stale or submission-facing. Do not treat ordinary explanatory comments as defects.
- Verify that URLs are valid and correctly escaped when link checking is in scope.
- Report unused packages or bibliography entries only when there is evidence they are unused; do not recommend speculative deletion.
Typography and source formatting
- Use TeX opening and closing quotation marks for double and single quotes rather than straight quotes:
``double quoted text''
`single quoted text'- Distinguish hyphens, en dashes, and em dashes. Do not put spaces around em dashes.
- Use
\ldotsor\dotsfor ellipses and escape%,&,#,$, and_where required. - Keep one sentence per source line unless the project specifies another convention.
Prose review when requested
Preserve the author's voice. Correct demonstrable errors in subject-verb agreement, articles, tense, modifiers, parallel structure, fragments, and run-on sentences. Check which versus that, less versus fewer, between versus among, and compared to versus compared with in context. Treat phrases such as in order to, a total of, and the fact that as compression candidates, not automatic substitutions.
Report
Prioritize compilation failures, missing content, unresolved references, and submission blockers. Give a file and line for each source finding, cite log or rendered-page evidence when relevant, and propose a concrete fix. Separate demonstrated problems from preferences or venue-dependent judgments. Do not enumerate checks that passed unless the user requests a checklist.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

