latex-setup

latex-setup is a skill for Claude Code from fcakyon/phd-skills. It costs 76 tokens per session (1,069 once invoked), scanned B, original, MIT.

Guidance for setting up or fixing a LaTeX document-building environment, including its bibliography tool and required packages.

In plain words
What is it for?
It helps configure LaTeX for a specific publication template, choose Biber or BibTeX for references, and troubleshoot compilation errors.
Why use it?
It helps identify why a research document will not compile and determines which tools and packages its source files actually need.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the phd-skills plugin — 12 skills, 6 commands, 2 agents, 4 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fcakyon/phd-skills/latex-setup
Any agent
npx skills add fcakyon/phd-skills --skill latex-setup
Clone the repo
git clone --depth 1 https://github.com/fcakyon/phd-skills

Made for: Claude Code.

Or install phd-skills, the plugin that ships this one along with the rest of its 12 skills, 6 commands, 2 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for latex-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/fcakyon/phd-skills/latex-setup.svg)](https://agentmods.dev/skills/fcakyon/phd-skills/latex-setup)
Your own site
<a href="https://agentmods.dev/skills/fcakyon/phd-skills/latex-setup"><img src="https://agentmods.dev/badge/skills/fcakyon/phd-skills/latex-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,069 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.01069
Opus 5 $0.00038 $0.00535
Sonnet 5 $0.00015 $0.00214
Haiku 4.5 $0.00008 $0.00107

Measured 6d ago against content hash 4e2ab1e4a96f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

latex-setup scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install texlive-base texlive-latex-recommended
plugin/skills/latex-setup/SKILL.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

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.

Read the full file on GitHub · 142 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 142 lines · 76 tokens per session scan B 4e2ab1e4a96f

Subscribe to this mod's changes

latex-setup is a skill published in the GitHub repository fcakyon/phd-skills (385 stars, last pushed 2mo ago), licensed MIT. It adds 76 tokens to every session and 1,069 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

obsidian-history-check

用 Obsidian 官方 CLI 做文档历史与 diff 的只读检查。默认不执行 history:restore——恢复必须单独确认。.

ryanzhao1011/workframe · 37 tokens

obsidian-link-audit

用 Obsidian 官方 CLI 做链接、反链、坏链与孤岛文档审计——改文档前查谁引用了它,改完后确认没留下断链。CLI 不可用时 fallback 到 rg/Read。.

ryanzhao1011/workframe · 58 tokens

requirement-archiving

历史需求资产归档入库:把项目外的原始需求资料(TAPD 单 / 飞书导出 docx / xls 清单 / 截图原型等异构收料)重整为 modules/ 体系下的现状基线 PRD + shared 事实源 + 溯源台账。九段流水线(Phase 0-8):收料冻结 → 通读建模 → 方案拍板 → 骨架与 shared → PRD 回填 → 反向对账 → 原型校准 → 关联收口 → 审查清源。.

ryanzhao1011/workframe · 137 tokens

doc-graph-health

知识网健康巡检:跑 skill 内 scripts/graphhealth.py 产出持久报告 projects/modules/graph-health.md(断链 / 孤儿 / hub / stale current-state / 姊妹时差 / updated 异常 / 概念热点七项检测),并按处置指引推进修复。触发词:知识库体检、图谱健康、巡检知识网、graph-health、查断链、查孤儿文档、文档过期检查。.

ryanzhao1011/workframe · 111 tokens

knowledge-structures

Структуры знаний хранилища — когда и как создавать MOC (#MapOfContent), синтез-заметки (#synthesis) и атомарные заметки, и по каким признакам выделять раздел большой заметки в отдельную. Используй при создании карт, сравнений и при дроблении конспектов и статей на атомарки.

jtprogru/bear-skills · 84 tokens

generate-pdf

Converts a Markdown review report to a professionally formatted PDF using pandoc with XeLaTeX. Use after the final review report Markdown has been compiled to produce the PDF deliverable.

FilippoScaramuzza/agentic-reviewer · 41 tokens