latex-diff

latex-diff is a skill for Claude Code, Codex from flonat/flonat-research. It costs 56 tokens per session (1,979 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 CodeCodex

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.

agentmods
npx agentmods add skills/flonat/flonat-research/latex-diff
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, 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-diff

README.md
[![agentmods](https://agentmods.dev/badge/skills/flonat/flonat-research/latex-diff.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.svg" alt="Measured on agentmods" 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,979 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00056 $0.01979
Opus 5 $0.00028 $0.00989
Sonnet 5 $0.00011 $0.00396
Haiku 4.5 $0.00006 $0.00198

Measured 2d ago against content hash 62e145a592a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 / proofreadingproofread
  • 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. 2d 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 (131 stars, last pushed 10d ago), licensed MIT. It adds 56 tokens to every session and 1,979 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

latex-compile

Compile a LaTeX document and fix every error plus aesthetic issue (overfull/underfull boxes, widows, alignment, fonts) for a clean PDF and log. Use this instead of running pdflatex/latexmk manually — it avoids the latexmk stale-log trap and silent grep failures on binary log output, and it reformats rather than…

Mexregkan/claude-for-researchers · 79 tokens

nb-to-wolfbook

Convert Mathematica .nb or .m files to Wolfbook .wb format so they open and run in VS Code. Use when bringing existing .nb/.m files into Wolfbook, or to make an existing .wb bridge-safe.

Mexregkan/claude-for-researchers · 53 tokens

sync-wb-nb

Propagate a change made in a Wolfbook .wb notebook into the paired .nb notebook so the two stay identical. Use immediately after every .wb edit.

Mexregkan/claude-for-researchers · 38 tokens

wolfram-headless

Run heavy Wolfram Language (wolframscript) computations from Claude Code reliably, and diagnose the misleading "The product exited because of a license error". Use whenever invoking wolframscript on a non-trivial computation, when a wolframscript job dies with a "license error" despite a valid license, or when Wolfram…

Mexregkan/claude-for-researchers · 84 tokens

cross-validate

Format a result, derivation, or numerical value for independent verification by a second model. Use when you want a cross-check on an important or contested result.

Mexregkan/claude-for-researchers · 36 tokens

verify-citation

Confirm a paper actually exists (arXiv / Semantic Scholar / OpenAlex) before citing it. Use before writing any new citation.

Mexregkan/claude-for-researchers · 31 tokens