latex-toolkit

latex-toolkit is a skill for Claude Code from KhaledSaeed18/dotclaude. It costs 104 tokens per session (1,800 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,800 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.01800
Opus 5.5 $0.00042 $0.00720
Sonnet 5.5 $0.00021 $0.00360
Haiku 4.5 $0.00010 $0.00180

Measured today against content hash 5bb00deb4191, 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 today.

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 · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 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 · 104 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. today Changed · +1 lines 5bb00deb4191
  2. 2mo 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 (7 stars, last pushed today), licensed MIT. It adds 104 tokens to every session and 1,800 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

latex-toolkit compared with skills from other repositories

latex-toolkit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
latex-toolkitKhaledSaeed18/dotclaudeSkill7todayMITA104Claude Code
food-pptPangenomeAI/academic-skills-food-nutritionSkill494d agoMITA208Claude Code
agri-pptPangenomeAI/academic-skills-food-nutritionSkill494d agoMITA184Claude Code
thesis-consistency-auditNero1688/claude-academic-skillsSkill151mo agoMITA500Claude Code, Codex
nature-paper2ppttuoxie2046/claude-code-research-skillsSkill65mo agononeA146Claude Code
pydicomK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA52Claude Code, Codex
create-technical-diagramsEverMind-AI/RavenSkill6.4ktodayApache-2.0A127Claude Code, Codex