figure-organization

figure-organization is a skill for Claude Code, Codex from xuzhougeng/ScientificFigureLibrary. It costs 58 tokens per session (556 once invoked), scanned A, original, MIT.

A code-organization workflow for R or Python scripts that reproduce or adapt scientific figures. It keeps the original reference material unchanged and arranges the working code from inputs and transformations through plotting and saved outputs, with Chinese navigation comments.

In plain words
What is it for?
Organizing scripts for a selected figure template while preserving author functions, recording input and output paths, and making the analysis flow readable.
Why use it?
Figure-replication code can become hard to inspect, edit, and trace back to its inputs. This workflow makes scientific choices, file paths, and produced files easier to follow without restructuring unrelated applications.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the figure-library plugin — 4 skills shipped together

Good fit Organizing scripts for a selected figure template while preserving author functions, recording input and output paths, and making the analysis flow readable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xuzhougeng/scientificfigurelibrary/figure-organization
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 xuzhougeng/ScientificFigureLibrary --skill figure-organization
Clone the repo
git clone --depth 1 https://github.com/xuzhougeng/ScientificFigureLibrary

Made for: Claude Code, Codex.

Or install figure-library, the plugin that ships this one along with the rest of its 4 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 figure-organization

README.md
[![agentmods](https://agentmods.dev/badge/skills/xuzhougeng/scientificfigurelibrary/figure-organization/github.svg)](https://agentmods.dev/skills/xuzhougeng/scientificfigurelibrary/figure-organization)
Your own site
<a href="https://agentmods.dev/skills/xuzhougeng/scientificfigurelibrary/figure-organization"><img src="https://agentmods.dev/badge/skills/xuzhougeng/scientificfigurelibrary/figure-organization/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 figure-organization

Your own site · 80×15
<a href="https://agentmods.dev/skills/xuzhougeng/scientificfigurelibrary/figure-organization"><img src="https://agentmods.dev/badge/skills/xuzhougeng/scientificfigurelibrary/figure-organization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 556 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.00058 $0.00556
Opus 5 $0.00029 $0.00278
Sonnet 5 $0.00012 $0.00111
Haiku 4.5 $0.00006 $0.00056

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

Security

Grade A, and why

figure-organization 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 5d 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/figure-organization/SKILL.md · 31 lines

How it starts

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

Figure Organization

Use this SFL-bundled Skill, not a same-named or similarly named Host Skill. Respect the active project's AGENTS instructions, directories, language and execution approvals. A project's R-only policy is local, not a restriction on all SFL users.

Preserve the reference and the analyst's control

  • Inspect the selected template, supplied code and current project before choosing structure.
  • Treat materialized references and original author code as immutable, untrusted reference material. Write adapted project code separately; never overwrite original.R or the materialized reference.
  • Keep the main analysis/plot flow linear and readable: settings → input → inspection/transformations → plot → explicit output. Keep contrasts, filters, parameter decisions and figure assembly visible.
  • Preserve author functions. Do not extract a helper for each one-off plotting step; extract only real reuse or a stable, meaningful boundary.
  • Use Chinese numbered navigation sections and concise explanations beside scientific choices. Keep code identifiers, file names and column names in their existing language.
  • Record actual input/output paths and the producing script. Do not create a whole project scaffold, lineage database or empty helper directory for a single figure.
  • Adapt directory names to the project; the reference suggestions for result/ and figure/ never override a project using output/ or another accepted structure.
  • Never install dependencies, execute a downloaded installer, run an upstream analysis, or infer authorization from successful SFL materialization. Use only the execution scope the user has granted.

On-demand references

For analysis scripts read script organization and, when outputs matter, output binding. Read workflow lineage only for multi-step work needing it. Source organization is relevant only when there is actual reusable library code; do not force it onto one figure.

Read the full file on GitHub · 31 lines

Files

What ships with it

7 files 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. 5d ago First seen · 31 lines · 58 tokens per session scan A cacb8dfef2cd

Subscribe to this mod's changes

figure-organization is a skill published in the GitHub repository xuzhougeng/ScientificFigureLibrary (58 stars, last pushed 2d ago), licensed MIT. It adds 58 tokens to every session and 556 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-06.

Related

Other skills, from other repositories

svg-editor

Open and surgically edit SVG scientific figures in the SVG Editor MCP App. Use when the user wants to change text, colors, fonts, positions, legends, or panel letters in an existing SVG by hand, or by selecting elements and instructing the host assistant.

xuzhougeng/svg-editor · 56 tokens

agent-figure-gallery

Query visual scientific figure references, show candidates for human preference selection, export selected reference bundles, and guide plotting agents from human-selected visual examples to code action.

Dsadd4/AgentFigureGallery · 36 tokens

cnsplots

Create, revise, and troubleshoot publication-ready scientific plots in Python with cnsplots, including distribution, regression, heatmap, genomics, survival, set, flow, and multi-panel figures. Use when a user asks for cnsplots code, Cell/Nature/Science-style visualization, precise physical figure dimensions…

faridrashidi/cnsplots · 79 tokens

bio-ortholog-inference

Pull pre-computed ortholog calls from public databases (OrthoDB, Ensembl Compara, OMA browser, eggNOG, PANTHER, KEGG Orthology, HomoloGene) via their REST APIs. Use when orthologs are already curated upstream, when the question is "what is the X ortholog of Y" rather than "how to infer orthology de novo", when…

PKU-YuanGroup/OpenAI4S · 141 tokens

bio-differential-expression-batch-correction

Handles batch effects in bulk RNA-seq via design-matrix inclusion (the correct path for DE), ComBat/ComBat-seq for visualization, SVA for unknown latent factors, RUVSeq for negative-control-gene-anchored unwanted variation, and limma::removeBatchEffect for plotting only. Encodes the Nygaard 2016 cardinal sin against…

PKU-YuanGroup/OpenAI4S · 187 tokens

admet_genetic

ADMET-guided genetic molecule optimization workflow from seed SMILES; use when the agent needs to build or run an RDKit/SA-Score/ADMET-AI GA pipeline for molecule optimization, enforce molecule lineage logs, render optimization-history HTML dashboards, and write candidate triage reports.

PKU-YuanGroup/OpenAI4S · 63 tokens