latex-compile

latex-compile is a skill for Claude Code from DaRL-GenAI/instructional_agents-skills. It costs 60 tokens per session (490 once invoked), scanned A, original, MIT.

A batch builder for LaTeX, a document system often used for papers, reports, and presentation slides. It finds every .tex source file under a folder and creates a PDF for each one.

In plain words
What is it for?
Use it to build all LaTeX documents in a directory tree, refresh PDFs after editing several files, or optionally create PowerPoint files from them.
Why use it?
It removes the need to compile files one by one and keeps temporary build files out of the source folders. Caching can avoid repeating unchanged work.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the instructional-agents plugin — 4 skills shipped together

Good fit Use it to build all LaTeX documents in a directory tree, refresh PDFs after editing several files, or optionally create PowerPoint files from them.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add DaRL-GenAI/instructional_agents-skills
Claude Code
/plugin install instructional-agents

Made for: Claude Code.

Or install instructional-agents, the plugin that ships this one along with the rest of its 4 skills.

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/darl-genai/instructional_agents-skills/latex-compile/github.svg)](https://agentmods.dev/skills/darl-genai/instructional_agents-skills/latex-compile)
Your own site
<a href="https://agentmods.dev/skills/darl-genai/instructional_agents-skills/latex-compile"><img src="https://agentmods.dev/badge/skills/darl-genai/instructional_agents-skills/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/darl-genai/instructional_agents-skills/latex-compile"><img src="https://agentmods.dev/badge/skills/darl-genai/instructional_agents-skills/latex-compile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 490 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.
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.00060 $0.00490
Opus 5 $0.00030 $0.00245
Sonnet 5 $0.00012 $0.00098
Haiku 4.5 $0.00006 $0.00049

Measured 12d ago against content hash 5d1bb7be25bc, 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/compile.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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-compile/SKILL.md · 62 lines

What it actually says

LaTeX Batch Compile

Recursively finds .tex files under a directory and compiles each to .pdf using pdflatex (or xelatex), with a per-file cache directory so that auxiliary files don't pollute the source tree.

When to invoke this skill

  • User asks to "compile all .tex in folder X"
  • User has modified LaTeX files and wants fresh PDFs
  • Post-processing after course-generate (it emits .tex, not .pdf)

Prerequisites

A LaTeX distribution on PATH. Check:

which pdflatex || which xelatex

If missing, point the user to TeX Live or MacTeX.

Usage

python3 "${CLAUDE_PLUGIN_ROOT}/skills/latex-compile/scripts/compile.py" \
  <directory> [--also-pptx]

Arguments

Arg Required Description
<directory> yes Root directory to scan recursively
--also-pptx no Also convert each .tex to .pptx after PDF compilation

Engine

The underlying compiler uses pdflatex (hardcoded in src.compile.LaTeXCompiler). For xelatex / lualatex support, open an issue upstream.

Example

python3 "${CLAUDE_PLUGIN_ROOT}/skills/latex-compile/scripts/compile.py" \
  exp/reinforcement_learning --also-pptx

Output

  • *.pdf next to each *.tex
  • Aux files (.aux, .log, .toc, …) stored in <dir>/.cache/<stem>/

Citation

This skill wraps src.compile from Instructional Agents (arXiv:2508.19611).

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 62 lines · 60 tokens per session scan A 5d1bb7be25bc

Subscribe to this mod's changes

latex-compile is a skill published in the GitHub repository DaRL-GenAI/instructional_agents-skills (1 stars, last pushed 4mo ago), licensed MIT. It adds 60 tokens to every session and 490 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

paper-fetch

Use whenever the user wants to obtain, download, or fetch a paper's PDF — given a DOI, an arXiv id, a paper title, a citation, or a list of DOIs. Trigger on phrases like "download this paper", "find the PDF for [DOI]", "grab me the [Nature/bioRxiv/arXiv] paper on X", "get the open-access version", "I need this…

Agents365-ai/paper-fetch · 162 tokens

pdf-explore

Use this skill when the user has attached or pointed to a PDF, paper, report, or other document and the answer needs content from more than one place in it: summarize the methods or any other section, compare sections, find where a topic is discussed, read a value or label off a figure or chart, pull tables out as…

emaballarin/ccplugins · 264 tokens

jasper-deploy

Design, compile, and deploy JasperReports artifacts to JasperReports Server over REST v2. Use for scaffolding a report from SQL, generating or editing a JR7 .jrxml, compiling/deploying/verifying reports, composing dashboards, managing datasources, Domains, ad hoc views, OLAP/Mondrian, themes, input controls…

robertgorsuch/AI-JasperReports-Generator · 152 tokens

working-with-pdfs

Handles PDF operations (reading, creating, modifying). Use when extracting text from PDFs, converting markdown to PDF, merging or splitting PDFs, compressing, rotating pages, handling metadata, or when Claude Code's native PDF reading fails.

isvlasov/rageatc-oss · 51 tokens

latex-engine

Activate when the user wants to export a completed paper draft to production-ready LaTeX (.tex) and PDF. Converts draft.md + references.bib + figures/ into a complete arxiv-style LaTeX project with properly resolved \citep/\citet citations, booktabs tables, figure environments, and compiled PDF output.

TobiasBlask/open-paper-machine · 69 tokens

chatdoc-studio-api

ChatDOC Studio API usage guide - complete documentation and examples for PDF parsing, chat applications, agent applications, content retrieval, and data extraction APIs.

chatdoc-com/chatdoc-studio-skills · 34 tokens