latex-structure-audit

latex-structure-audit is a skill for Claude Code, Codex from Rezenders/scientific_writing_agent. It costs 30 tokens per session (629 once invoked), scanned A, original, Apache-2.0.

A read-only audit of the structure of a multi-file LaTeX manuscript. LaTeX is a system commonly used to write documents with complex formatting, equations, and references.

In plain words
What is it for?
It is for checking files, labels, references, definitions, dependencies, and compiler diagnostics in an active LaTeX project.
Why use it?
It helps find structural problems after edits without mixing them with prose review, style review, or changes to the source.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit It is for checking files, labels, references, definitions, dependencies, and compiler diagnostics in an active LaTeX project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rezenders/scientific_writing_agent/latex-structure-audit
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 Rezenders/scientific_writing_agent --skill latex-structure-audit
Clone the repo
git clone --depth 1 https://github.com/Rezenders/scientific_writing_agent

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-structure-audit

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

agentmods 80×15 button for latex-structure-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/rezenders/scientific_writing_agent/latex-structure-audit"><img src="https://agentmods.dev/badge/skills/rezenders/scientific_writing_agent/latex-structure-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 629 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.00030 $0.00629
Opus 5.5 $0.00012 $0.00252
Sonnet 5.5 $0.00006 $0.00126
Haiku 4.5 $0.00003 $0.00063

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

Security

Grade A, and why

latex-structure-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 29d 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.

.agents/skills/latex-structure-audit/SKILL.md · 55 lines

How it starts

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

LaTeX Structure Audit

Read-only source audit. Builds may create artifacts, but never change manuscript files, keys, equations, or macros. This is not a scientific or stylistic review.

Scope and tools

  • Incremental (default after an edit): inspect the supplied diff, affected files, enclosing environments and relevant definitions/users. Search the active manuscript for label/key uniqueness even when only one file changed.
  • Full: inspect all active files and relevant compiled-document diagnostics. Establish the selected entry point; do not include archival drafts by default.
  • Read .agents/context/paper-model.md and run python3 scripts/latex_project_map.py --root . --entry <MAIN_TEX> (optionally --fls <RECORDER>). Inspect limitations and unresolved dependencies.
  • Discover the harness's available LSP operations; prefer definition lookup, references, symbols and diagnostics when supported. Pi and Claude tool names differ. Do not install an extension or assume TexLab is mandatory. Fall back to rg -n -F, source reading and compilation.

Procedure

  1. Establish active files and change scope. Load references/checklist.md for concrete checks and evidence boundaries.
  2. Reuse a current paper-build JSON report, with entry/command and source currency checked. If absent or structural changes affect validity, run paper-build; do not implement another build pipeline. Record NOT RUN if tools are unavailable. Distinguish source candidates from compiler findings.
  3. Inspect labels and references, citations/bibliography keys, dependencies, important macro definitions/uses, and environment boundaries. Inspect local class/style files if they define relevant commands. Verify candidate problems with compilation or LSP where possible. Unknown package commands are not automatically undefined macros.
  4. For incremental mode, compare protected constructs before/after against the author's approved change. Separate expected structural changes from unexpected changes. Report pre-existing findings separately, without attributing them to this edit. No baseline means introduction status is unknown.
  5. Report findings and coverage. Do not fix them or feed them into a writer without human approval. No mandatory full audit for a minor wording edit.

Read the full file on GitHub · 55 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 29d ago First seen · 55 lines · 30 tokens per session scan A 8b47a8b3af07

Subscribe to this mod's changes

latex-structure-audit is a skill published in the GitHub repository Rezenders/scientific_writing_agent (14 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 629 once invoked, about $0.0001 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-11-07.

Related

latex-structure-audit compared with skills from other repositories

latex-structure-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
latex-structure-auditRezenders/scientific_writing_agentSkill141mo agoApache-2.0A30Claude Code, Codex
clinical-case-reportnexu-io/open-designSkill111ktodayApache-2.0A73Claude Code, Codex
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill38kyesterdayApache-2.0A123Claude Code
nature-paper2wordYuan1z0825/nature-skillsSkill56k2d agoApache-2.0A233Codex
pydicomK-Dense-AI/scientific-agent-skillsSkill60k6d agoMITA52Claude Code, Codex
nature-paper-transYuan1z0825/nature-skillsSkill56k2d agoApache-2.0A68Codex
nature-experiment-logYuan1z0825/nature-skillsSkill56k2d agoApache-2.0A45Codex