latex

latex is a skill for Claude Code from flonat/flonat-research. It costs 74 tokens per session (4,854 once invoked), scanned A, original, MIT.

A workflow for compiling LaTeX documents into PDFs and diagnosing build problems. LaTeX is a document system commonly used for papers with citations, equations, and precise formatting.

In plain words
What is it for?
Use it to build a specific .tex file, fix concrete compilation failures, and review the quality of the resulting document.
Why use it?
It helps find and repair compilation errors and checks citations after a successful build.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument; $skill-name invocation.

Good fit Use it to build a specific .tex file, fix concrete compilation failures, and review the quality of the resulting document.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flonat/flonat-research/latex
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add flonat/flonat-research --skill latex
Clone the repo
git clone --depth 1 https://github.com/flonat/flonat-research

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/flonat/flonat-research/latex/github.svg)](https://agentmods.dev/skills/flonat/flonat-research/latex)
Your own site
<a href="https://agentmods.dev/skills/flonat/flonat-research/latex"><img src="https://agentmods.dev/badge/skills/flonat/flonat-research/latex/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/flonat/flonat-research/latex"><img src="https://agentmods.dev/badge/skills/flonat/flonat-research/latex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,854 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.00074 $0.04854
Opus 5 $0.00037 $0.02427
Sonnet 5 $0.00015 $0.00971
Haiku 4.5 $0.00007 $0.00485

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

Security

Grade A, and why

latex 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 6d 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.

skills/latex/SKILL.md · 373 lines

How it starts

The opening of the file, as written. The whole thing — 373 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LaTeX Document Compilation

Default compilation skill for all LaTeX documents. Compiles with autonomous error detection and resolution (up to 5 iterations), runs a citation audit on clean builds, and produces a quality score.

When to Use

  • Default method for all LaTeX compilation
  • Any .tex file that should compile to PDF
  • When compilation fails and you want automatic diagnosis and repair
  • When you want a post-compilation citation audit

When NOT to Use

  • Markdown documents — use plain markdown, not LaTeX
  • Quick notes or drafts — LaTeX overhead not worth it
  • Documents that don't need citations, equations, or precise formatting
  • Documents with exotic custom classes that need manual debugging

Quality Scoring

Apply numeric quality scoring using the shared framework and skill-specific rubric:

Start at 100, deduct per issue found, apply verdict. Include the Score Block in the final report.

Critical Rules

  1. Build artifacts go to out/, PDF stays in the source directory. Use this skill's fail-closed canonical bundle at templates/build-config/.latexmkrc; do not hand-write an END { system(...) } copy block because it can mask latexmk's failure status and copy stale PDFs. For VS Code builds, use the bundled canonical recipe that explicitly loads %DIR%/.latexmkrc-cd alone is insufficient.
  2. NEVER write BibTeX entries from memory. Verify against authoritative metadata sources such as Crossref or the DOI resolver before writing. Use an installed literature-search workflow when one is configured.
  3. Check document class before adding packages. Some classes load packages internally (e.g., elsarticle loads natbib — adding \usepackage{natbib} causes errors).
  4. Maximum 5 fix iterations. If the document still has errors after 5 auto-fix cycles, stop and report the unresolved errors to the user.
  5. Never silently swallow errors. Every fix must be reported: what was wrong, what was changed, and which file was edited.
  6. Preserve user intent. Auto-fixes should be minimal and conservative. Add packages or overrides — never remove user content.
  7. Citation audit requires clean compilation. Only run the \cite{} vs .bib cross-check after zero errors.
  8. Validate new bibliography entries. The built-in citation audit checks key cross-references. When .bib entries were added or modified, also check DOI resolution, required fields, author formatting, and whether a preprint has a published version. If a dedicated bibliography validator is installed, use it for this extended check; otherwise perform and report the direct checks.

Read the full file on GitHub · 373 lines

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. 6d ago First seen · 373 lines · 74 tokens per session scan A e94b340b0ce4

Subscribe to this mod's changes

latex is a skill published in the GitHub repository flonat/flonat-research (132 stars, last pushed 14d ago), licensed MIT. It adds 74 tokens to every session and 4,854 once invoked, about $0.0004 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

latex-compile

Compile a LaTeX document and fix every error plus aesthetic issue (overfull/underfull boxes, widows, alignment, fonts) for a clean PDF and log. Use this instead of running pdflatex/latexmk manually — it avoids the latexmk stale-log trap and silent grep failures on binary log output, and it reformats rather than…

Mexregkan/claude-for-researchers · 79 tokens

beamer-presentation

Create academic presentations in Beamer with professional themes.

brycewang-stanford/Auto-Empirical-Research-Skills · 14 tokens

latex-tables

Generate publication-ready regression tables in LaTeX.

brycewang-stanford/Auto-Empirical-Research-Skills · 14 tokens

nature-data

Prepare, audit, or revise Nature-ready Data Availability statements, data repository plans, dataset citations, and FAIR metadata checklists for manuscripts. Use when the user asks about Nature data availability, research data sharing, repository selection, accession numbers, restricted or sensitive data, source data…

Galaxy-Dawn/claude-scholar · 90 tokens

publication-chart-skill

This skill should be used when the user asks for a publication-quality scientific figure or table, wants help choosing the right chart for results, needs a paper-ready pubfig or pubtab workflow, wants a figure + companion table for a results section, wants an Excel sheet turned into publication-ready LaTeX, or wants…

Galaxy-Dawn/claude-scholar · 77 tokens

paper-figures

Extract figures from downloaded papers and include them in survey/review reports. Use when the report covers other groups' work and benefits from their architecture diagrams, experimental plots, or system schematics. Your brain prompt supplies the absolute path to the extract-figures script as {{EXTRACTFIGURES}} — use…

Muuuun/luxas · 79 tokens