A skill your agent uses when compiling a LaTeX paper, debugging LaTeX errors, building a paper PDF, or when a .tex file fails to produce output.

Custom licenceAuto-check passedDocuments & Office

Install Compile Latex

skills CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill compile-latex -a claude-code

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

GitHub CLI
$ gh skill install brycewang-stanford/Auto-Empirical-Research-Skills 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/brycewang-stanford/Auto-Empirical-Research-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/60-regisely-superpapers/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
4.6k
Token cost
~913 tokens
SKILL.md length
437 words
Files
2 (incl. scripts)
Skills in repo
383
Repo updated
First seen
Licence
Custom licence

At a glance

A skill your agent uses when compiling a LaTeX paper, debugging LaTeX errors, building a paper PDF, or when a .tex file fails to produce output.

  • Works in 6 steps: Detect the engine from the preamble.… → Detect the bibliography system.… → Prefer latexmk if available. It handles… → …
  • Compiling a LaTeX paper
  • SKILL.md covers Overview, When to Use, Mandatory Steps and Using the Wrapper Script, plus 3 more sections
  • Runs Shell scripts from its folder

What it does

Compile Latex is an agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. Use when compiling a LaTeX paper, debugging LaTeX errors, building a paper PDF, or when a .tex file fails to produce output. Handles engine detection (xelatex vs pdflatex), bibliography systems (biber vs bibtex), and multi-pass compilation.

Its SKILL.md is about 910 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/compile.sh`).

It sits in Documents & Office, covering LaTeX and Citation management. It works with LaTeX. The repository describes itself as: 🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI…

When your agent uses it

  • Compiling a LaTeX paper
  • Debugging LaTeX errors
  • Building a paper PDF
  • A .tex file fails to produce output

Example prompts

  • “/compile-latex”

Requirements

  • A Bash shell

Workflow steps

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

  1. Detect the engine from the preamble. Look for \usepackage{fontspec}. If present, use xelatex. Otherwise use pdflatex. The wrapper script…
  2. Detect the bibliography system. \usepackage{biblatex} in the preamble implies biber. \bibliography{...} at the end of the document implies…
  3. Prefer latexmk if available. It handles multi-pass logic automatically and is more robust than running passes manually.
  4. If latexmk is unavailable, run the manual sequence: engine → bib (if applicable) → engine → engine.
  5. On error, parse the log file (.log). Extract lines starting with !, report the line number and file, and suggest a likely fix from the…
  6. Verify the PDF was produced after successful compilation and that it is non-empty.

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    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 913 tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 437 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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); the scripts in this folder are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 437 words (~913 tokens).

“This skill compiles LaTeX documents correctly with the right engine and bibliography system, handles multi-pass compilation, and parses errors to suggest fixes. It ships with a wrapper script (scripts/compile.sh) that detects everything automatically and can be invoked directly.”

— opening of SKILL.md by brycewang-stanford, Custom licence
name
compile-latex

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (scripts) in skills/60-regisely-superpapers/skills/compile-latex of brycewang-stanford/Auto-Empirical-Research-Skills.

  • SKILL.md
  • scripts/compile.sh

Open the folder on GitHubat commit 9fa87d8

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 skillbrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~913Automated safety check: PassCustom licence
Literature Surveyai4s-research/ai4s-skills2372 repos~2kAutomated safety check: PassMIT
Latex To Word Workflowhajimi-kun/latex-to-word-workflow128—~2.3kAutomated safety check: PassMIT
Latex Paper Enbahayonghang/academic-writing-skills500—~4.9kAutomated safety check: PassNone
Paper Detailsmathbullet/skills173—~3.6kAutomated safety check: PassMIT
Typst Paperbahayonghang/academic-writing-skills500—~3.6kAutomated safety check: PassNone

Similar skills

  • Literature Survey

    ai4s-research/ai4s-skills

    A skill your agent uses when the user wants a comprehensive literature survey on a specific research topic.

    237 GitHub starsUsed in 2 repos~2k tokens
    Documents & OfficeAuto-check passed
  • Latex To Word Workflow

    hajimi-kun/latex-to-word-workflow

    Load when the user asks to convert an academic LaTeX manuscript, thesis, or report into an editable Word DOCX, adapt it to a Word template, preserve citations or cross-references, or diagnose a…

    128 GitHub stars~2.3k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Latex Paper En

    bahayonghang/academic-writing-skills

    English LaTeX assistant for existing .tex journal or conference papers.

    500 GitHub stars~4.9k tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed
  • Paper Details

    mathbullet/skills

    Produce a detailed Markdown explainer of an academic paper. An agent skill from mathbullet/skills.

    173 GitHub stars~3.6k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Typst Paper

    bahayonghang/academic-writing-skills

    Typst paper assistant for existing .typ manuscripts in English or Chinese.

    500 GitHub stars~3.6k tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed
  • Pdf2tex

    Calix-L/awesome-latex-skills

    Reconstruct editable LaTeX from PDF content using page-aware extraction and visual comparison.

    181 GitHub stars~1.4k tokensUpdated 3 days ago
    Documents & OfficeAuto-check passed

More from brycewang-stanford/Auto-Empirical-Research-Skills

All 383 skills in this repo
  • Aer Consistency

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when auditing a finished or near-finished AER, AER:Insights, or AEJ manuscript for internal consistency: headline numbers across abstract, introduction, results, and tables…

    4.6k GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed
  • Latex Paper En

    brycewang-stanford/Auto-Empirical-Research-Skills

    English LaTeX academic paper assistant for existing .tex projects.

    4.6k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Bayesian Workflow

    brycewang-stanford/Auto-Empirical-Research-Skills

    Opinionated Bayesian modeling workflow with PyMC and ArviZ. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

    4.6k GitHub stars~3.5k tokensUpdated 5 days ago
    Auto-check passed
  • Daily Paper Generator

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when the user asks to "generate daily paper", "search arXiv for EEG papers", "find EEG decoding papers", "review brain-computer interface papers", or wants to create paper…

    4.6k GitHub stars~2.2k tokensUpdated 5 days ago
    Auto-check passed
  • Five Questions

    brycewang-stanford/Auto-Empirical-Research-Skills

    Deeply analyze any empirical economics PDF using the five-question framework (五问框架): research question, identification strategy, core estimand, robustness logic, and scholarly contribution.

    4.6k GitHub stars~1.7k tokensUpdated 5 days ago
    Auto-check: notes
  • Kaggle Research

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when a research task needs reproducible Kaggle discovery, metadata inspection, bounded public-data downloads, competition or kernel discovery, model discovery, or an…

    4.6k GitHub stars~868 tokensUpdated 5 days ago
    Auto-check passed

Works with

Questions about Compile Latex

What does Compile Latex do?

A skill your agent uses when compiling a LaTeX paper, debugging LaTeX errors, building a paper PDF, or when a .tex file fails to produce output. Compile Latex is an agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.tex file fails to produce output.

When should I use Compile Latex?

Compile Latex fits situations like: compiling a LaTeX paper; debugging LaTeX errors; building a paper PDF; A .tex file fails to produce output.

How do I install Compile Latex in Claude Code?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill compile-latex -a claude-code`. Or copy the skill folder (skills/60-regisely-superpapers/skills/compile-latex in brycewang-stanford/Auto-Empirical-Research-Skills) 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 brycewang-stanford/Auto-Empirical-Research-Skills --skill compile-latex -a codex`. Or copy the skill folder (skills/60-regisely-superpapers/skills/compile-latex in brycewang-stanford/Auto-Empirical-Research-Skills) 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 brycewang-stanford/Auto-Empirical-Research-Skills --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?

Going by SKILL.md and its folder, Compile Latex needs a shell for the scripts in its folder. Our summary lists: A Bash shell.

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 no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Compile Latex use?

Compile Latex has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Compile Latex use?

About 913 tokens (SKILL.md is roughly 3.7k 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: Literature Survey (ai4s-research/ai4s-skills, 237 stars), Latex To Word Workflow (hajimi-kun/latex-to-word-workflow, 128 stars), Latex Paper En (bahayonghang/academic-writing-skills, 500 stars) and Paper Details (mathbullet/skills, 173 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Compile Latex?

brycewang-stanford (a GitHub user) maintains it in brycewang-stanford/Auto-Empirical-Research-Skills, which has 4,556 GitHub stars. The repository holds 383 skills in this directory. The repository was last updated on October 5, 2026.

Source: brycewang-stanford/Auto-Empirical-Research-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.