matlab-model-code-generator
Skill1.1k starsChanged 3 months agoMITView on GitHub
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.
Trending
More talk lately.thin dataabout the whole repository
Who's talking about zhnnky329/MathModeling-skills
- sudosubin/agents.nix“codex-plugins.github.zhnnky329.mathmodeling-skills: init at 0-unstable-2026-09-24”GitHub · Oct 4, 2026
- sudosubin/agents.nix“codex-marketplaces.github.zhnnky329.mathmodeling-skills: init at 0-unstable-2026-09-24”GitHub · Oct 4, 2026
The biggest 2 of 2 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-reviewerSkill
- completeness-auditorSkill
- consistency-auditorSkill
- data-auditor-cleanerSkill
- decision-prompt-builderSkill
- figure-table-plannerSkill
- final-method-explainerSkill
- math-figure-generatorSkill
- matlab-code-reviewerSkill
- method-selectorSkill
- model-assumptions-builderSkill
- model-code-analyzerSkill
- modeler-decision-loggerSkill
- paper-polisherSkill
- paper-section-writerSkill
- problem-classifierSkill
- problem-parserSkill
- python-code-reviewerSkill
- python-model-code-generatorSkill
- quality-assurance-auditorSkill
- reference-managerSkill
- related-paper-analyzerSkill
- result-report-generatorSkill
- robustness-checkerSkill
- solution-package-builderSkill
- submission-packagerSkill
- symbol-table-builderSkill
- workflow-orchestratorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Read the code plan, decision ledger, method card, probe conditions, and data profile.
- Distinctive: line 20
Prefer basic matrix/table operations and avoid optional toolboxes unless the plan approves them.
- Very specific: line 23
Use diary or another full log only for a failure or reproducibility warning.
- Distinctive: line 24
Run in the available compatible runtime.
- Distinctive: line 37
Do not create scripts for unapproved candidates or a duplicate README.
- Very specific: line 41
Prefer readtable, readmatrix, writetable, writematrix, save, load, and fullfile.
- Very specific: line 42
Use rng(2026) or the recorded seed.
- Very specific: line 43
Use jsonencode when supported.
- Distinctive: line 44
Avoid Live Scripts, App Designer, GUI code, Simulink, and toolbox-only functions unless explicitly approved.
- Very specific: line 49
Follow the model-code-analyzer contract, including approved decision ID, roles, paths, metrics, output-degeneracy evidence, fallback state, …
- Distinctive: line 53
Do not change the selected mathematical method.
- Distinctive: line 54
Do not access or overwrite raw data.
- Distinctive: line 55
Do not fabricate successful execution when MATLAB/北太天元 is unavailable.
- Distinctive: line 56
Keep only evidence-bearing intermediate outputs.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Preconditions
- G2.5 human method choice is recorded.
code/matlab/Qx/qx_code_plan.mdexists.- Required cleaned data and profile exist.
- The plan targets MATLAB or 北太天元.
Legacy artifacts may be read during migration but do not override the human decision.
Workflow
- Read the code plan, decision ledger, method card, probe conditions, and data profile.
- Confirm scope: approved main plus usable baseline. Implement a fallback only after activation.
- Generate conservative
.mfiles undercode/matlab/Qx/. - Prefer basic matrix/table operations and avoid optional toolboxes unless the plan approves them.
- Save tables, metrics, useful figures, and
run_summary.jsonunderresults/Qx/experiments/roundN/. - Evaluate output-degeneracy and fallback-trigger metrics required by the plan.
- Use
diaryor another full log only for a failure or reproducibility warning. - Run in the available compatible runtime. If unavailable, report the unexecuted state explicitly.
- Hand off to
code-reviewer.
Script Layout
code/matlab/Qx/
├── qx_code_plan.md
├── qx_baseline.m
├── qx_main.m
└── run_all.m % only when usefulDo not create scripts for unapproved candidates or a duplicate README.
Compatibility Rules
- Prefer
readtable,readmatrix,writetable,writematrix,save,load, andfullfile. - Use
rng(2026)or the recorded seed. - Use
jsonencodewhen supported; otherwise write the required JSON fields deterministically. - Avoid Live Scripts, App Designer, GUI code, Simulink, and toolbox-only functions unless explicitly approved.
- Note any 北太天元 compatibility risk in the run summary.
Run Summary
Follow the model-code-analyzer contract, including approved decision ID, roles, paths, metrics, output-degeneracy evidence, fallback state, timing, seed, environment, warnings, and errors.
Rules
- Do not change the selected mathematical method.
- Do not access or overwrite raw data.
- Do not fabricate successful execution when MATLAB/北太天元 is unavailable.
- Keep only evidence-bearing intermediate outputs.
- Separate Type 1 diagnostics from paper figures.
Verification
- Main and baseline are directly comparable and both executed when a runtime is available.
- Fallback code exists only when activated.
- Formal outputs and run summary exist.
- Compatibility, seed, inputs, warnings, and errors are recorded.
- Required concentration/degeneracy checks are saved.
- Next handoff is
code-reviewer.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

