texforge

Compile LaTeX documents to PDF using tectonic without external TeX distributions.

Updated Jun 12, 2026
One-click install
npx skills add https://github.com/UniverLab/univerlab --skill texforge-univerlab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: texforge
Source: https://github.com/UniverLab/univerlab/tree/main/public/.well-known/agent-skills/texforge
Command: npx skills add https://github.com/UniverLab/univerlab --skill texforge-univerlab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing LaTeX documents normally requires installing heavy TeX distributions like TeX Live or MiKTeX, and debugging cryptic compiler logs. This Skill teaches the agent to drive the texforge CLI, which compiles .tex files to PDF with a self-contained tectonic engine, clear error messages, and built-in linting, formatting, and spell-checking. ## Core Features & Use Cases - Project creation and migration: Scaffold new documents from templates with texforge new, or migrate existing LaTeX projects with texforge init, which auto-detects the entry file and bibliography. - Build, watch, and inspect: Compile to PDF with texforge build, rebuild on save with --watch, rasterize pages with texforge preview, and verify ATS-readability, fonts, and metadata with texforge pdf. - Quality tooling: Run texforge check for static linting and spell-checking, texforge fmt for deterministic .tex and .bib formatting, and embed Mermaid, Graphviz, or D2 diagrams rendered in pure Rust. - Use Case: A graduate student writing a thesis can run texforge new mi-tesis, iterate with texforge build --watch, catch broken citations and spelling issues via texforge check, and confirm the final PDF is ATS-readable with texforge pdf text. ## Quick Start Ask the agent to create a new LaTeX project named mi-tesis with texforge and compile it to a PDF.

Frequently Asked Questions about texforge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compile LaTeX to PDF without installing TeX Live?

Use the texforge CLI, which bundles the tectonic engine and downloads it automatically on the first build. Run texforge build inside a project to compile main.tex into a PDF in the build/ directory, with no external LaTeX distribution required.

How do I migrate an existing LaTeX project to texforge?

Run texforge init inside the existing project directory. It detects the .tex file containing \documentclass, prompts for title and author, and generates a project.toml so build, check, and fmt commands work immediately.

Can I embed Mermaid or Graphviz diagrams in LaTeX documents?

Yes, texforge supports \begin{mermaid}, \begin{graphviz}, and \begin{d2} environments with width, pos, and caption options. Diagrams are rendered to PNG in pure Rust during the build, with no browser, Node.js, or external dot binary needed.

Does texforge support spell-checking in Spanish?

Yes, texforge check spell-checks prose using the language declared by babel or polyglossia, falling back to the configured default. Spanish uses Hunspell dictionaries downloaded automatically, and custom words can be added with texforge spell add.

Why does texforge build fail on the first run?

The first build downloads tectonic, so it requires an internet connection. If it still fails, run texforge check to catch broken references before compiling, and texforge doctor to verify the managed environment, cache, and dictionaries.

How do I check if my PDF is readable by ATS software?

Run texforge pdf text to extract the document text as a reader or ATS would see it, with ligatures normalized and hyphenated words rejoined. texforge pdf check also verifies that significant source words survived compilation.