fcakyon/latex-setup
> 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".
npx skills add https://github.com/fcakyon/phd-skills --skill latex-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.
Before installing anything:
which pdflatex && pdflatex --version
which xelatex && xelatex --version
which lualatex && lualatex --version
which biber && biber --version
which bibtex && bibtex --version
which tlmgr && tlmgr --version
Read the main .tex file to determine requirements:
\documentclass{article}, \documentclass{IEEEtran}, etc.\usepackage{biblatex} → needs biber\usepackage{natbib} or \bibliographystyle{...} → needs bibtex\usepackage{...} declarationsIf the user mentions a venue, search for the official template:
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 |
Based on analysis, install only what's missing:
# 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.
# Full installation (recommended)
brew install --cask mactex
# Minimal
brew install --cask basictex
sudo tlmgr update --self
sudo tlmgr install <package-name>
# If specific packages are missing
sudo tlmgr install <package-name>
Set up the correct compilation pipeline:
pdflatex main.tex
bibtex main
pdflatex main.tex
pdflatex main.tex
pdflatex main.tex
biber main
pdflatex main.tex
pdflatex main.tex
\bibliography{...} path is correctAfter configuration:
Produce:
Take fcakyon/latex-setup from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
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.
The instructions reference brew.
Without those the skill loads but fails at the first command.