latex-autofix

Automate LaTeX compilation by iteratively fixing errors and auditing citations.

127|22|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/flonat/claude-code-flonat --skill latex-autofix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: latex-autofix
Source: https://github.com/flonat/claude-code-flonat/tree/main/skills/latex-autofix
Command: npx skills add https://github.com/flonat/claude-code-flonat --skill latex-autofix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the compilation of LaTeX documents, intelligently identifying and fixing common errors, saving researchers significant debugging time.

Core Features & Use Cases

  • Autonomous Error Resolution: Automatically detects and corrects issues like missing packages, font conflicts, and citation errors.
  • Iterative Compilation: Runs a fix-loop for up to 5 iterations, attempting to resolve errors before reporting unresolved ones.
  • Citation Audit: Performs a cross-check between cited keys in the .tex file and entries in the .bib file upon successful compilation.
  • Use Case: When your LaTeX paper fails to compile, use this Skill to automatically fix common issues and generate a PDF, allowing you to focus on content rather than syntax.

Quick Start

Use the latex-autofix skill to compile your main paper document located at '~/projects/my-thesis/main.tex'.

Frequently Asked Questions about latex-autofix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix LaTeX compilation errors automatically?

To fix LaTeX compilation errors automatically, this skill parses build logs and iteratively applies corrections for missing packages, font conflicts, and undefined citations for up to five iterations to generate a PDF.

What is the best way to resolve missing package errors in LaTeX?

The best way to resolve missing package errors in LaTeX is using an autonomous error resolution loop that detects the missing packages from the log and automatically applies the necessary fixes before recompiling.

How does a citation audit work during LaTeX compilation?

A citation audit works during LaTeX compilation by cross-checking the cited keys in the .tex file against the entries in the .bib file after a successful build to identify any mismatched or undefined references.

Can I use latexmk to compile and automatically fix undefined citations?

Yes, you can use latexmk to compile and automatically fix undefined citations; this skill executes the latexmk build tool and applies iterative fixes to resolve citation errors and produce a final PDF.

What are the limitations of automated LaTeX error fixing?

The limitations of automated LaTeX error fixing include a maximum of five iterative fix attempts, meaning that if complex errors remain unresolved after the loop completes, the skill will report the remaining issues without generating a PDF.