wzyn20051216/matlab-agent-skills / skills/matlab-runner
matlab-runner
VerifiedRun MATLAB tasks from Codex with reliable MCP-based execution, logs, artifacts, toolbox inventory, smoke tests, and reproducible validation. Use whenever MATLAB code, .m/.mlx scripts, MATLAB tests, local toolbox probing, or command-line automation is needed.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.5 KB |
| references/acceptance-levels.md | markdown | 3.0 KB |
| references/failure-classes.md | markdown | 2.5 KB |
| references/mcp-readiness-ladder.md | markdown | 6.4 KB |
| references/toolbox-feature-map.md | markdown | 1.1 KB |
| scripts/mas_dep_probe.m | other | 11.4 KB |
| scripts/mas_precheck.m | other | 7.5 KB |
| scripts/mas_product_map.m | other | 6.2 KB |
| scripts/mas_toolbox_map.m | other | 2.8 KB |
| tests/test_dep_probe.m | other | 6.2 KB |
| tests/test_precheck.m | other | 3.6 KB |
scripts/mas_toolbox_map.m
View on GitHubfunction t = mas_toolbox_map(outFile)
%MAS_TOOLBOX_MAP Probe product -> license FEATURE on THIS machine and (optionally)
%write the reference table.
%
% t = mas_toolbox_map()
% t = mas_toolbox_map('skills/matlab-runner/references/toolbox-feature-map.md')
%
% The table is generated, not typed: every row is an actual ver/license call, so
% it cannot drift away from the installation the way a hand-written map does.
if nargin < 1, outFile = ''; end
pairs = { ...
'MATLAB','MATLAB'; 'Simulink','Simulink'; ...
'Control System Toolbox','Control_Toolbox'; ...
'Signal Processing Toolbox','Signal_Toolbox'; ...
'Image Processing Toolbox','Image_Toolbox'; ...
'Statistics and Machine Learning Toolbox','Statistics_Toolbox'; ...
'Optimization Toolbox','Optimization_Toolbox'; ...
'System Identification Toolbox','Identification_Toolbox'; ...
'Robotics System Toolbox','Robotics_System_Toolbox'; ...
'Deep Learning Toolbox','Neural_Network_Toolbox'; ...
'MATLAB Coder','MATLAB_Coder'; ...
'Simulink Coder','Real-Time_Workshop'; ...
'Embedded Coder','RTW_Embedded_Coder'; ...
'Fixed-Point Designer','Fixed_Point_Toolbox'; ...
'Simscape','Simscape'};
v = ver; names = {v.Name};
n = size(pairs,1);
t = struct('product',{},'feature',{},'installed',{},'licensed',{});
for k = 1:n
inst = any(strcmpi(names, pairs{k,1}));
if any(strcmpi(pairs{k,1},{'MATLAB','Simulink','Simscape'}))
lic = NaN; % installation-only, license() is not meaningful
else
lic = license('test', pairs{k,2});
end
t(end+1) = struct('product',pairs{k,1},'feature',pairs{k,2}, ...
'installed',inst,'licensed',lic); %#ok<AGROW>
end
fprintf('%-42s %-28s %-9s %s\n','product','feature','installed','licensed');
for k = 1:n
fprintf('%-42s %-28s %-9d %s\n', t(k).product, t(k).feature, t(k).installed, ...
tern(isnan(t(k).licensed),'n/a',sprintf('%d',t(k).licensed)));
end
if ~isempty(outFile)
fid = fopen(outFile,'w');
if fid < 0, error('mas_toolbox_map:io','cannot write %s', outFile); end
fprintf(fid,'# Toolbox -> license feature map (generated)\n\n');
fprintf(fid,'Generated on %s by `mas_toolbox_map.m`; every row is a real\n', datestr(now,31));
fprintf(fid,'`ver` / `license(''test'',feature)` call on this machine.\n\n');
fprintf(fid,'| product | feature | installed | licensed |\n|---|---|---|---|\n');
for k = 1:n
fprintf(fid,'| %s | `%s` | %d | %s |\n', t(k).product, t(k).feature, ...
t(k).installed, tern(isnan(t(k).licensed),'n/a',sprintf('%d',t(k).licensed)));
end
fprintf(fid,'\n`n/a` = installation-only product; `license(''test'')` is not the right call.\n');
fclose(fid);
fprintf('\nwrote %s\n', outFile);
end
end
function s = tern(c,a,b)
if c, s = a; else, s = b; end
end
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |