Agent skill

Math Figure Generator

by zhnnky329 in zhnnky329/MathModeling-skills

Generate and render-verify publication-quality mathematical-modeling figures from saved evidence, using the approved figure plan, source data, claim, type, and consistent visual system.

MITAuto-check passedData & Analytics

Install Math Figure Generator

skills CLI
$ npx skills add zhnnky329/MathModeling-skills --skill math-figure-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zhnnky329/MathModeling-skills math-figure-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zhnnky329/MathModeling-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/math-figure-generator .claude/skills/math-figure-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
math-figure-generator
GitHub stars
1.1k
Token cost
~585 tokens
SKILL.md length
275 words
Files
5 (incl. references)
Skills in repo
29
Repo updated
First seen
Licence
MIT

At a glance

Generate and render-verify publication-quality mathematical-modeling figures from saved evidence, using the approved figure plan, source data, claim, type, and consistent visual system.

  • Works in 8 steps: Verify source files and the exact… → Choose the smallest chart form that… → Generate with deterministic code,… → …
  • Tasks that involve Data visualization
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Math Figure Generator is an agent skill from zhnnky329/MathModeling-skills. Generate and render-verify publication-quality mathematical-modeling figures from saved evidence, using the approved figure plan, source data, claim, type, and consistent visual system.

