Agent skill

Latex Setup

by fcakyon in fcakyon/phd-skills

A skill your agent uses 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.

MITAuto-check: notesDocuments & Office

Install Latex Setup

skills CLI
$ npx skills add fcakyon/phd-skills --skill latex-setup -a claude-code

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

GitHub CLI
$ gh skill install fcakyon/phd-skills latex-setup --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/fcakyon/phd-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugin/skills/latex-setup .claude/skills/latex-setup && 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
latex-setup
GitHub stars
414
Token cost
~1.1k tokens
SKILL.md length
335 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses 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.

  • Works in 6 steps: Detect Current State → Analyze the Project → Venue Template Detection → …
  • The user wants to set up
  • SKILL.md covers Step 1: Detect Current State, Step 2: Analyze the Project, Step 3: Venue Template Detection and Step 4: Install Missing…, plus 3 more sections
  • Calls apt and brew

What it does

Latex Setup is an agent skill from fcakyon/phd-skills. 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".

Its SKILL.md is about 1.1k 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, Citation management and Scientific writing. It works with LaTeX. The repository describes itself as: PhD Research Skills for Claude Code: paper reproduction, experiment design, paper review, result comparison and more. The licence is MIT.

When your agent uses it

  • The user wants to set up
  • Troubleshoot a LaTeX environment
  • Choose between biber and bibtex
  • Install packages for a specific venue template

Example prompts

  • “setup latex”
  • “biber vs bibtex”
  • “latex compilation error”
  • “/latex-setup”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Detect Current State
  2. Analyze the Project
  3. Venue Template Detection
  4. Install Missing Components
  5. Configure Compilation
  6. Verify Setup

What it can do on your machine

Read from SKILL.md and the folder at commit 67acd61. 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

    Shell commands in SKILL.md call:

    • apt
    • brew

    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

Latex Setup loads about 1.1k tokens when it runs. Until then it costs about 85 tokens; SKILL.md has 335 words of instructions outside code blocks.

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

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.

  • NoteRuns commands with sudoSKILL.md:72
    sudo apt install texlive-base texlive-latex-recommended
  • NoteRuns commands with sudoSKILL.md:75
    sudo apt install texlive-latex-extra  # most \usepackage needs
  • NoteRuns commands with sudoSKILL.md:76
    sudo apt install texlive-fonts-recommended texlive-fonts-extra
  • NoteRuns commands with sudoSKILL.md:77
    sudo apt install texlive-bibtex-extra biber  # if biblatex used
  • NoteRuns commands with sudoSKILL.md:78
    sudo apt install texlive-science  # algorithm2e, etc.
  • NoteRuns commands with sudoSKILL.md:88
    sudo tlmgr update --self
  • NoteRuns commands with sudoSKILL.md:89
    sudo tlmgr install <package-name>
  • NoteRuns commands with sudoSKILL.md:95
    sudo tlmgr install <package-name>

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 fcakyon/phd-skills at commit 67acd61, republished under its MIT licence (© fcakyon). 335 words, ~1,058 tokens.

