XiaoMaColtAI/math-modeling-skill / dsh-plugin/math-modeling-agent/skills/math-modeling/references/roles/编程手
编程手
Verified数学建模的 Python 或 MATLAB 实现、运行、表格输出、可视化和复现阶段。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.3 KB |
| references/MATLAB规范.md | markdown | 3.4 KB |
| references/工作流程.md | markdown | 9.9 KB |
| references/质检清单.md | markdown | 4.2 KB |
| scripts/apply_publication_style.m | other | 2.2 KB |
| scripts/audit_publication_figure.m | other | 3.4 KB |
| scripts/check_env.py | script | 2.7 KB |
| scripts/check_matlab_env.m | other | 1.3 KB |
| scripts/export_publication_figure.m | other | 1.4 KB |
| scripts/figure_audit.py | script | 7.1 KB |
| scripts/plot_style.py | script | 16.8 KB |
| scripts/repro_manifest.py | script | 4.2 KB |
scripts/check_matlab_env.m
View on GitHubfunction report = check_matlab_env(features)
%CHECK_MATLAB_ENV 按选中的模型功能动态检查 MATLAB 工具箱。
arguments
features (1,:) string
end
mapping = struct( ...
'data', "MATLAB", ...
'visualization', "MATLAB", ...
'optimization', "Optimization Toolbox", ...
'integer_optimization', "Optimization Toolbox", ...
'statistics', "Statistics and Machine Learning Toolbox", ...
'machine_learning', "Statistics and Machine Learning Toolbox", ...
'time_series', "Econometrics Toolbox", ...
'graph', "MATLAB", ...
'symbolic', "Symbolic Math Toolbox");
versionInfo = ver;
installed = string({versionInfo.Name});
required = strings(0);
unknown = strings(0);
for feature = features
key = strrep(feature, "-", "_");
if ~isfield(mapping, char(key))
unknown(end + 1) = feature; %#ok<AGROW>
else
required(end + 1) = mapping.(key); %#ok<AGROW>
end
end
required = unique(required);
missing = required(~ismember(required, installed));
report = struct( ...
'ok', isempty(missing) && isempty(unknown), ...
'matlab_version', version, ...
'features', features, ...
'required_toolboxes', required, ...
'missing_toolboxes', missing, ...
'unknown_features', unknown);
disp(jsonencode(report, 'PrettyPrint', true));
end
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |