latex-formatter

latex-formatter is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 134 tokens per session (1,697 once invoked), scanned A, original, Apache-2.0.

A LaTeX draft checker for papers that examines the document template, paired environments, special characters, and bibliography presence. LaTeX is a markup system commonly used to typeset academic papers.

In plain words
What is it for?
Use it to check a .tex file against IEEE, ACM, NeurIPS, or a generic template and save a report of issues and suggestions.
Why use it?
It catches common formatting and structure problems before compilation or submission.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/latex_formatter.py --input draft.tex --template ieee --refs refs.bib --output clean.json.

Good fit Use it to check a .tex file against IEEE, ACM, NeurIPS, or a generic template and save a report of issues and suggestions.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit
agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/latex-formatter

Made for: Claude Code, Codex.

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-formatter

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/latex-formatter"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/latex-formatter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,697 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.00134 $0.01697
Opus 5.5 $0.00054 $0.00679
Sonnet 5.5 $0.00027 $0.00339
Haiku 4.5 $0.00013 $0.00170

Measured 2mo ago against content hash b72c5b99fea4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

latex-formatter 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 2mo 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.

site/skills/paper/latex-formatter/SKILL.md · 102 lines

How it starts

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

LaTeX Formatter (SOTA)

Gatekeep a LaTeX draft before compile / journal submission: sniff the template, verify environment pairing by name, flag escaping/citation issues, and cross-file check for undefined \cite.

Honest disclosure: by default it runs method=stdlib-fallback (pure Python, no dependencies, reproducible offline); if the system has chktex installed, it layers in real lint and labels method as external-lint. The script doesn't run pdflatex compilation; compilable is for you to verify yourself.

Input Checklist

Input Required Notes
draft file yes --input draft.tex reads a .tex file; rc=1 if it doesn't exist
target template no --template ieee/acm/neurips/generic, default ieee
.bib file no --refs refs.bib, used to cross-file-check whether \cite has a matching entry
output path no --output clean.json; default prints to stdout

When missing, ask everything at once: "Please provide: ① draft file path --input ② target template --template (optional) ③ whether to provide --refs for cross-file citation checking ④ whether to save --output. Otherwise defaults: template=ieee, JSON to stdout."

Pre-flight Checks

python3 --version                           # expect >= 3.8, else error and STOP
test -f scripts/latex_formatter.py && echo OK   # expect OK printed, else script missing STOP
test -f draft.tex && echo SRC_OK             # only when using --input; if missing the script rc=1 STOP

If python3 is missing -> prompt to install Python >=3.8; if the script is missing -> say the directory is incomplete; if the --input file doesn't exist -> the script returns rc=1; add the file first.

Workflow

Step 1: Run the Format Gate

python3 scripts/latex_formatter.py --input draft.tex --template ieee --refs refs.bib --output clean.json
python3 scripts/latex_formatter.py --input draft.tex --template neurips

Expected: JSON output containing template, class, method (external-lint/stdlib-fallback), status, issues[], warnings[], suggestions[], external_lint, n_lines. If it fails: process exits 1 with {"status":"error","error":"File not found: ..."} -> the --input path doesn't exist; STOP and add it.

Read the full file on GitHub · 102 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. 2mo ago Changed · -31 tokens per session b72c5b99fea4
  2. 2mo ago Changed · +6 lines · +9 tokens per session 11e2e83fdfae
  3. 2mo ago First seen · 96 lines · 156 tokens per session scan A c9b5f6d6186b

Subscribe to this mod's changes

latex-formatter is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 134 tokens to every session and 1,697 once invoked, about $0.0005 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-19.

Related

latex-formatter compared with skills from other repositories

latex-formatter next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
latex-formatterMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A134Claude Code, Codex
drug-discoveryNousResearch/hermes-agentSkill267ktodayMITA19Claude Code, Codex
sglang-diffusion-cache-ditsgl-project/sglangSkill39ktodayApache-2.0A161Claude Code
detecting-pv-signalsmaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A218Claude Code
coding-icd10maziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A209Claude Code
deidentifying-clinical-textmaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A144Claude Code
extracting-sdohmaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A163Claude Code