arxiv-figures

arxiv-figures is a skill for Claude Code from Mathews-Tom/armory. It costs 99 tokens per session (1,534 once invoked), scanned A, original, MIT.

A tool for preparing images used in arXiv papers. arXiv is an online archive where researchers share scientific papers before or alongside journal publication, and the tool handles image formats, file size, metadata, and compatibility with LaTeX build methods.

In plain words
What is it for?
Finding figures in a LaTeX project, converting them between EPS, PDF, PNG, and JPG, compressing them, and checking which formats work with the chosen LaTeX processor.
Why use it?
It removes common figure problems that can make a paper fail to compile or produce unsuitable images. It also helps keep diagrams, plots, photos, and screenshots clear while reducing unnecessary file size.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the armory plugin — 85 skills shipped together

Good fit Finding figures in a LaTeX project, converting them between EPS, PDF, PNG, and JPG, compressing them, and checking which formats work with the chosen LaTeX processor.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mathews-tom/armory/arxiv-figures
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 Mathews-Tom/armory --skill arxiv-figures
Clone the repo
git clone --depth 1 https://github.com/Mathews-Tom/armory

Made for: Claude Code.

Or install armory, the plugin that ships this one along with the rest of its 85 skills.

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 arxiv-figures

README.md
[![agentmods](https://agentmods.dev/badge/skills/mathews-tom/armory/arxiv-figures/github.svg)](https://agentmods.dev/skills/mathews-tom/armory/arxiv-figures)
Your own site
<a href="https://agentmods.dev/skills/mathews-tom/armory/arxiv-figures"><img src="https://agentmods.dev/badge/skills/mathews-tom/armory/arxiv-figures/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 arxiv-figures

Your own site · 80×15
<a href="https://agentmods.dev/skills/mathews-tom/armory/arxiv-figures"><img src="https://agentmods.dev/badge/skills/mathews-tom/armory/arxiv-figures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,534 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 pass 7 Sept 2026
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.00099 $0.01534
Opus 5 $0.00049 $0.00767
Sonnet 5 $0.00020 $0.00307
Haiku 4.5 $0.00010 $0.00153

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

Security

Grade A, and why

arxiv-figures 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.

skills/arxiv-figures/SKILL.md · 175 lines

How it starts

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

arXiv Figure Optimizer

Purpose

Analyze, optimize, and convert figures in a TeX/LaTeX project to meet arXiv requirements and size constraints. Produces correctly formatted, efficiently compressed figures that compile without errors.

Companion skills:

  • arxiv-preflight — full submission validation
  • arxiv-package — tarball packaging

Format Rules

By Processor

Processor Accepted Rejected
LaTeX (DVI mode) .ps, .eps .pdf, .png, .jpg
PDFLaTeX .pdf, .png, .jpg .ps, .eps

By Content Type

Content Optimal Format Rationale
Photographs JPEG Lossy compression suits continuous tone
Line drawings / diagrams PDF (vector) Scalable, sharp at any resolution
Plots with text labels PDF (vector) Text remains crisp and searchable
Screenshots / raster art PNG Lossless compression for sharp edges
Mixed photo + text PNG or PDF Depends on dominant content

Workflow

1. Inventory

Scan the project for all figures:

  • Parse \includegraphics calls from all .tex files
  • Identify the TeX processor (DVI vs PDFLaTeX) from document preamble or build config
  • For each figure: record path, format, file size, dimensions (pixels or vector bounds)
  • Flag missing figures, wrong-format figures, oversized figures

2. Analyze

For each figure, determine:

  1. Format compliance — does the format match the processor?
  2. File size — flag individual figures >2MB, total >15MB
  3. Resolution — PNG/JPEG: flag >34 Megapixels (arXiv warning threshold since Feb 2026)
  4. Content type — photograph vs diagram vs plot (determines optimal format)
  5. Redundant metadata — PNG: ICC profiles, alpha channels, EXIF, interlacing
  6. EPS efficiency — verbose PostScript from plotting programs (common with matplotlib, R, MATLAB)

3. Optimize

Apply transformations in order of impact:

Read the full file on GitHub · 175 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. 9d ago First seen · 175 lines · 99 tokens per session scan A 937efdb69ff4

Subscribe to this mod's changes

arxiv-figures is a skill published in the GitHub repository Mathews-Tom/armory (316 stars, last pushed 3d ago), licensed MIT. It adds 99 tokens to every session and 1,534 once invoked, about $0.0005 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

or-solver

Unified solver detection, installation, selection, and license configuration for OR optimization skills (LP, MIP, SOCP). One-stop solver management: detect installed packages, install missing solvers with proper priority, select the best available solver by problem type, and troubleshoot common errors. Covers 20…

VeryMath/AI4Math-Optimization · 145 tokens

cdopt-optimization

Use when Codex needs to solve, reproduce, test, compare, generate examples for, or diagnose CDOpt manifold optimization workflows, including CDOpt package smoke tests, official problem description cards, Stiefel dictionary learning, SciPy wrappers, PyTorch/JAX/NumPy CDOpt examples, dependency checks, tiny CPU…

VeryMath/AI4Math-Optimization · 80 tokens

linear-programming

Models and solves linear programs (LP) with multiple solvers (COPT, Gurobi, MOSEK, CPLEX, HiGHS (scipy/highspy), CLARABEL, PuLP/CBC, CVXOPT, OR-Tools/GLOP, GLPK, SoPlex, lpsolve, ECOS). Restates natural-language word problems into LP before building and solving. When no local solver is available, searches GitHub for…

VeryMath/AI4Math-Optimization · 149 tokens

copt-linear-program

A tool for turning linear programming problems into mathematical models and solving them with Cardinal Optimizer, a software package for optimization. It can start from a word problem or from supplied matrices and JSON data.

VeryMath/AI4Math-Optimization · 90 tokens

osqp-solver

Model, solve, update, reproduce, and diagnose continuous convex quadratic programs with the OSQP Python interface, including canonical-form conversion, sparse CSC data, solver-status gates, residual checks, infeasibility certificates, warm starts, repeated parametric QPs, and academic citation. Use when a task names…

VeryMath/AI4Math-Optimization · 131 tokens

second-order-cone-programming

Models and solves second-order cone programs and problems convertible to SOCP form using cvxpy with multiple solver backends (COPT, Gurobi, MOSEK, CPLEX, CLARABEL, ECOS, SCS, CVXOPT, COSMO, OSQP). Handles linear objectives with second-order cone constraints, as well as problems reducible to SOCP such as portfolio…

VeryMath/AI4Math-Optimization · 114 tokens