mcpbeat Sign in

Latex Setup Agent Skill

> Use when the user wants to set up or troubleshoot a LaTeX environment, choose between biber and bibtex, install packages for a specific venue template, or configure compilation. Triggers on phrases like "setup latex", "biber vs bibtex", "latex compilation error", "install latex packages", "venue template", or "texlive setup".

1k tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
356
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/fcakyon/phd-skills --skill latex-setup

The instruction itself

14 sections, as written by the author

LaTeX Environment Setup

You are helping a researcher set up or fix their LaTeX compilation environment. Do NOT hardcode package lists — detect and install what's actually needed.

Step 1: Detect Current State

Before installing anything:

  • Check installed TeX distribution:
   which pdflatex && pdflatex --version
   which xelatex && xelatex --version
   which lualatex && lualatex --version
  • Check bibliography processor:
   which biber && biber --version
   which bibtex && bibtex --version
  • Check package manager:
   which tlmgr && tlmgr --version

Step 2: Analyze the Project

Read the main .tex file to determine requirements:

  • Document class: \documentclass{article}, \documentclass{IEEEtran}, etc.
  • Bibliography system:
  • \usepackage{biblatex} → needs biber
  • \usepackage{natbib} or \bibliographystyle{...} → needs bibtex
  • Required packages: extract from all \usepackage{...} declarations
  • Special requirements: TikZ, minted (needs pygments), algorithm2e, etc.

Step 3: Venue Template Detection

If the user mentions a venue, search for the official template:

  • Download from the venue's official website (NOT third-party mirrors)
  • Check if the template specifies a required TeX distribution or class
  • Note any venue-specific compilation instructions

Common venues and their requirements:

| Venue | Class | Bib system | Notes |

|-------|-------|-----------|-------|

| CVPR/ECCV | Custom class file | bibtex | Usually provided in template |

| NeurIPS | neurips_20XX.sty | natbib + bibtex | Style file changes yearly |

| ICLR | iclr20XX_conference.sty | natbib + bibtex | OpenReview format |

| ACL/EMNLP | acl.cls | bibtex | ACL Anthology format |

| IEEE | IEEEtran.cls | bibtex | Column formatting specific |

| Springer | llncs.cls | bibtex or biblatex | Depends on series |

Step 4: Install Missing Components

Based on analysis, install only what's missing:

On Ubuntu/Debian

# Base installation (if nothing installed)
sudo apt install texlive-base texlive-latex-recommended

# Common extras
sudo apt install texlive-latex-extra  # most \usepackage needs
sudo apt install texlive-fonts-recommended texlive-fonts-extra
sudo apt install texlive-bibtex-extra biber  # if biblatex used
sudo apt install texlive-science  # algorithm2e, etc.

On macOS

# Full installation (recommended)
brew install --cask mactex

# Minimal
brew install --cask basictex
sudo tlmgr update --self
sudo tlmgr install <package-name>

Individual packages via tlmgr

# If specific packages are missing
sudo tlmgr install <package-name>

Step 5: Configure Compilation

Set up the correct compilation pipeline:

For bibtex projects

pdflatex main.tex
bibtex main
pdflatex main.tex
pdflatex main.tex

For biblatex/biber projects

pdflatex main.tex
biber main
pdflatex main.tex
pdflatex main.tex

Common compilation issues

  • Missing .bib file: check \bibliography{...} path is correct
  • Undefined citations: run bibtex/biber + pdflatex twice
  • Missing packages: install via tlmgr, not apt (apt packages are coarse-grained)
  • Font errors: install texlive-fonts-extra
  • TikZ externalize errors: ensure write18 is enabled

Step 6: Verify Setup

After configuration:

  • Run the full compilation pipeline
  • Check the PDF opens correctly
  • Verify bibliography entries appear
  • Check for any remaining warnings in the .log file

Output Format

Produce:

  • Current state: what's installed, what's missing
  • Project requirements: detected from .tex files
  • Installation commands: only what's needed, OS-specific
  • Compilation command: the exact pipeline for this project
  • Verification: confirm successful compilation

Other skills for the same job

different authors, same section of the catalogue
Protocolsio Integration
by christophacham
×4

Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.

16k tokens
Tailored Resume Generator
by frostant
×4

Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances

3k tokens
Excalidraw Diagram Generator
by github
vendor ×3

Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.

36k tokens scripts
Expo Dev Client
by openai
vendor ×3

Build and distribute Expo development clients locally or via TestFlight

961 tokens
Executing Plans
by ZhanlinCui
×3

Use when you have a written implementation plan to execute in a separate session with review checkpoints

542 tokens
Anndata
by christophacham
×3

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

16k tokens
Benchling Integration
by christophacham
×3

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

14k tokens
Biopython
by christophacham
×3

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

24k tokens

How to use it

Copy the folder

Take fcakyon/latex-setup from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.

Install what it needs

The instructions reference brew. Without those the skill loads but fails at the first command.