matlab/agent-skills-playground / demos/mbse-with-agentic-ai/skills/simulink-requirements
simulink-requirements
VerifiedUse this skill for all requirements-related work in a MATLAB MBSE project using the Requirements Toolbox (slreq). Covers creating and populating requirement sets, derivation links, test case requirements, verification coverage, reading and tracing links across requirement sets and models, checking link health, allocating requirements to components (Implement links), and building traceability reports. Trigger when the user asks about slreq API, slreqx files, slmx link files, outLinks/inLinks, traceability matrices, coverage analysis, broken links, or mapping requirements to architecture components. Use proactively for any requirements or traceability task.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 24.8 KB |
| code/buildMyRequirements.m | other | 1.6 KB |
| code/buildMyTestCases.m | other | 1.3 KB |
| code/exportRequirementsToExcel.m | other | 3.6 KB |
| code/importMyRequirements.m | other | 3.8 KB |
| code/loadProjectRequirements.m | other | 817 B |
| code/reportCoverageAggregate.m | other | 1.4 KB |
| code/reportCoverageByReq.m | other | 1.1 KB |
| code/reportLinkHealth.m | other | 907 B |
| code/traceRequirement.m | other | 1.4 KB |
| references/api-quickref.md | markdown | 7.5 KB |
code/reportCoverageByReq.m
View on GitHubfunction reportCoverageByReq(rs)
% REPORTCOVERAGEBYREQ Print implementation and verification status per requirement.
% Prints a table showing whether each requirement in rs has at least one
% Implement inLink and at least one Verify inLink.
%
% Input:
% rs - slreq.ReqSet to report on
reqs = rs.find('Type', 'Requirement');
fprintf('%-30s %-10s %-8s\n', 'Req ID', 'Impl', 'Verify');
fprintf('%s\n', repmat('-', 1, 55));
for i = 1:numel(reqs)
r = reqs(i);
hasImpl = false;
hasVerify = false;
in_ = r.inLinks();
for k = 1:numel(in_)
if strcmp(in_(k).Type, 'Implement'); hasImpl = true; end
if strcmp(in_(k).Type, 'Verify'); hasVerify = true; end
end
fprintf('%-30s %-10s %-8s\n', r.Id, tf2str(hasImpl), tf2str(hasVerify));
end
end
% ── Helpers ──────────────────────────────────────────────────────────────────
function s = tf2str(cond)
if cond; s = 'YES'; else; s = 'no'; 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 |