Its SKILL.md is about 590 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/chart-patterns.md`, `references/color-systems.md` and `references/layout-guide.md`).

It sits in Data & Analytics, covering Data visualization. The repository describes itself as: 面向数学建模竞赛的 Claude Code / Codex Skills ,支持分阶段建模流程与 Python、MATLAB/北太天元代码分支。 The licence is MIT.

When your agent uses it

  • Tasks that involve Data visualization

Example prompts

  • “/math-figure-generator”

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Verify source files and the exact variables/units to plot.
  2. Choose the smallest chart form that communicates the claim.
  3. Generate with deterministic code, preferably matplotlib.
  4. Save editable source code and the requested output format.
  5. Apply the shared color, typography, sizing, and labeling conventions.
  6. Render the final output and inspect it visually.
  7. Check clipping, overlap, illegible text, misleading axes, legends, empty panels, and source/claim mismatch.
  8. Iterate until render checks pass.

What it can do on your machine

Read from SKILL.md and the folder at commit 0b46e9c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Math Figure Generator loads about 585 tokens when it runs, and up to ~8.1k if it reads all its reference files. Until then it costs about 52 tokens; SKILL.md has 275 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~52
When it runs · the whole SKILL.md, loaded when a task matches
~585
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from zhnnky329/MathModeling-skills at commit 0b46e9c, republished under its MIT licence (© zhnnky329). 275 words, ~585 tokens.

Download SKILL.mdSave it as .claude/skills/math-figure-generator/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
math-figure-generator
description
Generate and render-verify publication-quality mathematical-modeling figures from saved evidence, using the approved figure plan, source data, claim, type, and consistent visual system.

Preconditions

  • Figure type, source artifacts, and target claim are known.
  • Type 3 claim is human-confirmed.
  • Submission figures use final/frozen evidence.

References

Load only what the requested chart needs:

  • references/chart-patterns.md
  • references/color-systems.md
  • references/layout-guide.md
  • references/render-check.md

Workflow

  1. Verify source files and the exact variables/units to plot.
  2. Choose the smallest chart form that communicates the claim.
  3. Generate with deterministic code, preferably matplotlib.
  4. Save editable source code and the requested output format.
  5. Apply the shared color, typography, sizing, and labeling conventions.
  6. Render the final output and inspect it visually.
  7. Check clipping, overlap, illegible text, misleading axes, legends, empty panels, and source/claim mismatch.
  8. Iterate until render checks pass.

Output Locations

  • Type 1/2 exploration: results/Qx/experiments/roundN/figures/
  • Type 3/4 submission: paper/figures/

Use stable descriptive filenames. Do not copy Type 1 diagnostics into the paper directory.

Figure Requirements

  • Labels include units where applicable.
  • Captions state what is shown and the evidence-backed takeaway without overstating causality.
  • Baseline is visually distinct but not exaggerated.
  • Uncertainty is shown when it is part of the claim.
  • Type 3 raster output is at least 300 dpi; vector output is preferred when compatible.
  • Accessibility and grayscale differentiation are considered.

Rules

  • Do not fabricate or manually alter plotted values.
  • Do not use a chart type that hides concentration, uncertainty, or negative results.
  • Do not truncate axes misleadingly.
  • Do not create decorative 3D effects.
  • Do not treat code execution as render verification.
  • Keep diagnostic and paper roles separate.

Verification

  • Source, claim, type, and target section agree.
  • Render inspection passed.
  • Text is readable at final paper size.
  • Legends, colors, markers, axes, units, and captions are consistent.
  • Final output path exists and is recorded in the figure plan.

© zhnnky329, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in .codex/skills/math-figure-generator of zhnnky329/MathModeling-skills.

  • SKILL.md
  • references/chart-patterns.md
  • references/color-systems.md
  • references/layout-guide.md
  • references/render-check.md

Open the folder on GitHubat commit 0b46e9c

Compare with similar skills

Math Figure Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Math Figure Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Math Figure Generator this skillzhnnky329/MathModeling-skills1.1k—~585Automated safety check: PassMIT
MatplotlibzLanqing/codex-claude-academic-skills4.7k17 repos~2.9kAutomated safety check: PassMIT
Chart Visualizationbytedance/deer-flow84k1 repos~840Automated safety check: PassMIT
Scientific Visualizationmims-harvard/OptimusKG14719 repos~6.3kAutomated safety check: PassMIT
SeabornzLanqing/codex-claude-academic-skills4.7k15 repos~4.9kAutomated safety check: PassBSD-3-Clause
Plot From DataTrae1ounG/paper-plot-skills8721 repos~583Automated safety check: PassNone

Similar skills

  • Matplotlib

    zLanqing/codex-claude-academic-skills

    Low-level plotting library for full customization. An agent skill from zLanqing/codex-claude-academic-skills.

    4.7k GitHub starsUsed in 17 repos~2.9k tokens
    Data & AnalyticsAuto-check passed
  • Chart Visualization

    bytedance/deer-flow

    Picks a suitable chart type from 26 options for your data, maps the data to that chart's parameters and generates a chart image through a JavaScript script.

    84k GitHub starsUsed in 1 repo~840 tokens
    Data & AnalyticsAuto-check passed
  • Scientific Visualization

    mims-harvard/OptimusKG

    Create publication figures with matplotlib/seaborn/plotly. An agent skill from mims-harvard/OptimusKG.

    147 GitHub starsUsed in 19 repos~6.3k tokens
    Data & AnalyticsAuto-check passed
  • Seaborn

    zLanqing/codex-claude-academic-skills

    Statistical visualization with pandas integration. An agent skill from zLanqing/codex-claude-academic-skills.

    4.7k GitHub starsUsed in 15 repos~4.9k tokens
    Data & AnalyticsAuto-check passed
  • Plot From Data

    Trae1ounG/paper-plot-skills

    Generate publication-quality matplotlib figures by selecting a pre-built paper style and substituting user data.

    872 GitHub starsUsed in 1 repo~583 tokens
    Data & AnalyticsAuto-check passed
  • Scientific Figure Making

    ChenLiu-1996/figures4papers

    Covers publication-ready matplotlib figures for academic papers, slides, and reports—bars, trends, scatter, heatmaps, and multi-panel layouts—with this…

    8.3k GitHub stars~557 tokensUpdated yesterday
    Data & AnalyticsAuto-check passed

More from zhnnky329/MathModeling-skills

All 29 skills in this repo
  • Method Selector

    zhnnky329/MathModeling-skills

    Build and risk-screen a compact role-based method shortlist for a mathematical-modeling subquestion.

    1.1k GitHub stars~1.6k tokensUpdated 16 days ago
    Auto-check passed
  • Problem Classifier

    zhnnky329/MathModeling-skills

    Classify each parsed mathematical-modeling subquestion by required output and structure, surface ambiguous framing trade-offs for human choice, and record primary/secondary task types without…

    1.1k GitHub stars~611 tokensUpdated 16 days ago
    Auto-check passed
  • Data Auditor Cleaner

    zhnnky329/MathModeling-skills

    Map contest attachments to subquestions, audit and clean raw data, and emit one reusable data profile with quality, coverage, imbalance, concentration, and method-readiness evidence for downstream…

    1.1k GitHub stars~1.1k tokensUpdated 16 days ago
    Auto-check passed
  • Decision Prompt Builder

    zhnnky329/MathModeling-skills

    Build one compact choice card at a genuine mathematical-modeling judgment point.

    1.1k GitHub stars~837 tokensUpdated 16 days ago
    Auto-check passed
  • Matlab Model Code Generator

    zhnnky329/MathModeling-skills

    Generate and run minimal reproducible MATLAB or Beita Tianyuan compatible code for the human-approved main method and usable baseline, with compact experiment artifacts and a canonical run summary.

    1.1k GitHub stars~685 tokensUpdated 16 days ago
    Auto-check passed
  • Model Code Analyzer

    zhnnky329/MathModeling-skills

    Translate a human-approved main method and usable baseline into a minimal language-neutral implementation and experiment contract.

    1.1k GitHub stars~881 tokensUpdated 16 days ago
    Auto-check passed

Questions about Math Figure Generator

What does Math Figure Generator do?

Generate and render-verify publication-quality mathematical-modeling figures from saved evidence, using the approved figure plan, source data, claim, type, and consistent visual system. Math Figure Generator is an agent skill from zhnnky329/MathModeling-skills. Generate and render-verify publication-quality mathematical-modeling figures from saved evidence, using the approved figure plan, source data, claim, type, and consistent visual system.

When should I use Math Figure Generator?

Math Figure Generator fits situations like: tasks that involve Data visualization.

How do I install Math Figure Generator in Claude Code?

Run `npx skills add zhnnky329/MathModeling-skills --skill math-figure-generator -a claude-code`. Or copy the skill folder (.codex/skills/math-figure-generator in zhnnky329/MathModeling-skills) into .claude/skills/math-figure-generator in your project. Claude Code loads it when a task matches its description.

How do I install Math Figure Generator in Codex?

Run `npx skills add zhnnky329/MathModeling-skills --skill math-figure-generator -a codex`. Or copy the skill folder (.codex/skills/math-figure-generator in zhnnky329/MathModeling-skills) into .agents/skills/math-figure-generator in your project. Codex loads it when a task matches its description.

Can I use Math Figure Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zhnnky329/MathModeling-skills --skill math-figure-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/math-figure-generator, .gemini/skills/math-figure-generator, .github/skills/math-figure-generator and .opencode/skills/math-figure-generator in your project.

What does Math Figure Generator need to run?

SKILL.md names no scripts, command-line tools or credentials: Math Figure Generator is instructions for the agent only.

Does Math Figure Generator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Math Figure Generator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Math Figure Generator use?

Math Figure Generator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Math Figure Generator use?

About 585 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.5k tokens, read only when the agent opens those files.

What are the alternatives to Math Figure Generator?

Skills that share tags, products or a category with Math Figure Generator: Matplotlib (zLanqing/codex-claude-academic-skills, 4.7k stars), Chart Visualization (bytedance/deer-flow, 84k stars), Scientific Visualization (mims-harvard/OptimusKG, 147 stars) and Seaborn (zLanqing/codex-claude-academic-skills, 4.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Math Figure Generator?

zhnnky329 (a GitHub user) maintains it in zhnnky329/MathModeling-skills, which has 1,060 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on September 24, 2026.

Source: zhnnky329/MathModeling-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.