By igorilic
Agents, skills, hooks and an Overleaf MCP server for XeLaTeX document development.
Bibliography lifecycle specialist for biblatex/biber — fetching, normalizing, deduplicating, and validating references. Use when adding citations, fetching BibTeX from a DOI or arXiv ID, cleaning up a messy .bib, fixing broken or duplicate entries, standardizing citation keys, or validating a bibliography.
Compile-log forensic specialist that diagnoses and fixes LaTeX build failures from the .log. Use when a compile fails, latexmk/xelatex errors out, the PDF won't build, you see "Undefined control sequence", "Missing $", a missing .sty, font-not-found, or undefined references that won't resolve.
Multilingual and multi-script typesetting specialist for XeLaTeX — polyglossia, per-script fonts, RTL, and CJK. Use when a document mixes languages or scripts, needs Arabic/Hebrew RTL, Chinese/Japanese/Korean, Cyrillic/Greek, localized dates or numbering, or correct hyphenation and font fallbacks for non-Latin text.
Expert in LaTeX document architecture — class selection, package stacks with correct load order, and project structure for XeLaTeX projects. Use when starting a new document, choosing a document class, designing or auditing a preamble, deciding how to split a large document into \input files, or writing the .latex-agentic.json project contract.
Expert at turning prose, outlines, and rough ideas into idiomatic, semantic LaTeX. Use when drafting or rewriting body text, adding sections, inserting figures or tables, writing math, or converting Markdown/plain notes into clean .tex with proper labels, quoting, and cross-references.
Manage references with biblatex/biber. Use to add a citation from a DOI, arXiv id, or paper title; to set up bibliography wiring in a document; or to check the bibliography for duplicates, missing fields, and unused entries. Triggers on phrases like "add citation", "cite this paper", "add reference", "fix bibliography", "set up biblatex", "check my references", "find the bibtex for".
Remove LaTeX build artifacts from the project. Default keeps the PDF (latexmk -c plus .bbl/.run.xml/.synctex.gz); with --all also removes the PDF (latexmk -C) after explicit confirmation. Never touches .tex, .bib, or figures. Use when the user says "clean", "clean build", "remove aux files", "clean up the project", "tidy build artifacts".
Compile the current LaTeX project with the canonical latexmk/XeLaTeX build, reading engine and main file from .latex-agentic.json. Reports page count, warning count, and over/underfull box counts on success; on failure extracts only the first error block and hands off to the fix-errors flow. Use when the user says "compile", "build", "build the PDF", "render the document".
Diagnose and repair LaTeX compilation failures in a bounded loop — compile capturing the log, isolate the FIRST error, look it up in the error playbook, apply the minimal fix, recompile, repeat (max 5 iterations). Use when a build fails, the user says "fix errors", "fix the compile", "it won't compile", "debug the LaTeX", or when the /compile skill hands off a failure.
Auto-format LaTeX source with latexindent and normalize typography. Use to reindent .tex files, fix inconsistent indentation, tidy whitespace, or convert straight quotes to proper LaTeX quotes. Triggers on phrases like "format my latex", "reindent", "run latexindent", "clean up the formatting", "fix the indentation", "tidy this tex file", "normalize quotes".
Admin access level
Server config contains admin-level keywords
Executes bash commands
Hook triggers when Bash tool is used
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
This plugin requires configuration values that are prompted when the plugin is enabled. Sensitive values are stored in your system keychain.
overleaf_base_urlBase URL of the Overleaf instance. Defaults to https://www.overleaf.com; set this to point at a self-hosted Community or Server Pro instance.
${user_config.overleaf_base_url}overleaf_git_tokenGit authentication token from Overleaf Account Settings -> Git Integration (requires Overleaf premium or a self-hosted instance).
${user_config.overleaf_git_token}overleaf_session_cookieValue of the overleaf_session2 browser cookie. Enables the web transport for listing, creating, deleting and compiling projects.
${user_config.overleaf_session_cookie}Modifies files
Hook triggers on file write and edit operations
Modifies files
Hook triggers on file write and edit operations
Requires secrets
Needs API keys or credentials to function
Requires secrets
Needs API keys or credentials to function
Uses power tools
Uses Bash, Write, or Edit tools
Uses power tools
Uses Bash, Write, or Edit tools
A LaTeX development harness for Claude Code. It turns Claude into a working
collaborator for article and resume writers: scaffold a document, write prose in
idiomatic LaTeX, compile with XeLaTeX, doctor errors from the .log, curate a
bibliography, polish typesetting, set up multilingual documents, and sync the
whole project with Overleaf — all from inside your editor.
One-liner (adds the marketplace and installs the plugin):
curl -fsSL https://raw.githubusercontent.com/igorilic/latex-agentic/main/install.sh | bash
Manual:
claude plugin marketplace add igorilic/latex-agentic
claude plugin install latex-agentic@latex-agentic
Development mode (run from a local checkout, no install):
git clone https://github.com/igorilic/latex-agentic
claude --plugin-dir ./latex-agentic
The installer is idempotent — re-run it to update an existing install. Use
--local <path> to install from a checkout instead of GitHub.
1. cd ~/writing && claude
2. /new-article scaffold main.tex, refs.bib, .latexmkrc, Makefile, .latex-agentic.json
3. ...write your prose with Claude...
4. /compile latexmk -xelatex on the project main file
5. /fix-errors read the .log, fix the first real error, recompile
6. /bibliography add citations, fetch by DOI/arXiv, run biber
7. /overleaf link and sync the project with Overleaf
Resumes start from /new-resume instead of /new-article; everything else is
the same flow.
User-invocable slash commands. Each maps to a focused workflow.
| Skill | Purpose |
|---|---|
/new-article | Scaffold an article project (main.tex, refs.bib, .latexmkrc, Makefile, project contract). |
/new-resume | Scaffold a fontspec-designed one-page resume project. |
/compile | Build the project with latexmk -xelatex (engine read from the project contract). |
/fix-errors | Parse the .log, fix the first real error, recompile until clean. |
/bibliography | Manage BibTeX/biblatex entries, fetch by DOI/arXiv, run biber. |
/format | Run latexindent and apply spacing/microtype conventions. |
/structure | Manage sectioning, table of contents, lists, and cross-references. |
/i18n | Set up multilingual typesetting (polyglossia, fonts, RTL/CJK). |
/overleaf | Link, clone, pull, push, and compile via Overleaf. |
/clean | Remove LaTeX build artifacts and auxiliary files. |
/wordcount | Report a word count with texcount. |
Specialist subagents the main loop delegates to.
| Agent | Purpose |
|---|---|
latex-architect | Document structure and preamble design. |
latex-writer | Prose drafting in idiomatic LaTeX. |
error-doctor | .log forensics, reduced to the minimal fix. |
bib-curator | BibTeX/biblatex curation, DOI/arXiv fetch. |
typesetter | Spacing, microtype, and layout polish. |
i18n-typesetter | polyglossia, fonts, and RTL/CJK/Cyrillic setup. |
overleaf-liaison | Drives the Overleaf MCP tools. |
resume-coach | Resume content and one-page discipline. |
proofreader | Prose-level grammar and consistency pass. |
Hooks run automatically in the background; they only ever add context and never block your work.
.tex
file or .latex-agentic.json) and injects context: the main file, engine,
bibliography backend, languages, which toolchain binaries are present
(xelatex/latexmk/chktex/biber), and Overleaf link state..tex edit, runs chktex (noisy rules
suppressed) and surfaces warnings; after a .bib edit, checks brace balance
and duplicate citation keys.pdflatex on a project that
uses fontspec/polyglossia/xeCJK, emits an advisory nudge toward
xelatex. Advisory only; the command still runs.Two transports, used together or independently:
https://git.overleaf.com/<projectId> with basic auth git:<token>. Robust
file sync; requires Overleaf premium or a self-hosted instance.Configure either through the plugin's userConfig prompts or via environment
variables:
npx claudepluginhub igorilic/latex-agentic --plugin latex-agenticAccess thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.
Feature development with code-architect/explorer/reviewer agents, CLAUDE.md audit and session learnings, and Agent Skills creation with eval benchmarking from Anthropic.
Production-grade engineering skills for AI coding agents — covering the full software development lifecycle from spec to ship.
Permanent coding companion for Claude Code — survives any update. MCP-based terminal pet with ASCII art, stats, reactions, and personality.
Complete developer toolkit for Claude Code
Reliable automation, in-depth debugging, and performance analysis in Chrome using Chrome DevTools and Puppeteer