Agent skill

Compile Latex

by pedrohcgs in pedrohcgs/claude-code-my-workflow

Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex).

MITAuto-check: notesDocuments & Office

Install Compile Latex

skills CLI
$ npx skills add pedrohcgs/claude-code-my-workflow --skill compile-latex -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pedrohcgs/claude-code-my-workflow compile-latex --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pedrohcgs/claude-code-my-workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/compile-latex .claude/skills/compile-latex && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
compile-latex
GitHub stars
1.7k
Used in
1 other repo
Token cost
~492 tokens
SKILL.md length
136 words
Files
1
Skills in repo
59
Repo updated
First seen
Licence
MIT

At a glance

Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex).

  • Works in 3 steps: Check for warnings → Open the PDF for visual verification → Report results
  • User says compile
  • SKILL.md covers Steps, Why 3 passes? and Important
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Compile Latex is an agent skill from pedrohcgs/claude-code-my-workflow. Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex). Use when user says "compile", "build the slides", "rebuild the PDF", "run latex", "render the tex", or asks why a .tex file isn't producing a PDF. Operates on Slides/.tex.

Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office, covering LaTeX and Slides and decks. It works with LaTeX. The repository describes itself as: A ready-to-fork Claude Code template for academics using LaTeX/Beamer + R. Multi-agent review, quality gates, adversarial QA, and replication protocols. The licence is MIT.

When your agent uses it

  • User says compile
  • Build the slides
  • Rebuild the PDF
  • Asks why a .tex file isnt producing a PDF

Example prompts

  • “compile”
  • “build the slides”
  • “rebuild the PDF”
  • “/compile-latex”

Requirements

  • Pre-approved tools (allowed-tools): Read, Bash, Glob

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Check for warnings
  2. Open the PDF for visual verification
  3. Report results

What it can do on your machine

Read from SKILL.md and the folder at commit ae72617. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Compile Latex loads about 492 tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 136 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~492

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Bash, Glob

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pedrohcgs/claude-code-my-workflow at commit ae72617, republished under its MIT licence (© pedrohcgs). 136 words, ~492 tokens.

Download SKILL.mdSave it as .claude/skills/compile-latex/SKILL.md (or your agent's skills folder).
name
compile-latex
description
Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex). Use when user says "compile", "build the slides", "rebuild the PDF", "run latex", "render the tex", or asks why a `.tex` file isn't producing a PDF. Operates on `Slides/*.tex`.
allowed-tools
Read, Bash, Glob
argument-hint
[filename without .tex extension]

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:
bash
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):

bash
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:

    bash
    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

© pedrohcgs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/compile-latex of pedrohcgs/claude-code-my-workflow.

Open the folder on GitHubat commit ae72617

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in pedrohcgs/claude-code-my-workflow, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Compile Latex next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Compile Latex compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Compile Latex this skillpedrohcgs/claude-code-my-workflow1.7k1 repos~492Automated safety check: NotesMIT
Scientific SlidesK-Dense-AI/claude-scientific-writer2.4k14 repos~5.4kAutomated safety check: NotesMIT
BeamerNoi1r/beamer-skill364—~13kAutomated safety check: NotesMIT
Powerpoint SlidesNoi1r/powerpoint-skill124—~12kAutomated safety check: NotesMIT
Explorable Deckclaesbackman/AI-research-feedback495—~2.9kAutomated safety check: PassMIT
Latex Postersflonat/flonat-research146—~1.5kAutomated safety check: NotesMIT

Similar skills

  • Scientific Slides

    K-Dense-AI/claude-scientific-writer

    Build slide decks and presentations for research talks. An agent skill from K-Dense-AI/claude-scientific-writer.

    2.4k GitHub starsUsed in 14 repos~5.4k tokens
    Documents & OfficeAuto-check: notes
  • Beamer

    Noi1r/beamer-skill

    Beamer LaTeX slide workflow: create, compile, review, and polish academic presentations.

    364 GitHub stars~13k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check: notes
  • Powerpoint Slides

    Noi1r/powerpoint-skill

    Create visually rich PowerPoint (.pptx) presentations from academic papers, research notes, or any content the user wants in slide format.

    124 GitHub stars~12k tokensUpdated 6 mo ago
    Documents & OfficeAuto-check: notes
  • Explorable Deck

    claesbackman/AI-research-feedback

    Build a Quarto reveal.js slide deck in the explorable-explanation style (Nicky Case) — one idea per slide, assertion titles, a concrete running example, run-time SVG stages the presenter drives…

    495 GitHub stars~2.9k tokensUpdated 15 days ago
    Documents & OfficeAuto-check passed
  • Latex Posters

    flonat/flonat-research

    Create a large-format academic poster in LaTeX using beamerposter, tikzposter, or baposter.

    146 GitHub stars~1.5k tokensUpdated 11 days ago
    Documents & OfficeAuto-check: notes
  • Beamer Slides Teaching

    aspi6246/Claude-Code-Skills-for-Academics

    Generate LaTeX Beamer slide decks using my defined style and conventions.

    159 GitHub stars~1.3k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed

