compile-latex

compile-latex is a skill for Claude Code from pedrohcgs/claude-code-my-workflow. It costs 73 tokens per session (577 once invoked), scanned A, original, MIT.

A workflow for compiling Beamer LaTeX slide decks into PDFs with XeLaTeX and BibTeX. Beamer is a LaTeX format for presentation slides, and BibTeX resolves bibliography references.

In plain words
What is it for?
Use it when rebuilding slides, compiling a .tex file, investigating PDF build failures, or verifying the resulting slide deck.
Why use it?
It repeats the required compilation passes so citations, references, and changed labels can be resolved. It also checks for common layout and citation warnings.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is TEXINPUTS=../Preambles:$TEXINPUTS xelatex -interaction=nonstopmode $ARGUMENTS.tex.

Good fit Use it when rebuilding slides, compiling a .tex file, investigating PDF build failures, or verifying the resulting slide deck.

Compare 6 skills from other repositories ↓
About the project

claude-code-my-workflow is a forkable setup for using Claude Code to produce and review academic papers, slides, data analyses, and replication packages. Researchers use its agents, skills, rules, hooks, and quality checks to coordinate these tasks and verify their results. The catalogue entries define the reusable workflow components for Claude Code.

pedrohcgs/claude-code-my-workflow · 1,569 stars · on GitHub · psantanna.com

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/pedrohcgs/claude-code-my-workflow
agentmods
npx agentmods add skills/pedrohcgs/claude-code-my-workflow/compile-latex

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 compile-latex

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pedrohcgs/claude-code-my-workflow/compile-latex"><img src="https://agentmods.dev/badge/skills/pedrohcgs/claude-code-my-workflow/compile-latex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 577 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.00073 $0.00577
Opus 5 $0.00036 $0.00289
Sonnet 5 $0.00015 $0.00115
Haiku 4.5 $0.00007 $0.00058

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

Security

Grade A, and why

compile-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 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.

.claude/skills/compile-latex/SKILL.md · 57 lines

What it actually says

Compile Beamer LaTeX Slides

Compile a Beamer slide deck using XeLaTeX with full citation resolution.

Steps

  1. Navigate to Slides/ directory and compile with 3-pass sequence:
cd Slides
TEXINPUTS=../Preambles:$TEXINPUTS xelatex -interaction=nonstopmode $ARGUMENTS.tex
BIBINPUTS=..:$BIBINPUTS bibtex $ARGUMENTS
TEXINPUTS=../Preambles:$TEXINPUTS xelatex -interaction=nonstopmode $ARGUMENTS.tex
TEXINPUTS=../Preambles:$TEXINPUTS xelatex -interaction=nonstopmode $ARGUMENTS.tex

Alternative (latexmk):

cd Slides
TEXINPUTS=../Preambles:$TEXINPUTS BIBINPUTS=..:$BIBINPUTS latexmk -xelatex -interaction=nonstopmode $ARGUMENTS.tex
  1. Check for warnings:

    • Grep output for Overfull \\hbox warnings
    • Grep for undefined citations or Label(s) may have changed
    • Report any issues found
  2. Open the PDF for visual verification:

    open Slides/$ARGUMENTS.pdf          # macOS
    # xdg-open Slides/$ARGUMENTS.pdf    # Linux
    
  3. Report results:

    • Compilation success/failure
    • Number of overfull hbox warnings
    • Any undefined citations
    • PDF page count

Why 3 passes?

  1. First xelatex: Creates .aux file with citation keys
  2. bibtex: Reads .aux, generates .bbl with formatted references
  3. Second xelatex: Incorporates bibliography
  4. Third xelatex: Resolves all cross-references with final page numbers

Important

  • Always use XeLaTeX, never pdflatex
  • TEXINPUTS is required: your Beamer theme lives in Preambles/
  • BIBINPUTS is required: your .bib file lives in the repo root
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 · 57 lines · 73 tokens per session scan A 6784e39c6cfe

Subscribe to this mod's changes

compile-latex is a skill published in the GitHub repository pedrohcgs/claude-code-my-workflow (1,569 stars, last pushed 15d ago), licensed MIT. It adds 73 tokens to every session and 577 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-08-30.

Related

Other skills, from other repositories

fin-paper-convert

Compile LaTeX to PDF and convert to target journal format.

csmar432/finai-research · 12 tokens

add-pdf-report

Internal implementation skill invoked by /add-native for app-generated PDF report workflows using expo-print and, when present, expo-sharing.

microsoft/power-platform-skills · 30 tokens

add-pdf-viewer

Internal implementation skill invoked by /add-native for native PDF control workflows. Handles HTTPS and file URI PDF viewing with @microsoft/power-apps-native-pdf-viewer 0.2.9+.

microsoft/power-platform-skills · 47 tokens

ccs-submission

Use when auditing an ACM CCS submission for HotCRP readiness, dual-cycle abstract registration and full-paper deadlines, the 12-page ACM sigconf body, anonymization, the ethics considerations appendix, artifact-availability posture, dual-submission policy, per-cycle submission caps, desk-reject triggers, and…

brycewang-stanford/Awesome-Journal-Skills · 69 tokens

acmmm-camera-ready

Use when preparing the ACM MM (ACM Multimedia) camera-ready version of record — de-anonymizing safely, completing the ACM rights form and CCS concepts, meeting ACM sigconf requirements, releasing code/data/media artifacts and any earned reproducibility badge, registering, and planning the oral/poster presentation in…

brycewang-stanford/Awesome-Journal-Skills · 67 tokens

pdf-design

Designs PDF reports and proposals from HTML with previews and branding. Use to create, export, or securely upload a PDF.

jamditis/claude-skills-journalism · 28 tokens