Agent skill

Math Modeling Code and Figures

by jihe520 in jihe520/MathModelAgent

Math modeling stage that turns an analysis report into reproducible code, validates the solutions, writes RESULTS_REPORT.md and produces data-driven PDF charts for the paper.

No licenceAuto-check: notesResearch & Science

SKILL.md written in Chinese; this summary is our English description.

Install Math Modeling Code and Figures

skills CLI
$ npx skills add jihe520/MathModelAgent --skill 3coding-visual -a claude-code

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

GitHub CLI
$ gh skill install jihe520/MathModelAgent 3coding-visual --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/jihe520/MathModelAgent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/3coding-visual .claude/skills/3coding-visual && 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
3coding-visual
GitHub stars
6.2k
Token cost
~444 tokens
SKILL.md length
94 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
None found

At a glance

Math modeling stage that turns an analysis report into reproducible code, validates the solutions, writes RESULTS_REPORT.md and produces data-driven PDF charts for the paper.

  • Works in 4 steps: 代码结构 → 逐子问题实现 → 结果文件格式 → …
  • Implementing the models from a math modeling analysis report as runnable code
  • SKILL.md covers 数学建模规范参考 and 阶段边界
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

This stage follows the analysis-modeling step and turns the models in reports/ANALYSIS_MODELING_REPORT.md into programs that can be rerun. The agent sets up code and figures folders following plan.md, then works sub-problem by sub-problem: read the data, implement the model, check constraints, output core results, draw charts, and record method, key numbers and validation in reports/RESULTS_REPORT.md. Optimization problems need a feasible solution before the objective is tuned, forecasts need a train and validation split, and evaluation problems must state metric direction, normalization and weight source.

Intermediate data such as cleaned-data summaries, parameters, iteration history, constraint checks, sensitivity analysis and run logs are saved under figures/ or code/outputs/. Charts are vector PDFs in figures/, with no large title inside the image, since the paper caption supplies it. Flowcharts and architecture diagrams go to the 4drawio stage, and paper text to 5writing. The SKILL.md is written in Chinese.

When your agent uses it

  • Implementing the models from a math modeling analysis report as runnable code
  • Validating constraints and sensitivity of a solution before the paper is written
  • Producing vector PDF charts for prediction, optimization or evaluation results

Example prompts

  • “Implement the models from reports/ANALYSIS_MODELING_REPORT.md and run them for each sub-problem.”
  • “Plot convergence and cost comparison charts for the optimization sub-problem as PDFs in figures/.”
  • “Write reports/RESULTS_REPORT.md with the methods, key numbers and constraint checks.”

Requirements

  • A finished ANALYSIS_MODELING_REPORT.md and plan.md from the earlier stages
  • Pre-approved tools (allowed-tools): Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFetch

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 代码结构
  2. 逐子问题实现
  3. 结果文件格式
  4. 生成数据驱动图表

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(*)
    • Read
    • Write
    • Edit
    • Grep
    • Glob
    • Agent
    • WebSearch
    • WebFetch

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    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 Modeling Code and Figures loads about 444 tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 94 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~444

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFetch

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 94 words (~444 tokens).

“本 skill 承接 2analysis-modeling。目标是把 reports/ANALYSIS_MODELING_REPORT.md 里的模型和算法落实为可复现程序,跑出可信结果,并生成论文中需要的数据型图表。”

— opening of SKILL.md by jihe520
name
3coding-visual
allowed-tools
Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFetch

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/3coding-visual of jihe520/MathModelAgent.

Open the folder on GitHubat commit 03f4eb3

Compare with similar skills

Math Modeling Code and Figures 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 Modeling Code and Figures compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Math Modeling Code and Figures this skilljihe520/MathModelAgent6.2k—~444Automated safety check: NotesNone
Figuresbrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~2.1kAutomated safety check: PassCustom licence
Tablesbrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~2kAutomated safety check: PassCustom licence
Figure Styleaipoch/open-science5.4k—~5.1kAutomated safety check: PassApache-2.0
Scientific Toolkit SkillzLanqing/codex-claude-academic-skills4.6k—~1.2kAutomated safety check: PassMIT
Nature-Style Scientific FiguresYuan1z0825/nature-skills46k—~2.9kAutomated safety check: PassApache-2.0

