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.
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkitnpx agentmods add skills/morningstar202604/awesome-skillkit/latex-formatterWrote 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.
[](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/latex-formatter)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 haschktexinstalled, it layers in real lint and labelsmethodasexternal-lint. The script doesn't run pdflatex compilation;compilableis 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.
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.
- 2mo ago Changed · -31 tokens per session b72c5b99fea4
- 2mo ago Changed · +6 lines · +9 tokens per session 11e2e83fdfae
- 2mo ago First seen · 96 lines · 156 tokens per session scan A c9b5f6d6186b
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.
latex-formatter compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| latex-formatterMorningstar202604/awesome-skillkit | Skill | 0 | 2mo ago | Apache-2.0 | A | 134 | Claude Code, Codex |
| drug-discoveryNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 19 | Claude Code, Codex |
| sglang-diffusion-cache-ditsgl-project/sglang | Skill | 39k | today | Apache-2.0 | A | 161 | Claude Code |
| detecting-pv-signalsmaziyarpanahi/openmed | Skill | 5.9k | yesterday | Apache-2.0 | A | 218 | Claude Code |
| coding-icd10maziyarpanahi/openmed | Skill | 5.9k | yesterday | Apache-2.0 | A | 209 | Claude Code |
| deidentifying-clinical-textmaziyarpanahi/openmed | Skill | 5.9k | yesterday | Apache-2.0 | A | 144 | Claude Code |
| extracting-sdohmaziyarpanahi/openmed | Skill | 5.9k | yesterday | Apache-2.0 | A | 163 | Claude Code |