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.
npx agentmods add skills/fcakyon/phd-skills/latex-setupnpx skills add fcakyon/phd-skills --skill latex-setupgit clone --depth 1 https://github.com/fcakyon/phd-skillsWrote 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.
[](https://agentmods.dev/skills/fcakyon/phd-skills/latex-setup)<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>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.
| Model | Per session | Once 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 |
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 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:
-
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}→ needsbiber\usepackage{natbib}or\bibliographystyle{...}→ needsbibtex
- 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.
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.
- 6d ago First seen · 142 lines · 76 tokens per session scan B 4e2ab1e4a96f
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.
Other skills, from other repositories
obsidian-history-check
用 Obsidian 官方 CLI 做文档历史与 diff 的只读检查。默认不执行 history:restore——恢复必须单独确认。.
obsidian-link-audit
用 Obsidian 官方 CLI 做链接、反链、坏链与孤岛文档审计——改文档前查谁引用了它,改完后确认没留下断链。CLI 不可用时 fallback 到 rg/Read。.
requirement-archiving
历史需求资产归档入库:把项目外的原始需求资料(TAPD 单 / 飞书导出 docx / xls 清单 / 截图原型等异构收料)重整为 modules/ 体系下的现状基线 PRD + shared 事实源 + 溯源台账。九段流水线(Phase 0-8):收料冻结 → 通读建模 → 方案拍板 → 骨架与 shared → PRD 回填 → 反向对账 → 原型校准 → 关联收口 → 审查清源。.
doc-graph-health
知识网健康巡检:跑 skill 内 scripts/graphhealth.py 产出持久报告 projects/modules/graph-health.md(断链 / 孤儿 / hub / stale current-state / 姊妹时差 / updated 异常 / 概念热点七项检测),并按处置指引推进修复。触发词:知识库体检、图谱健康、巡检知识网、graph-health、查断链、查孤儿文档、文档过期检查。.
knowledge-structures
Структуры знаний хранилища — когда и как создавать MOC (#MapOfContent), синтез-заметки (#synthesis) и атомарные заметки, и по каким признакам выделять раздел большой заметки в отдельную. Используй при создании карт, сравнений и при дроблении конспектов и статей на атомарки.
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.