Similar skills

  • Figures

    brycewang-stanford/Auto-Empirical-Research-Skills

    Design and format publication-quality figures: chart choice, color, scales, legends, captions, reproducibility.

    4.5k GitHub stars~2.1k tokensUpdated 2 days ago
    Research & ScienceAuto-check passed
  • Tables

    brycewang-stanford/Auto-Empirical-Research-Skills

    Design and format publication-quality tables: column order, row grouping, notes, precision, reproducibility.

    4.5k GitHub stars~2k tokensUpdated 2 days ago
    Research & ScienceAuto-check passed
  • Figure Style

    aipoch/open-science

    Publication-grade correctness and legibility rules for final-deliverable scientific figures, not exploratory plots.

    5.4k GitHub stars~5.1k tokensUpdated today
    Research & ScienceAuto-check passed
  • Scientific Toolkit Skill

    zLanqing/codex-claude-academic-skills

    Research computing toolkit for optoelectronic information science and engineering, MATLAB/Octave, Python scientific analysis, signal processing, image processing, statistics, simulation…

    4.6k GitHub stars~1.2k tokensUpdated 4 mo ago
    Data & AnalyticsAuto-check passed
  • Nature-Style Scientific Figures

    Yuan1z0825/nature-skills

    Creates, revises, audits and exports manuscript-ready scientific figures in Python or R, and routes AI-generated graphical abstracts to a separate workflow.

    46k GitHub stars~2.9k tokensUpdated today
    Research & ScienceAuto-check passed
  • Guides an agent through reproducing papers built on the CHARLS health and retirement survey, from variable mapping to cognition, depression and isolation scores.

    617 GitHub starsUsed in 1 repo~1.8k tokens
    Research & ScienceAuto-check passed

More from jihe520/MathModelAgent

All 10 skills in this repo
  • MathModel Figure Templates

    jihe520/MathModelAgent

    Renders ready-made scientific figure templates, such as raincloud plots, Taylor diagrams and chord diagrams, from bundled Python scripts in the MathModel sandbox.

    6.2k GitHub stars~627 tokensUpdated 4 days ago
    Auto-check: notes
  • Typst Author

    jihe520/MathModelAgent

    Generates, edits and debugs Typst (.typ) documents using the bundled Typst documentation as the source of truth, with formatting checks after each edit.

    6.2k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Rewrites a math modeling competition paper into an English EI conference submission, using a bundled IEEE LaTeX template, with evidence tracked back to the original paper.

    6.2k GitHub stars~688 tokensUpdated 4 days ago
    Auto-check passed
  • Math Modeling Paper Verifier

    jihe520/MathModelAgent

    Runs the final verification pass on a math-modeling competition paper written in Typst or LaTeX, checking structure, figures, numbers, leaks and compilation.

    6.2k GitHub stars~1.4k tokensUpdated 4 days ago
    Auto-check: notes
  • Math Modeling Workflow Starter

    jihe520/MathModelAgent

    Entry point for a math modeling competition project: asks about preferences, writes plan.md and todo.md, then calls stage skills for analysis, code, diagrams, paper and verification.

    6.2k GitHub stars~918 tokensUpdated 4 days ago
    Auto-check: notes
  • Math Modeling Problem Analysis

    jihe520/MathModelAgent

    Chinese-language stage that turns a math modeling contest problem and its data files into a modeling report with sub-problems, formulas and a task list for coding.

    6.2k GitHub stars~494 tokensUpdated 4 days ago
    Auto-check: notes

Questions about Math Modeling Code and Figures

What does Math Modeling Code and Figures do?

Math modeling stage that turns an analysis report into reproducible code, validates the solutions, writes RESULTS_REPORT.md and produces data-driven PDF charts for the paper. md into programs that can be rerun.md.

When should I use Math Modeling Code and Figures?

Math Modeling Code and Figures fits situations like: implementing the models from a math modeling analysis report as runnable code; validating constraints and sensitivity of a solution before the paper is written; producing vector PDF charts for prediction, optimization or evaluation results.

How do I install Math Modeling Code and Figures in Claude Code?

Run `npx skills add jihe520/MathModelAgent --skill 3coding-visual -a claude-code`. Or copy the skill folder (skills/3coding-visual in jihe520/MathModelAgent) into .claude/skills/3coding-visual in your project. Claude Code loads it when a task matches its description.

How do I install Math Modeling Code and Figures in Codex?

Run `npx skills add jihe520/MathModelAgent --skill 3coding-visual -a codex`. Or copy the skill folder (skills/3coding-visual in jihe520/MathModelAgent) into .agents/skills/3coding-visual in your project. Codex loads it when a task matches its description.

Can I use Math Modeling Code and Figures 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 jihe520/MathModelAgent --skill 3coding-visual -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/3coding-visual, .gemini/skills/3coding-visual, .github/skills/3coding-visual and .opencode/skills/3coding-visual in your project.

What does Math Modeling Code and Figures need to run?

SKILL.md names no scripts, command-line tools or credentials: Math Modeling Code and Figures is instructions for the agent only. Our summary lists: A finished ANALYSIS_MODELING_REPORT.md and plan.md from the earlier stages. Its frontmatter pre-approves these tools: Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFetch.

Does Math Modeling Code and Figures 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 Modeling Code and Figures safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Math Modeling Code and Figures use?

No licence was found for Math Modeling Code and Figures or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Math Modeling Code and Figures use?

About 444 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Math Modeling Code and Figures?

Skills that share tags, products or a category with Math Modeling Code and Figures: Figures (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k stars), Tables (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k stars), Figure Style (aipoch/open-science, 5.4k stars) and Scientific Toolkit Skill (zLanqing/codex-claude-academic-skills, 4.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Math Modeling Code and Figures?

jihe520 (a GitHub user) maintains it in jihe520/MathModelAgent, which has 6,177 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 3, 2026.

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