latex-compile

latex-compile is a skill for Claude Code, Codex from fanfan-de/anybox. It costs 36 tokens per session (381 once invoked), scanned A, original, MIT.

A tool that builds LaTeX documents from .tex source files, using Tectonic for simple projects and an existing TeX Live or MacTeX installation when more tools are needed.

In plain words
What is it for?
Use it to compile, render, or regenerate a LaTeX document and place the output in a chosen build directory.
Why use it?
It chooses an available compiler and handles projects that require features such as bibliographies, indexes, glossaries, or shell commands.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/compile_latex.py /absolute/path/to/main.tex.

Good fit Use it to compile, render, or regenerate a LaTeX document and place the output in a chosen build directory.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/fanfan-de/anybox
agentmods
npx agentmods add skills/fanfan-de/anybox/latex-compile

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for latex-compile

README.md
[![agentmods](https://agentmods.dev/badge/skills/fanfan-de/anybox/latex-compile/github.svg)](https://agentmods.dev/skills/fanfan-de/anybox/latex-compile)
Your own site
<a href="https://agentmods.dev/skills/fanfan-de/anybox/latex-compile"><img src="https://agentmods.dev/badge/skills/fanfan-de/anybox/latex-compile/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for latex-compile

Your own site · 80×15
<a href="https://agentmods.dev/skills/fanfan-de/anybox/latex-compile"><img src="https://agentmods.dev/badge/skills/fanfan-de/anybox/latex-compile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 381 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00381
Opus 5 $0.00018 $0.00191
Sonnet 5 $0.00007 $0.00076
Haiku 4.5 $0.00004 $0.00038

Measured 9d ago against content hash 7f75388cc330, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

latex-compile scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/Anybox-Plugins/latex/skills/latex-compile/SKILL.md · 37 lines

What it actually says

LaTeX Compile

Use this skill when the user asks to build, render, regenerate, or compile a .tex file.

Run from the plugin root:

python3 scripts/compile_latex.py /absolute/path/to/main.tex

Default auto mode uses Tectonic first only when the project looks simple enough not to need a full TeX Live toolchain. It falls back to TeX Live or MacTeX when Tectonic fails or when the project uses bibliography, shell-escape, index/glossary, or explicit non-Tectonic engine features.

Common options:

python3 scripts/compile_latex.py /absolute/path/to/main.tex --compiler tectonic
python3 scripts/compile_latex.py /absolute/path/to/main.tex --compiler texlive
python3 scripts/compile_latex.py /absolute/path/to/main.tex --engine xelatex
python3 scripts/compile_latex.py /absolute/path/to/main.tex --output-directory /absolute/path/to/build
python3 scripts/compile_latex.py /absolute/path/to/main.tex --json

Behavior

  • Detects bundled or PATH Tectonic and existing TeX Live or MacTeX.
  • Honors a leading % !TEX root = ... directive when present.
  • Uses latexmk for TeX Live builds when available.
  • Enables SyncTeX with -synctex=1 for TeX Live builds.
  • Does not install TeX.

If neither Tectonic nor a usable TeX installation is found, stop and route to latex-doctor or texlive-runtime-installer.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 37 lines · 36 tokens per session scan A 7f75388cc330

Subscribe to this mod's changes

latex-compile is a skill published in the GitHub repository fanfan-de/anybox (57 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 381 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories