Overleaf Compile logo

Overleaf Compile

Community
mrshu
overleaf-compile

Recompile an Overleaf project and extract its build logs, errors and warnings in a standardized format. Use when asked to compile/recompile an Overleaf paper, debug why a PDF build fails, see what's broken after pushing changes, or pull LaTeX/biber errors and warnings out of an Overleaf project. Drives an already-logged-in browser tab via the chrome-cdp skill.

Overview

Publishermrshu
Repositoryagent-skills
Skill nameoverleaf-compile
Stars
22
Forks
5
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by mrshu on GitHub. Read the source before you install it.

Installation

Install the Overleaf Compile AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mrshu/agent-skills/tree/main/plugins/overleaf-compile/skills/overleaf-compile
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mrshu/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/plugins/overleaf-compile/skills/overleaf-compile .claude/skills/overleaf-compile
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Overleaf Compile in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Overleaf Compile on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Overleaf Compile is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Overleaf compile + log extractor

Recompile an Overleaf project and pull its build diagnostics out in a standardized format, closing a publish → compile → debug loop. Uses the user's already-logged-in browser session via the chrome-cdp skill.

Mechanism is API-first: the page helper calls Overleaf's internal POST /project/:id/compile from inside the tab (which holds the session cookie + ol-csrfToken), then fetches the build's raw output.log / output.blg. The rendered logs pane is scraped only as a --no-recompile fallback.

Prerequisites

  1. chrome-cdp skill installed; the wrapper auto-discovers cdp.mjs (or set $CDP_BIN).
  2. Chrome / Brave running with --remote-debugging-port=9222.
  3. Overleaf project tab open in that browser, logged in.
  4. python3 on PATH (used for log parsing).

Usage

bash
# find the project tab
${CLAUDE_PLUGIN_ROOT}/skills/overleaf-compile/overleaf-compile --list

# recompile + standardized JSON logs (target prefix from `cdp list`)
${CLAUDE_PLUGIN_ROOT}/skills/overleaf-compile/overleaf-compile 60D065AD

# or address the tab by project URL
${CLAUDE_PLUGIN_ROOT}/skills/overleaf-compile/overleaf-compile --url https://www.overleaf.com/project/<id>

# fast triage: just the errors, human-readable
overleaf-compile 60D065AD --errors-only --format compiler

# recompile from scratch and keep the raw artifacts
overleaf-compile 60D065AD --clear-cache --out-dir ./build-logs

Run overleaf-compile --help for the full flag list (--format, --errors-only, --info, --no-dedup, --raw-tail N, --clear-cache, --draft, --stop-on-first-error, --no-recompile, --out-dir, --timeout). For self-hosted Overleaf set OVERLEAF_HOSTS="overleaf.example.com".

Output

Default is JSON: a compile summary plus normalized entries.

json
{
  "compile": {"status": "success", "pages": 24, "errors": 30, "warnings": 6,
              "typesetting": 156, "info": 0, "bib": 2, "buildId": "…"},
  "entries": [
    {"level": "error", "file": "acl_latex.tex", "line": 835,
     "message": "Undefined control sequence (\\blacktriangle)",
     "source": "output.log", "count": 1}
  ]
}
  • level ∈ error | warning | typesetting | info | bib-error | bib-warning.
  • Identical entries are collapsed with a count (--no-dedup to keep all).
  • Package…/Font…Info: chatter is dropped unless --info.
  • --format compiler renders file:line: level: message [xN] lines + a summary.

status is not a verdict. Overleaf returns status: "success" whenever a PDF was produced — including runs with dozens of Undefined control sequence errors. Read the parsed errors count, not status. The wrapper's exit code reflects this: 0 = no errors, 1 = ≥1 error (LaTeX or bib), 2 = usage, 75 = EX_TEMPFAIL (compile timed out / transport issue).

Limitations

  • Pegged to Overleaf's current SaaS compile API + React UI; the internal endpoint shape and DOM selectors are gathered at the top of page-helpers.js for easy re-targeting if Overleaf changes them.
  • The LaTeX log parser is conservative: line numbers are exact; file attribution is best-effort (it falls back to the compile root when pdfTeX's paren nesting drains on stray content parens).
  • --no-recompile reads the on-screen logs pane (no compile) — lossy (Overleaf truncates messages, only the last UI compile is present). Prefer a real compile for full-fidelity logs.
  • English UI assumed for the --no-recompile DOM path.
  • Compiles under whichever account the tab is logged in as.

Publishing / sync assumption

This compiles whatever source Overleaf currently holds. If you publish by pushing to Overleaf's own git remote, the project is already up to date and no sync step is needed — push, then run this. GitHub-mirror projects that need a manual pull inside Overleaf are out of scope (sync is not triggered here).

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Overleaf Compile AI skill do?

Recompile an Overleaf project and extract its build logs, errors and warnings in a standardized format. Use when asked to compile/recompile an Overleaf paper, debug why a PDF build fails, see what's broken after pushing changes, or pull LaTeX/biber errors and warnings out of an Overleaf project. Drives an already-logged-in browser tab via the chrome-cdp skill.

Why use Overleaf Compile on TypingMind?

Because you install it once and use it with any model. Overleaf Compile is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Overleaf Compile in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mrshu/agent-skills/tree/main/plugins/overleaf-compile/skills/overleaf-compile. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Overleaf Compile?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Overleaf Compile?

As many as you like. As long as a model supports skills, you can use Overleaf Compile with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Overleaf Compile AI skill free?

It is published on GitHub by mrshu. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