From overleaf-local
Set up local Overleaf environment — install TeX distribution, clone via git bridge, detect LaTeX engine, analyze style files, collect user preferences. Invocable as /overleaf-local:overleaf-local-setup (Claude Code) or $overleaf-local-setup (Codex).
How this skill is triggered — by the user, by Claude, or both
Slash command
/overleaf-local:overleaf-local-setupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Detection order:**
Detection order:
git → if missing, offer install, exit if declinedpdflatex, xelatex, lualatex on PATHpdflatex --version → "MiKTeX" or "TeX Live"Storage-aware recommendation:
You have X GB free.
Option A — Incremental (MiKTeX): ~200 MB now, downloads packages on demand.
Best if disk is tight or you compile diverse projects.
Option B — Pre-installed (TeX Live small): ~550 MB, covers most use cases.
Best for reliable offline builds.
Option C — Full (TeX Live full): ~7.5 GB, everything included.
Best if you never want to think about missing packages.
Platform-specific silent install commands:
| Platform | Default | Command |
|---|---|---|
| Windows | MiKTeX | winget install -e --id MiKTeX.MiKTeX --silent --accept-package-agreements --accept-source-agreements |
| macOS | TeX Live | brew install --cask mactex-no-gui |
| Linux | TeX Live | perl ./install-tl --no-interaction --scheme=small --no-doc-install --no-src-install |
Post-install configuration:
initexmf --admin --set-config-value="[MPM]AutoInstall=1" (auto-install missing packages)tlmgr install latexmk biber biblatex (commonly needed extras)Hard gate: If the user declines installation, exit with a clear message. Do not proceed with a broken environment.
https://git.overleaf.com/abc123def456)git credential-manager on Windows, osxkeychain on macOS, libsecret/store on Linux).git/config URL (https://git:[email protected]/...)git clone <configured-url> .Scan .tex files to select the LaTeX engine:
| Signal | Engine |
|---|---|
| CJK characters (U+4E00–U+9FFF, U+3000–U+303F, etc.) | XeLaTeX |
\usepackage{fontspec} or \usepackage{xeCJK} or \usepackage{ctex} | XeLaTeX |
\usepackage[T1]{fontenc} + no CJK signals | pdfLaTeX |
\directlua or \usepackage{luacode} | LuaLaTeX |
| Ambiguous or conflicting signals | Ask user |
Default if no signals: pdfLaTeX (fastest, most compatible).
Check for existing build config, in priority order:
latexmkrc or .latexmkrc → use latexmkMakefile with LaTeX-related targets → use makearara directives in main .tex (% arara:) → use araraDirect invocation flags: always use -interaction=nonstopmode (don't stop on errors, log them) and -halt-on-error (stop after first fatal error).
For bibliography: detect \bibliography{} → bibtex, \addbibresource{} → biber. Full build: engine → bib → engine → engine.
Detect .cls and .sty files:
\documentclass{...})Store results for the compile-fix phase (which layout tricks are legal).
Ask once during setup, store in project config:
Write project-specific configuration so future sessions inherit the setup:
For Claude Code — append to project CLAUDE.md:
## LaTeX Environment (auto-generated by overleaf-local)
- Distribution: [detected distribution and version]
- Engine: [detected engine]
- Build command: [detected build command]
- Document class: [detected class and constraints]
- Overleaf remote: configured (git.overleaf.com)
For Codex CLI — append to Agents.md in project root, same content.
npx claudepluginhub whiskychoy/whisky-claude-plugins --plugin overleaf-localSets up and troubleshoots LaTeX environments on Linux/macOS, detects TeX tools like pdflatex/biber/bibtex, analyzes .tex files, installs venue-specific packages (NeurIPS/CVPR) via tlmgr/apt/brew.
Scaffolds a LaTeX manuscript directory with skeleton files, optional journal template, and Overleaf Git integration for research projects.
Automates conversion of LaTeX academic papers between publisher formats (Springer/IPOL to MDPI/IEEE/Nature) via extraction, content injection, formatting fixes, and PDF compilation.