Download SKILL.mdSave it as .claude/skills/latex-setup/SKILL.md (or your agent's skills folder).
name
latex-setup
description
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".

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:

  1. Check installed TeX distribution:

    which pdflatex && pdflatex --version
    which xelatex && xelatex --version
    which lualatex && lualatex --version
  2. Check bibliography processor:

    which biber && biber --version
    which bibtex && bibtex --version
  3. Check package manager:

    which tlmgr && tlmgr --version

Step 2: Analyze the Project

Read the main .tex file to determine requirements:

  1. Document class: \documentclass{article}, \documentclass{IEEEtran}, etc.
  2. Bibliography system:
    • \usepackage{biblatex} → needs biber
    • \usepackage{natbib} or \bibliographystyle{...} → needs bibtex
  3. Required packages: extract from all \usepackage{...} declarations
  4. 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:

VenueClassBib systemNotes
CVPR/ECCVCustom class filebibtexUsually provided in template
NeurIPSneurips_20XX.stynatbib + bibtexStyle file changes yearly
ICLRiclr20XX_conference.stynatbib + bibtexOpenReview format
ACL/EMNLPacl.clsbibtexACL Anthology format
IEEEIEEEtran.clsbibtexColumn formatting specific
Springerllncs.clsbibtex or biblatexDepends on series
Show full SKILL.md (146 more words)Show less

Step 4: Install Missing Components

Based on analysis, install only what's missing:

On Ubuntu/Debian
bash
# 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
bash
# 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
bash
# If specific packages are missing
sudo tlmgr install <package-name>

Step 5: Configure Compilation

Set up the correct compilation pipeline:

For bibtex projects
bash
pdflatex main.tex
bibtex main
pdflatex main.tex
pdflatex main.tex
For biblatex/biber projects
bash
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:

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

Output Format

Produce:

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

© fcakyon, 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 plugin/skills/latex-setup of fcakyon/phd-skills.

Open the folder on GitHubat commit 67acd61

Compare with similar skills

Latex Setup 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.

Latex Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Latex Setup this skillfcakyon/phd-skills414—~1.1kAutomated safety check: NotesMIT
Light TypesettingLight0305/Light-skills640—~3.3kAutomated safety check: PassMIT
Academic Paperbrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~7.3kAutomated safety check: PassCustom licence
Academic Paper Writing PipelineImbad0202/academic-research-skills51k—~16kAutomated safety check: PassCustom licence
Academic Paper Helpercnfjlhj/ai-collab-playbook452—~1.8kAutomated safety check: PassNone
Scholar Writingcatlog22/maestro-flow563—~3.3kAutomated safety check: NotesNone

Similar skills

  • Light Typesetting

    Light0305/Light-skills

    Build and preflight submission-ready LaTeX/PDF artifacts for Light stage 11.

    640 GitHub stars~3.3k tokensUpdated 3 mo ago
    Documents & OfficeAuto-check passed
  • Academic Paper

    brycewang-stanford/Auto-Empirical-Research-Skills

    Academic paper writing skill with 12-agent pipeline. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

    4.5k GitHub stars~7.3k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Academic Paper Writing Pipeline

    Imbad0202/academic-research-skills

    Runs a 12-agent pipeline that plans, drafts, cites, reviews and formats academic papers, with modes for revision, rebuttals, abstracts and citation checks.

    51k GitHub stars~16k tokensUpdated 4 days ago
    Research & ScienceAuto-check passed
  • Academic Paper Helper

    cnfjlhj/ai-collab-playbook

    Use only when the user explicitly asks for help drafting or revising an AI/ML research paper in LaTeX, including structure, BibTeX, formatting, or academic-writing checks.

    452 GitHub stars~1.8k tokensUpdated 23 days ago
    Research & ScienceAuto-check passed
  • Scholar Writing

    catlog22/maestro-flow

    End-to-end academic paper writing workflow. An agent skill from catlog22/maestro-flow.

    563 GitHub stars~3.3k tokensUpdated today
    Research & ScienceAuto-check: notes
  • Research Depth Control

    BingHanOfUESTC/open_agent_team

    A skill your agent uses when autoresearchteam needs deeper literature coverage, more citations in paper writing, stronger related-work synthesis, or a gate that prevents shallow research from…

    106 GitHub stars~989 tokensUpdated 3 mo ago
    Research & ScienceAuto-check passed

More from fcakyon/phd-skills

All 12 skills in this repo
  • Reproduce

    fcakyon/phd-skills

    End-to-end paper reproduction from arxiv URL through smoke runs to replication experiments.

    414 GitHub stars~1.1k tokensUpdated 21 days ago
    Auto-check passed
  • Compare

    fcakyon/phd-skills

    Same-epoch comparison of training runs across wandb, neptune, tensorboard, or mlflow.

    414 GitHub stars~1.2k tokensUpdated 21 days ago
    Auto-check passed
  • Debug

    fcakyon/phd-skills

    Evidence-before-action diagnosis of failing ML experiments. An agent skill from fcakyon/phd-skills.

    414 GitHub stars~1.3k tokensUpdated 21 days ago
    Auto-check passed
  • Experiment Design

    fcakyon/phd-skills

    A skill your agent uses when the user wants to design experiments, plan ablation studies, structure baselines, or create incremental evaluation strategies.

    414 GitHub stars~987 tokensUpdated 21 days ago
    Auto-check passed
  • Launch

    fcakyon/phd-skills

    Pre-flight checklist for long-running ML training jobs covering config diff, run naming, path verification, monitoring setup, and restart-cleanup.

    414 GitHub stars~1.4k tokensUpdated 21 days ago
    Auto-check passed
  • Literature Research

    fcakyon/phd-skills

    A skill your agent uses when the user wants to find related work, survey a research area, identify literature gaps, or discover open-source implementations.

    414 GitHub stars~999 tokensUpdated 21 days ago
    Auto-check passed

Works with

Questions about Latex Setup

What does Latex Setup do?

A skill your agent uses 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. Latex Setup is an agent skill from fcakyon/phd-skills. 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.

When should I use Latex Setup?

Latex Setup fits situations like: the user wants to set up; troubleshoot a LaTeX environment; choose between biber and bibtex; install packages for a specific venue template.

How do I install Latex Setup in Claude Code?

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

How do I install Latex Setup in Codex?

Run `npx skills add fcakyon/phd-skills --skill latex-setup -a codex`. Or copy the skill folder (plugin/skills/latex-setup in fcakyon/phd-skills) into .agents/skills/latex-setup in your project. Codex loads it when a task matches its description.

Can I use Latex Setup 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 fcakyon/phd-skills --skill latex-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/latex-setup, .gemini/skills/latex-setup, .github/skills/latex-setup and .opencode/skills/latex-setup in your project.

What does Latex Setup need to run?

Going by SKILL.md and its folder, Latex Setup needs the command-line tools its instructions call (apt and brew).

Does Latex Setup 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 Latex Setup safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Latex Setup use?

Latex Setup 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 Latex Setup use?

About 1.1k tokens (SKILL.md is roughly 4.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 Latex Setup?

Skills that share tags, products or a category with Latex Setup: Light Typesetting (Light0305/Light-skills, 640 stars), Academic Paper (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k stars), Academic Paper Writing Pipeline (Imbad0202/academic-research-skills, 51k stars) and Academic Paper Helper (cnfjlhj/ai-collab-playbook, 452 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Latex Setup?

fcakyon (a GitHub user) maintains it in fcakyon/phd-skills, which has 414 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on September 16, 2026.

Source: fcakyon/phd-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.