latexml-oxide: Skill for Claude Code

.claude/skills/min-repro/SKILL.md

min-repro is a skill for Claude Code from dginev/latexml-oxide. It costs 178 tokens per session (1,137 once invoked), scanned A, original, CC0-1.0.

A guide for reducing a failing arXiv paper to the smallest LaTeX example that still shows the target error. This small example is called a reproducer and makes the cause easier to isolate.

In plain words
What is it for?
Use it after confirming a Rust-only failure to bisect the source, simplify the preamble and document, isolate the offending construct, and optionally create a regression-test fixture.
Why use it?
It removes unrelated document content that can obscure the real problem and uses a known-good comparison to identify the triggering command or token.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is dginev/latexml-oxide's own configuration. It tells Claude Code how to work on latexml-oxide itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything latexml-oxide configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dginev/latexml-oxide. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dginev/latexml-oxide/main/.claude/skills/min-repro/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dginev/latexml-oxide

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 min-repro

README.md
[![agentmods](https://agentmods.dev/badge/skills/dginev/latexml-oxide/min-repro/github.svg)](https://agentmods.dev/skills/dginev/latexml-oxide/min-repro)
Your own site
<a href="https://agentmods.dev/skills/dginev/latexml-oxide/min-repro"><img src="https://agentmods.dev/badge/skills/dginev/latexml-oxide/min-repro/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 min-repro

Your own site · 80×15
<a href="https://agentmods.dev/skills/dginev/latexml-oxide/min-repro"><img src="https://agentmods.dev/badge/skills/dginev/latexml-oxide/min-repro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 178 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,137 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.00178 $0.01137
Opus 5 $0.00089 $0.00568
Sonnet 5 $0.00036 $0.00227
Haiku 4.5 $0.00018 $0.00114

Measured 9d ago against content hash 632d262a1c74, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

min-repro 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 9d 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.

.claude/skills/min-repro/SKILL.md · 75 lines

How it starts

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

Goal: the smallest .tex that still emits the canary (the exact error line/class you are chasing). A reproducer that drops the canary is worthless, and one that adds unrelated errors muddies the signal.

Workflow

1 — Pin the canary. Run tools/first_error.sh <paper.log> to get the first non-cascade error class with source context. That line (or a stable substring of it) is your canary pattern — everything below preserves it.

2 — Coarse bisection. tools/bisect_repro.sh <arxiv_id> [canary] does window-bisection from the first-error line. It narrows to the offending region without you hand-editing. Respect the documented contract (reads the extracted paper; canary optional and defaults to the first error).

3 — Manual reduction (when the script can't go further):

  • Strip the preamble bottom-up; keep only \usepackage/\def lines the canary needs. Prefer \documentclass{article} unless the class itself is implicated.
  • Replace \input/\include bodies with the minimal triggering snippet.
  • Re-run after each cut: cargo run --bin latexml_oxide -- --format=html5 --log=r.log --dest=/tmp/r.html repro.tex then ANSI-strip-grep for the canary (sed 's/\x1b\[[0-9;]*m//g' r.log | grep -E '<canary>'). Stop when any further cut loses the canary.

4 — Confirm parity intent. Re-run the reduced case through Perl (/usr/local/bin/latexml repro.tex, verbose — never --quiet) on the same host. A faithful reproducer should still show the Rust-only delta; if Perl now errors too, the reduction changed the semantics — back off the last cut.

5 — Isolate the CAUSE with a control variable (turns a minimal failure into a diagnosis, and often straight into the red test). Once reduced, produce a near-identical twin that differs by one token and is expected to work — a known-good control for the same operation. The delta between the failing case and its control pinpoints the culprit and rules out everything they share (schema, surrounding bindings, the harness). Witness: \hrulefill\vspace*{4pt} (fails, paragraph not closed) vs \hrulefill\par (works) proved the bug was the paragraph-terminator's arrival, not \vskip/the schema — and the pair became the guard (50_structure::vspace_closes_leader_para). Good controls: the explicit form of an implicit action (\par for \vspace*), a sibling macro that shares the machinery, or the same input one nesting level out. When the failure is "X doesn't happen," the control is the case where X does — compare their runtime state at the decision point (see perl-port §1b, "instrument the gate").

Read the full file on GitHub · 75 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. 9d ago First seen · 75 lines · 178 tokens per session scan A 632d262a1c74

Subscribe to this mod's changes

min-repro is a skill published in the GitHub repository dginev/latexml-oxide (11 stars, last pushed yesterday), licensed CC0-1.0. It adds 178 tokens to every session and 1,137 once invoked, about $0.0009 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-08-30.

Related

Other skills, from other repositories

inclusio-publisher

Drive the inclusio publishing engine via MCP — render, audit, and report on PDF/UA-2 tagged documents.

sebastienrousseau/inclusio · 30 tokens

Paper Writing Skills Index

Routing and workflow skill family for paper-writing tasks. Covers manuscript drafting, journal and conference papers, grant proposals, lab reports, group-meeting reports, talks, workshop notes, reviewer rebuttals, academic HTML/PDF/LaTeX output with editable-block contracts, citation grounding, evidence checking, and…

aristoteleo/PantheonOS · 76 tokens

test-iterate-loop

Autonomously diagnose a codebase, apply minimal fixes, and rerun tests until they pass or a real blocker is reached. Use when the user explicitly requests an iterative fix-until-green loop across Python, R, Julia, or HPC workflows.

flonat/flonat-research · 55 tokens

postmortem

Deliver a structured post-mortem after incidents, mistakes, or stuck sessions. Use when the user requests a structured post-mortem after incidents, mistakes, or stuck sessions.

flonat/flonat-research · 40 tokens

code-archaeology

Recover the structure, intent, and lineage of old code, data, or analysis files. Use when inherited or dormant research code must be understood before it is changed. Not for a quality review of already-understood code.

flonat/flonat-research · 50 tokens

check-pipeline

Check that a code and its Pipeline/ .md are still compatible — that every symbol, cell number, data file, and data-flow claim in the pipeline doc still matches the current code (drift detection). Use after editing a documented notebook/engine/script, before trusting a pipeline doc, or on request ("does the pipeline…

Mexregkan/claude-for-researchers · 106 tokens