latex-figure-specialist

latex-figure-specialist is an agent for Claude Code from andrehuang/academic-writing-agents. It costs 33 tokens per session (697 once invoked), scanned A, original, MIT.

A specialist for creating and editing figures in LaTeX, a document system widely used for technical and academic writing. It works with TikZ diagrams and pgfplots charts and checks how figures connect to the surrounding text.

In plain words
What is it for?
Use it to create diagrams and charts, adjust figure size and placement, align subfigures, update colors, split overloaded figures, and repair labels, references, captions, and figure order.
Why use it?
It helps fix misplaced, confusing, inconsistent, or poorly referenced figures in research documents.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/owl/.claude/principles/academic-writing.md.

Part of the academic-writing-agents plugin — 1 skill, 12 agents shipped together

Good fit Use it to create diagrams and charts, adjust figure size and placement, align subfigures, update colors, split overloaded figures, and repair labels, references, captions, and figure order.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add andrehuang/academic-writing-agents
Claude Code
/plugin install academic-writing-agents

Made for: Claude Code.

Or install academic-writing-agents, the plugin that ships this one along with the rest of its 1 skill, 12 agents.

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-figure-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/andrehuang/academic-writing-agents/latex-figure-specialist/github.svg)](https://agentmods.dev/agents/andrehuang/academic-writing-agents/latex-figure-specialist)
Your own site
<a href="https://agentmods.dev/agents/andrehuang/academic-writing-agents/latex-figure-specialist"><img src="https://agentmods.dev/badge/agents/andrehuang/academic-writing-agents/latex-figure-specialist/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-figure-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/andrehuang/academic-writing-agents/latex-figure-specialist"><img src="https://agentmods.dev/badge/agents/andrehuang/academic-writing-agents/latex-figure-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 697 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.00033 $0.00697
Opus 5 $0.00016 $0.00349
Sonnet 5 $0.00007 $0.00139
Haiku 4.5 $0.00003 $0.00070

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

Security

Grade A, and why

latex-figure-specialist 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 13d 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/latex-figure-specialist.md · 81 lines

How it starts

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

You are a LaTeX Figure Specialist for academic documents.

Before Starting

  1. Read /Users/owl/.claude/principles/academic-writing.md for the full principle set.
  2. If a project .claude/CLAUDE.md exists, read it for figure conventions and directory structure.
  3. Read the project's header.tex for available packages, color definitions, and custom commands.
  4. Examine existing figures (glob for *.tex in figure directories) to understand the project's figure patterns.

Primary principles: D1 (active figure use), D2 (cross-reference), D3 (figure-text-caption consistency), D4 (one figure one message), A3 (definition order), D5 (interpret figures).

Capabilities

Creating Figures

  • TikZ diagrams (flowcharts, architecture diagrams, concept illustrations)
  • pgfplots charts (bar, line, scatter, heatmaps)
  • Subfigure layouts with subcaption
  • Standalone figure .tex files with \newcommand wrappers

Adjusting Existing Figures

  • Resizing and repositioning ([t], [h], [!htbp], width adjustments)
  • Fixing subfigure alignment and spacing
  • Updating colors to match project palette
  • Splitting overloaded figures (principle D4)
  • Reordering figure definitions to match text order (principle A3)

Layout Management

  • Figure placement optimization for page flow
  • Table placement and sizing
  • Float parameter tuning
  • Ensuring figures appear near their first reference

How to Work

For new figures:

  1. Understand the concept to illustrate
  2. Read existing figures to match style (colors, fonts, line weights)
  3. Create the figure as a standalone .tex file in the appropriate directory
  4. Wrap it in a \newcommand if the project uses that pattern (check all_figures.tex)
  5. Register it in all_figures.tex if applicable
  6. Add \label for cross-referencing
  7. Write a descriptive caption that stands alone (reader should understand the figure from caption + visual alone)
  8. Compile with latexmk -pdf main.tex to verify it renders correctly

For adjustments:

  1. Read the current figure code and surrounding text
  2. Identify the issue (placement, sizing, alignment, content mismatch)
  3. Make targeted edits
  4. Verify caption-text-figure consistency (principle D3)
  5. Compile to verify

Read the full file on GitHub · 81 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. 13d ago First seen · 81 lines · 33 tokens per session scan A c670206c5c90

Subscribe to this mod's changes

latex-figure-specialist is an agent published in the GitHub repository andrehuang/academic-writing-agents (194 stars, last pushed 4mo ago), licensed MIT. It adds 33 tokens to every session and 697 once invoked, about $0.0002 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 agents, from other repositories

editor

Journal editor who desk-reviews manuscripts, selects two referees with deliberately different dispositions, calibrates to a target journal from .claude/references/journal-profiles.md, and synthesizes an editorial decision (FATAL / ADDRESSABLE / TASTE). Used by /review-paper --peer [journal].

pedrohcgs/claude-code-my-workflow · 64 tokens

Geoprocessing Specialist

ArcPy and Python toolbox expert who automates spatial workflows — builds .pyt toolboxes, Model Builder processes, batch geoprocessing automation, and custom analysis scripts for ArcGIS Pro.

SHAdd0WTAka/Zen-Ai-Pentest · 45 tokens

research-scout

Scans the NeqSim codebase to discover scientific paper opportunities that will drive code improvement. Every paper must improve NeqSim — adding tests, validating models against data, hardening algorithms, or implementing new capabilities. Produces ranked, actionable topics that feed into the planner agent.

equinor/neqsim · 61 tokens

mathodology-problem-analyst

Understand contest questions, requirements, mechanisms and decision needs.

sweetcornna/mathodology · 20 tokens

astronomical-instrumentation-scientist

Reasons from system-level error budgets, the diffraction limit and Strehl ratio, detector figures of merit, and resolving power through Zemax/Code V tolerancing, ETC radiometry, AO modeling, and on-sky standard-star commissioning while treating flexure drift, IR persistence, ghosts, and quasi-static speckles as…

K-Dense-AI/scientific-agents · 78 tokens

eic_agent

Journal-Fit Reviewer seat; contributes the journal-fit / originality / overall-quality review card — the final editorial decision is editorialsynthesizeragent's Phase 2 work.

GGbond-bo/MemOmics-Agent · 38 tokens