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.
npx skills add VeryMath/AI4Math-Writing --skill latex-build-and-layout-auditgit clone --depth 1 https://github.com/VeryMath/AI4Math-WritingWrote 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/verymath/ai4math-writing/latex-build-and-layout-audit)<a href="https://agentmods.dev/skills/verymath/ai4math-writing/latex-build-and-layout-audit"><img src="https://agentmods.dev/badge/skills/verymath/ai4math-writing/latex-build-and-layout-audit/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/verymath/ai4math-writing/latex-build-and-layout-audit"><img src="https://agentmods.dev/badge/skills/verymath/ai4math-writing/latex-build-and-layout-audit.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.00048 | $0.00760 |
| Opus 5.5 | $0.00019 | $0.00304 |
| Sonnet 5.5 | $0.00010 | $0.00152 |
| Haiku 4.5 | $0.00005 | $0.00076 |
Grade A, and why
latex-build-and-layout-audit 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 3mo 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 — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LaTeX Build And Layout Audit
Audit whether a mathematical paper can be built and submitted reliably. This skill handles mechanical LaTeX quality, not proof correctness.
Inputs
- Full TeX source tree, bibliography, figures, class/style files, and target venue or arXiv constraints.
- Optional existing PDF,
.log,.blg,.bbl, or build command.
Output Contract
Return:
- Build status and exact command used or recommended.
- Hard failures: fatal compile errors, undefined references/citations, duplicate labels, missing files, broken bibliography, or incompatible packages.
- Soft warnings: overfull/underfull boxes, float congestion, page-limit risks, fragile macros, and arXiv compatibility concerns.
- Submission preflight: source package portability, clean build reproducibility, TeX Live compatibility, required generated files, and submission manifest gaps.
- Patch suggestions with file path, location, rationale, and meaning-risk label.
Workflow
- Inspect project structure and identify the root
.texfile. - Prefer
latexmk -pdf -interaction=nonstopmode -halt-on-error <root>.texwhen running a build is allowed. - Read logs for errors, warnings, references, citations, labels, and box issues.
- Check source package portability before upload: absolute paths, local-only paths, spaces or fragile file names, missing style files, missing class files, missing bibliography files, missing figures, and case-sensitive path issues.
- Check arXiv and venue preflight risks: TeX Live version assumptions,
unsupported external commands, shell escape requirements, stale
.bbl, figure format/engine mismatches,\includepaths that write aux files below the top directory, and policy-forbidden watermarks, referee notes, or margin comments. - Produce or request a submission manifest listing root file, build command,
engine, bibliography mode, custom
.sty/.cls/.bstfiles, figures, supplements, code/data links, and unresolved risks. - Separate mechanical fixes from edits that could affect mathematical meaning.
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.
- 3mo ago First seen · 74 lines · 48 tokens per session scan A 4991d4f0e367
latex-build-and-layout-audit is a skill published in the GitHub repository VeryMath/AI4Math-Writing (12 stars, last pushed 27d ago), licensed MIT. It adds 48 tokens to every session and 760 once invoked, about $0.0002 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-08-31.
latex-build-and-layout-audit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| latex-build-and-layout-auditVeryMath/AI4Math-Writing | Skill | 12 | 27d ago | MIT | A | 48 | Claude Code, Codex |
| cdopt-optimizationVeryMath/AI4Math-Optimization | Skill | 12 | 27d ago | MIT | A | 80 | Codex |
| second-order-cone-programmingVeryMath/AI4Math-Optimization | Skill | 12 | 27d ago | MIT | A | 111 | Claude Code, Codex |
| osqp-solverVeryMath/AI4Math-Optimization | Skill | 12 | 27d ago | MIT | A | 131 | Codex |
| mixed-integer-programmingVeryMath/AI4Math-Optimization | Skill | 12 | 27d ago | MIT | A | 30 | Claude Code, Codex |
| or-solverVeryMath/AI4Math-Optimization | Skill | 12 | 27d ago | MIT | A | 69 | Claude Code, Codex |
| ai4math-optimizationVeryMath/AI4Math-Optimization | Skill | 12 | 27d ago | MIT | A | 19 | Claude Code, Codex |