Latex cleanup

From FOURTEEN1416/academic-agent-toolkit · View interactive version

Latex cleanup is an AI agent skill from the GitHub repository FOURTEEN1416/academic-agent-toolkit. Reviews LaTeX docs for style, typography, cross-references, artifacts, and compile-breaking leftovers. Use when cleaning up LaTeX.

How to use this skill

Skill file

latex-cleanup — LaTeX Document Review

Systematically review LaTeX documents and identify issues that need attention.

When to Use

Workflow

1. Find the paper

Same search logic as other skills:

  1. User-provided path
  2. paper/current/main.tex
  3. paper/main.tex
  4. main.tex
  5. Glob for **/*.tex with \begin{document}

2. Read the document

Identify all .tex files in the project (main file + \input/\include targets). Read the main document and any included files.

3. Run checks

Go through each checklist category below.

4. Report findings

Report organized by category with specific line references. Offer to fix issues when possible.

Checklist Categories

1. Common Issues

2. Style Consistency

3. Draft Artifacts and Cleanup

4. Cross-references

For float reference-order checks, identify labeled floats in source order, then scan the manuscript text in reading order for the first reference to each label. Compare the two sequences within each float type separately; do not require one global order across figures, tables, algorithms, etc.

5. Typography

6. Source Formatting

7. Grammar and Language

Output Format

Report findings in this format:

## [Category Name]

### [Issue Type]
- `filename.tex:123` - Description of issue
- `filename.tex:456` - Description of issue

**Suggested fix**: [If applicable]

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.