wzyn20051216/matlab-agent-skills / skills/matlab-simulink-modeling
matlab-simulink-modeling
VerifiedMATLAB and Simulink workflow for creating, inspecting, modifying, simulating, validating, and exporting .slx models. Use for Simulink, Stateflow, Simscape, model-based design, parameter sweeps, signal logging, requirements, and simulation automation. On this machine, Simulink tasks should be visual-first: open the model in a visible Simulink window before doing substantial automated modeling or simulation so the user can watch the process.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.5 KB |
| references/excitation-checks.md | markdown | 5.8 KB |
| scripts/mas_dist_enter.m | other | 21.8 KB |
| scripts/mas_model_check.m | other | 2.8 KB |
| tests/test_dist_enter.m | other | 14.0 KB |
| tests/test_model_check.m | other | 1.0 KB |
tests/test_model_check.m
View on GitHubfunction res = test_model_check(verbose)
%TEST_MODEL_CHECK A real model must reach L3; a missing file must stay L0.
%
% res = test_model_check()
if nargin < 1, verbose = true; end
here = fileparts(mfilename('fullpath'));
repo = fileparts(fileparts(fileparts(here)));
addpath(fullfile(fileparts(here),'scripts'));
mdl = fullfile(repo,'matlab','boost','models','boost_avg.slx');
r1 = mas_model_check(mdl, struct('tStop',0.01));
r2 = mas_model_check(fullfile(repo,'no_such_model.slx'));
nP = 0;
if verbose, fprintf('=== model check tests ===\n'); end
ok1 = strcmp(r1.level,'L3') && r1.pass;
ok2 = strcmp(r2.level,'L0') && ~r2.pass;
nP = ok1 + ok2;
if verbose
fprintf(' [%s] real model -> %s %s\n', tern(ok1,'PASS','FAIL'), r1.level, r1.detail);
fprintf(' [%s] missing file -> %s %s\n', tern(ok2,'PASS','FAIL'), r2.level, r2.detail);
fprintf('\n---- %d / 2 model-check cases passed ----\n', nP);
end
res = struct('nPass',nP,'nTotal',2,'pass',nP==2, ...
'realModel',r1,'missing',r2);
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 |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |