latex-toolkit

latex-toolkit is a skill for Claude Code from KhaledSaeed18/dotclaude. It costs 104 tokens per session (1,773 once invoked), scanned A, original, MIT.

A toolkit and workflow for setting up, building, and diagnosing LaTeX theses. LaTeX is a document system that turns source files into formatted documents, while latexmk automates repeated compilation steps.

In plain words
What is it for?
Use it to organise chapters, compile a thesis, manage bibliographies and cross-references, and fix common LaTeX errors.
Why use it?
It replaces guesswork when a build fails or references, figures, and citations appear incorrectly by using the compiler log to find the cause.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the thesis plugin — 21 skills, 3 commands, 2 agents shipped together

Good fit Use it to organise chapters, compile a thesis, manage bibliographies and cross-references, and fix common LaTeX errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khaledsaeed18/dotclaude/latex-toolkit
Install

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.

Any agent
npx skills add KhaledSaeed18/dotclaude --skill latex-toolkit
Clone the repo
git clone --depth 1 https://github.com/KhaledSaeed18/dotclaude

Made for: Claude Code.

Or install thesis, the plugin that ships this one along with the rest of its 21 skills, 3 commands, 2 agents.

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 latex-toolkit

README.md
[![agentmods](https://agentmods.dev/badge/skills/khaledsaeed18/dotclaude/latex-toolkit/github.svg)](https://agentmods.dev/skills/khaledsaeed18/dotclaude/latex-toolkit)
Your own site
<a href="https://agentmods.dev/skills/khaledsaeed18/dotclaude/latex-toolkit"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/dotclaude/latex-toolkit/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 latex-toolkit

Your own site · 80×15
<a href="https://agentmods.dev/skills/khaledsaeed18/dotclaude/latex-toolkit"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/dotclaude/latex-toolkit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,773 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00104 $0.01773
Opus 5.5 $0.00042 $0.00709
Sonnet 5.5 $0.00021 $0.00355
Haiku 4.5 $0.00010 $0.00177

Measured 25d ago against content hash 8de934189efa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

latex-toolkit scanned grade A with 0 findings 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 25d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude-plugin/plugins/thesis/skills/latex-toolkit/SKILL.md · 103 lines

How it starts

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

LaTeX problems fall into two kinds: a build that fails (read the log, fix the first error, rebuild) and a document that builds wrong (question marks, misplaced floats, broken references). Both are diagnosed from the .log, never by guessing at the source.

Project layout

thesis/
  main.tex            \documentclass, packages, \input of chapters
  preamble.tex        packages and macros, nothing else
  chapters/01-introduction.tex ...
  figures/            vector PDFs or high-dpi PNGs, one per figure
  tables/             generated .tex tables (from scripts, never hand-typed numbers)
  references.bib      the bibliography (bibtex-manager owns it)
  latexmkrc           build settings
  .gitignore          *.aux *.bbl *.blg *.log *.out *.toc *.lof *.lot *.fls *.fdb_latexmk *.synctex.gz

One file per chapter, \input{chapters/01-introduction} from main.tex. \includeonly{chapters/04-results} speeds up iteration on one chapter.

Build

Use latexmk; it runs pdflatex/biber/pdflatex the right number of times:

latexmk -pdf -interaction=nonstopmode -file-line-error main.tex
latexmk -pdf -pvc main.tex      # rebuild on save
latexmk -C                       # clean everything

latexmkrc:

$pdf_mode = 1;
$bibtex_use = 2;            # run biber/bibtex when needed
$pdflatex = 'pdflatex -interaction=nonstopmode -file-line-error -synctex=1 %O %S';

Prefer pdflatex unless the template needs xelatex/lualatex (system fonts, Arabic or CJK text); then $pdf_mode = 5 (xelatex) or 4 (lualatex).

Bibliography

biblatex with biber is the modern default and handles Unicode, DOIs, and URLs cleanly:

\usepackage[backend=biber,style=ieee,sorting=none]{biblatex}   % or style=apa, authoryear
\addbibresource{references.bib}
...
\printbibliography

natbib (\citep, \citet, \bibliographystyle{plainnat}, \bibliography{references}) when the template requires it. Never mix the two. Question marks for citations mean biber/bibtex has not run or the key is missing: run the full latexmk build, then check main.blg for "I didn't find a database entry for".

Read the full file on GitHub · 103 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. 25d ago First seen · 103 lines · 104 tokens per session scan A 8de934189efa

Subscribe to this mod's changes

latex-toolkit is a skill published in the GitHub repository KhaledSaeed18/dotclaude (5 stars, last pushed 2d ago), licensed MIT. It adds 104 tokens to every session and 1,773 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-22.

Related

Other skills, from other repositories

thesis-consistency-audit

A consistency audit for quantitative master’s and doctoral theses in management, finance, or strategy. It checks whether numbers, tables, analyses, and claims agree, and can inspect hidden author information in office documents.

Nero1688/claude-academic-skills · 500 tokens

food-ppt

Turn a food & nutrition review report, evidence brief, or manuscript into a fully EDITABLE PowerPoint (.pptx) that opens in PowerPoint / Keynote / Google Slides with every title, bullet, table, and figure as a native editable object — nothing flattened to an image. Converts the outputs of food-research…

PangenomeAI/academic-skills-food-nutrition · 208 tokens

agri-ppt

Turn an agricultural-science review report, evidence brief, or manuscript into a fully EDITABLE PowerPoint (.pptx) — every title, bullet, table, and figure a native editable object, nothing flattened to an image. Same machinery as food-ppt, but for agricultural work: converts the outputs of agri-research…

PangenomeAI/academic-skills-food-nutrition · 184 tokens

nature-paper2ppt

Build a complete but efficient Nature-style Chinese PPTX presentation from a scientific paper, preprint, PDF, article text, abstract, figure legends, or reading notes. Use this skill whenever the user asks to make slides/PPT/PPTX for journal club, group meeting, paper sharing, thesis seminar, lab meeting, department…

tuoxie2046/claude-code-research-skills · 146 tokens

pydicom

Reads, inspects, writes, transforms, and preflights local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

K-Dense-AI/scientific-agent-skills · 52 tokens

create-technical-diagrams

A guide for creating technical diagrams and engineering documents that show components, connections, processes, states, timing, interfaces, or cause and effect. It includes system and network diagrams, flow and sequence diagrams, electrical plans, mechanical sections, and scientific mechanism diagrams.

EverMind-AI/Raven · 127 tokens