latex-diff

latex-diff is a skill for Claude Code from flonat/flonat-research. It costs 56 tokens per session (1,969 once invoked), scanned A, original, MIT.

A comparison tool for two LaTeX files, project folders, or Git revisions that explains meaningful changes in a document.

In plain words
What is it for?
Use it to audit manuscript revisions, prepare a summary of changes for reviewers, or check a co-author's edits before merging.
Why use it?
It distinguishes changes to prose, equations, citations, labels, sections, and files from harmless formatting or line reflow.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to audit manuscript revisions, prepare a summary of changes for reviewers, or check a co-author's edits before merging.

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

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/flonat/flonat-research/latex-diff"><img src="https://agentmods.dev/badge/skills/flonat/flonat-research/latex-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,969 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 107
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 107
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00056 $0.01969
Opus 5.5 $0.00022 $0.00788
Sonnet 5.5 $0.00011 $0.00394
Haiku 4.5 $0.00006 $0.00197

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

Security

Grade A, and why

latex-diff 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.

skills/latex-diff/SKILL.md · 176 lines

How it starts

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

LaTeX Diff

Compare two versions of a LaTeX document and report what actually changed — text, equations, citations, labels/refs, section titles, macros, environments, file add/remove, and moves — each graded by severity. Wraps the latexdiff-agent CLI (packages/latex-diff). Member of the latex-* source/build family.

When to Use

  • "What changed between these two versions of the paper?"
  • Building an R&R "summary of changes" or a preprint vN→vN+1 changelog
  • Focusing a re-review on the changes that matter (semantic-impact only)
  • Sanity-checking a co-author's edits before merging

When NOT to Use

  • Compiling a document → latex
  • Prose quality / proofreading → proofread
  • A raw line diff is enough → git diff (this skill is LaTeX-aware: it knows a changed \cite key from a reflowed paragraph)

What it produces

Two views from the same canonical diff:

  1. Human summary — grouped by file and section, every line carrying a change id, a severity badge, and a file:line location.
  2. Machine-readable JSON — severity-graded ChangeRecords. semantic_impact: true flags the changes a reviewer should actually read.

For a persistent run inside a research project, these are the mandatory core files. Use one timestamp-only basename for the whole run:

reviews/<scope>/<check>/<YYYY-MM-DD-HHMM>.md
reviews/<scope>/<check>/<YYYY-MM-DD-HHMM>.changes.json

Here and below, <check> is this skill's frontmatter name.

Co-locate applicable typed companions with the same basename:

  • .full.json — unfiltered machine-readable inventory
  • .changes.md — full or raw human-readable inventory when the primary report is a shorter curated summary
  • .diff.tex and .diff.pdf — rendered manuscript comparison
  • .source.patch — exact source patch for source-only changes such as citation rekeys

The core pair is stable; companions vary with the comparison. Do not replace the core pair with a PDF, patch, or run-specific directory.

Read the full file on GitHub · 176 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 383dc82fca65
  2. 3mo ago First seen · 176 lines · 56 tokens per session scan A 62e145a592a0

Subscribe to this mod's changes

latex-diff is a skill published in the GitHub repository flonat/flonat-research (158 stars, last pushed 20d ago), licensed MIT. It adds 56 tokens to every session and 1,969 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-09-03.

Related

latex-diff compared with skills from other repositories

latex-diff next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
latex-diffflonat/flonat-researchSkill15820d agoMITA56Claude Code
manuscript-as-codeforyourhealth111-pixel/Vibe-SkillsSkill3.9k27d agoApache-2.0A43Claude Code
commitnitinjain999/platform-skillsSkill75yesterdayApache-2.0A74Claude Code
push-preflight0xDarkMatter/claude-modsSkill8611d agoMITA101Claude Code
toolsbrycewang-stanford/Auto-Empirical-Research-SkillsSkill5.5kyesterdaynoneA28Claude Code
commit-push-prbrycewang-stanford/Auto-Empirical-Research-SkillsSkill5.5kyesterdaynoneA28Claude Code
commitbrycewang-stanford/Auto-Empirical-Research-SkillsSkill5.5kyesterdaynoneA25Claude Code