scientific-writing: Skill for Claude Code

.claude/skills/compile/SKILL.md

compile is a skill for Claude Code from koljaschoepe/scientific-writing. It costs 29 tokens per session (1,009 once invoked), scanned B, original, MIT.

A command that turns a LaTeX project into a PDF document. LaTeX is a system for writing and formatting technical documents, such as theses.

In plain words
What is it for?
Compiling a finished thesis into PDF, creating draft PDFs with placeholders for unfinished chapters, and installing LaTeX when needed.
Why use it?
It checks whether the project is ready and whether LaTeX is installed before compiling, reducing errors caused by missing chapters, settings, or tools. Draft mode lets you check the layout before the document is complete.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

This is koljaschoepe/scientific-writing's own configuration. It tells Claude Code how to work on scientific-writing itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything scientific-writing configures →

Reuse

Borrowing it

Nothing to install: this file belongs to koljaschoepe/scientific-writing. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/koljaschoepe/scientific-writing/main/.claude/skills/compile/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/koljaschoepe/scientific-writing

Made for: Claude Code.

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 compile

README.md
[![agentmods](https://agentmods.dev/badge/skills/koljaschoepe/scientific-writing/compile/github.svg)](https://agentmods.dev/skills/koljaschoepe/scientific-writing/compile)
Your own site
<a href="https://agentmods.dev/skills/koljaschoepe/scientific-writing/compile"><img src="https://agentmods.dev/badge/skills/koljaschoepe/scientific-writing/compile/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for compile

Your own site · 80×15
<a href="https://agentmods.dev/skills/koljaschoepe/scientific-writing/compile"><img src="https://agentmods.dev/badge/skills/koljaschoepe/scientific-writing/compile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,009 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00029 $0.01009
Opus 5 $0.00015 $0.00504
Sonnet 5 $0.00006 $0.00202
Haiku 4.5 $0.00003 $0.00101

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

Security

Grade B, and why

compile 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 9d 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-xetex texlive-fonts-extra texlive-lang-german latexmk`"
.claude/skills/compile/SKILL.md · 106 lines

How it starts

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

LaTeX kompilieren

Startet den LaTeX-Export und die PDF-Kompilierung.

Ablauf

1. Modus bestimmen

Normaler Modus (/compile):

  • Alle Kapitel müssen geschrieben sein

Draft-Modus (/compile draft oder /compile --draft):

  • Kompiliert auch mit unvollständigen Kapiteln
  • Fehlende Kapitel werden als Platzhalter eingefügt:
    \section{[Kapiteltitel]}
    \textit{[Kapitel noch nicht geschrieben -- Platzhalter]}
    \newpage
    
  • Deckblatt zeigt "ENTWURF" als Wasserzeichen oder Hinweis
  • Nützlich um Layout und Umfang während des Schreibens zu prüfen

1b. Vorbedingungen prüfen

  • output/phase-02-outline/final/thesis-structure.yaml vorhanden
  • config.yaml vollständig konfiguriert
  • LaTeX installiert (siehe Auto-Installation unten)
  • Alle Kapitel in output/phase-05-writing/final/ vorhanden (nur im normalen Modus)

1b. LaTeX Auto-Installation

Prüfe mit which xelatex && which latexmk:

Falls installiert:

  • Setze config.yaml -> latex.installation_geprüft: true
  • Weiter mit Schritt 2

Falls NICHT installiert:

  • OS erkennen (uname -s)
  • macOS: "LaTeX ist nicht installiert. Soll ich es installieren? brew install --cask mactex-no-gui (ca. 4 GB Download)"
    • Falls User zustimmt: Befehl ausführen (kann mehrere Minuten dauern)
    • Falls brew nicht installiert: "Bitte installiere zuerst Homebrew: https://brew.sh"
  • Linux (Debian/Ubuntu): "LaTeX ist nicht installiert. Soll ich es installieren? sudo apt install texlive-xetex texlive-fonts-extra texlive-lang-german latexmk"
    • Falls User zustimmt: Befehl ausführen
  • Anderes OS: "LaTeX ist nicht installiert. Bitte installiere manuell: https://tug.org/texlive/ oder https://miktex.org"
  • Nach erfolgreicher Installation: latex.installation_geprüft: true setzen
  • Falls User ablehnt: "Ohne LaTeX kann kein PDF erstellt werden. Du kannst später erneut /compile ausführen."

Falls nicht alle Kapitel geschrieben (normaler Modus): "Es fehlen noch Kapitel: [Liste]. Optionen:

  • /write [X.X] um fehlende Kapitel zu schreiben
  • /compile draft um eine Entwurfs-PDF mit Platzhaltern zu erstellen"

Read the full file on GitHub · 106 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. 9d ago First seen · 106 lines · 29 tokens per session scan B bde1b284eb57

Subscribe to this mod's changes

compile is a skill published in the GitHub repository koljaschoepe/scientific-writing (11 stars, last pushed 23d ago), licensed MIT. It adds 29 tokens to every session and 1,009 once invoked, about $0.0001 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

overleaf

Sync and manage Overleaf LaTeX projects from the command line. Pull projects locally, push changes back, compile PDFs, and download compile outputs like .bbl files for arXiv submissions. Use when working with LaTeX, Overleaf, academic papers, or arXiv.

aloth/olcli · 62 tokens

latex-rescue

Diagnose and fix LaTeX compilation errors. Handles undefined control sequences, missing brackets, math mode violations, package conflicts, undefined references, and environment mismatches.

Calix-L/awesome-latex-skills · 37 tokens

pdf2tex

Convert PDF documents back into editable LaTeX source code. Extracts text, math, tables, figures, and structure. Uses pymupdf + AI for intelligent reconstruction.

Calix-L/awesome-latex-skills · 39 tokens

read-paper-to-notes

Read an academic-paper PDF or supplied full text and turn it into a faithful, structured Markdown deep-reading note. Use when the user provides a research paper and asks to read, explain, summarize, take notes, extract its problem, method, equations, experiments, results, limitations, or research implications, or fill…

yujie-jason-zhang/polish_skill · 116 tokens

awesome-ieee-report

Generates IEEE-format LaTeX technical reports from project requirements and codebase evidence, using academic prose, pseudocode-only explanations, BibTeX references, and IEEEtran formatting.

EnesDemir143/awesome-ieee-report · 41 tokens

paper-figures

Extract figures from downloaded papers and include them in survey/review reports. Use when the report covers other groups' work and benefits from their architecture diagrams, experimental plots, or system schematics. Your brain prompt supplies the absolute path to the extract-figures script as {{EXTRACTFIGURES}} — use…

Muuuun/luxas · 79 tokens