More from pedrohcgs/claude-code-my-workflow

All 59 skills in this repo
  • Devils Advocate

    pedrohcgs/claude-code-my-workflow

    Adversarial 5-7 question challenge to a deck's pedagogical choices — ordering, prerequisites, cognitive load, motivation.

    1.7k GitHub starsUsed in 2 repos~641 tokens
    Auto-check passed
  • Vaccinate

    pedrohcgs/claude-code-my-workflow

    Qualify a check before it is allowed to clear anything — prove it can detect the failure it is meant to catch.

    1.7k GitHub stars~2.1k tokensUpdated 13 days ago
    Auto-check: notes
  • Context Status

    pedrohcgs/claude-code-my-workflow

    Show current context status and session health. An agent skill from pedrohcgs/claude-code-my-workflow.

    1.7k GitHub starsUsed in 1 repo~613 tokens
    Auto-check: notes
  • Capture Environment

    pedrohcgs/claude-code-my-workflow

    Snapshot the computational environment for a replication package — detects the analysis stack (R / Stata / Python) and emits the right lockfiles (renv.lock + sessionInfo.txt, requirements.txt /…

    1.7k GitHub stars~2.8k tokensUpdated 13 days ago
    Auto-check: notes
  • Checkpoint

    pedrohcgs/claude-code-my-workflow

    Save a structured state snapshot before stopping or handing off.

    1.7k GitHub stars~2.8k tokensUpdated 13 days ago
    Auto-check: notes
  • Coauthor Brief

    pedrohcgs/claude-code-my-workflow

    Generate a co-author / collaborator handoff brief for a multi-author, multi-machine project — summarizing what changed since the last brief (git delta), the current state of each artifact…

    1.7k GitHub stars~2.9k tokensUpdated 13 days ago
    Auto-check: notes

Works with

Questions about Compile Latex

What does Compile Latex do?

Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex). Compile Latex is an agent skill from pedrohcgs/claude-code-my-workflow. Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex).

When should I use Compile Latex?

Compile Latex fits situations like: user says compile; build the slides; rebuild the PDF; asks why a .tex file isnt producing a PDF.

How do I install Compile Latex in Claude Code?

Run `npx skills add pedrohcgs/claude-code-my-workflow --skill compile-latex -a claude-code`. Or copy the skill folder (.claude/skills/compile-latex in pedrohcgs/claude-code-my-workflow) into .claude/skills/compile-latex in your project. Claude Code loads it when a task matches its description.

How do I install Compile Latex in Codex?

Run `npx skills add pedrohcgs/claude-code-my-workflow --skill compile-latex -a codex`. Or copy the skill folder (.claude/skills/compile-latex in pedrohcgs/claude-code-my-workflow) into .agents/skills/compile-latex in your project. Codex loads it when a task matches its description.

Can I use Compile Latex in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pedrohcgs/claude-code-my-workflow --skill compile-latex -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/compile-latex, .gemini/skills/compile-latex, .github/skills/compile-latex and .opencode/skills/compile-latex in your project.

What does Compile Latex need to run?

SKILL.md names no scripts, command-line tools or credentials: Compile Latex is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Bash, Glob.

Does Compile Latex access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Compile Latex safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Compile Latex use?

Compile Latex is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Compile Latex use?

About 492 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Compile Latex?

Skills that share tags, products or a category with Compile Latex: Scientific Slides (K-Dense-AI/claude-scientific-writer, 2.4k stars), Beamer (Noi1r/beamer-skill, 364 stars), Powerpoint Slides (Noi1r/powerpoint-skill, 124 stars) and Explorable Deck (claesbackman/AI-research-feedback, 495 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Compile Latex?

pedrohcgs (a GitHub user) maintains it in pedrohcgs/claude-code-my-workflow, which has 1,655 GitHub stars. The repository holds 59 skills in this directory. The repository was last updated on September 27, 2026.

Source: pedrohcgs/claude-code-my-workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.