creating-figures

creating-figures is a skill for Claude Code, Codex from ai4paper/apaper-plugin. It costs 86 tokens per session (2,282 once invoked), scanned A, original, MIT.

A skill for creating print-friendly scientific figures in LaTeX or Typst academic papers. It uses TikZ for LaTeX and CeTZ for Typst, which are systems for drawing figures in those formats.

In plain words
What is it for?
Use it for block diagrams, system architectures, flowcharts, and other figures for papers or theses.
Why use it?
It prevents using the wrong drawing format for the paper and provides a consistent process for making technical illustrations.

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/ai4paper/apaper-plugin/creating-figures
Any agent
npx skills add ai4paper/apaper-plugin --skill creating-figures
Clone the repo
git clone --depth 1 https://github.com/ai4paper/apaper-plugin

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai4paper/apaper-plugin/creating-figures.svg)](https://agentmods.dev/skills/ai4paper/apaper-plugin/creating-figures)
Your own site
<a href="https://agentmods.dev/skills/ai4paper/apaper-plugin/creating-figures"><img src="https://agentmods.dev/badge/skills/ai4paper/apaper-plugin/creating-figures.svg" alt="Measured on agentmods" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,282 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.00086 $0.02282
Opus 5 $0.00043 $0.01141
Sonnet 5 $0.00017 $0.00456
Haiku 4.5 $0.00009 $0.00228

Measured 3d ago against content hash f0957a12cccf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

creating-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 3d 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/creating-figures/SKILL.md · 185 lines

How it starts

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

Creating Scientific Figures

Create compact, print-friendly figures for academic papers. Two backends are supported, and the choice is determined by the host paper's file type — not by preference:

Host paper Backend
LaTeX (.tex, \documentclass{...}) TikZ — see TIKZ.md
Typst (.typ) CeTZ — see TYPST.md

Detection rule

Before generating any figure, identify the host paper:

  1. Look at the working directory (or the path the user gave you) for the main paper source.
  2. If it ends in .tex (or you find \documentclass / \begin{document} anywhere in the project), produce a TikZ figure.
  3. If it ends in .typ (or you find #set page / #import "@preview/..." anywhere in the project), produce a CeTZ figure.
  4. If both exist, default to whichever the user is currently editing or pointed you at.
  5. Only ask the user if neither extension is present in the working tree.

Never mix backends: a TikZ figure cannot be included in a Typst paper (and vice versa) without first compiling to a standalone PDF/SVG.

Quick Start

LaTeX/TikZ

Minimal block diagram:

% 10pt = the host paper's base font size — copy it from the paper, don't pick your
% own. (Sizes other than 10/11/12pt are silently dropped by article; use
% class=<paperclass> instead — see TIKZ.md, Standalone Compilation.)
\documentclass[tikz,border=2mm,10pt]{standalone}
\usetikzlibrary{arrows.meta,positioning}
\begin{document}
\begin{tikzpicture}[
  block/.style={rectangle, draw, fill=gray!15, minimum width=2cm, minimum height=0.8cm, font=\sffamily},
  arrow/.style={->, >=Stealth, thick}
]
  \node[block] (a) {Input};
  \node[block, right=of a] (b) {Process};
  \node[block, right=of b] (c) {Output};
  \draw[arrow] (a) -- (b);
  \draw[arrow] (b) -- (c);
\end{tikzpicture}
\end{document}

Read the full file on GitHub · 185 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. 3d ago First seen · 185 lines · 86 tokens per session scan A f0957a12cccf

Subscribe to this mod's changes

creating-figures is a skill published in the GitHub repository ai4paper/apaper-plugin (3 stars, last pushed 10d ago), licensed MIT. It adds 86 tokens to every session and 2,282 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

drawio-academic-skills

Publication-figure overlay for draw.io. Use instead of drawio whenever the diagram is for a paper, thesis, dissertation, journal, conference, IEEE/ACM submission, manuscript, camera-ready, Word/LaTeX figure, or other publication. Applies venue, figure-type, color, caption/legend, formula, and paper-readability gates…

bahayonghang/drawio-skills · 93 tokens

patent-diagram-generator

Create patent-style technical diagrams including flowcharts, block diagrams, and system architectures using Graphviz with reference numbering.

RobThePCGuy/Claude-Patent-Creator · 27 tokens

aql-authoring

This skill should be used when the user asks to "write an AQL query", "optimize an AQL query", "review AQL", or "query openEHR data" — the multi-step authoring/optimization workflow for AQL (Archetype Query Language) over openEHR clinical data. For a one-off explanation of an existing query or a single AQL…

Cadasto/openehr-assistant-plugin · 102 tokens

论文图表助手

智能图表生成助手,支持流程图、架构图、时序图等专业图表创建。 触发场景: (1) 用户需要创建流程图、架构图、时序图等 (2) 用户需要论文配图、技术文档插图 (3) 用户询问"帮我画个图"、"画个流程图"、"做个架构图" 支持: 论文配图、技术文档、演示汇报、教学材料等场景.

laborany/laborany · 116 tokens

figure-drawing

Use when 需要论文级架构图/流程图/示意图。产出可编辑 draw.io 矢量图,支持概念图、数据图和技术架构图。.

Azzygoatcoder/agent-useful-skills · 46 tokens

respect

2-mode UI respect skill — brief (generate RESPECT.md design brief before coding) and checkpoint (final pre-ship gate enforcing user-respect via α/β/γ gate matrix). Use --mode brief when starting any UI screen; use --mode checkpoint before shipping. RESPECT.md absence blocks craft-lint (exit 2).

kimsanguine/hplan · 70 tokens