Skip to content

matlab/agent-skills-playground / demos/mbse-with-agentic-ai/skills/simulink-requirements

simulink-requirements

Verified

Use 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.

code/reportLinkHealth.m

View on GitHub
function reportLinkHealth()
% REPORTLINKHEALTH Report broken and orphan links across all loaded LinkSets.
%   Prints broken and orphan links for every loaded LinkSet that has at least
%   one issue. Silently passes when all LinkSets are healthy.
%
%   Call loadProjectRequirements(projRoot) first to ensure all .slmx files are loaded.

    allLS = slreq.find('type', 'LinkSet');
    for i = 1:numel(allLS)
        ls = allLS(i);
        [broken, ~] = ls.getBrokenLinks();
        orphans     = ls.getOrphanLinks();
        if isempty(broken) && isempty(orphans); continue; end
        [~, fname] = fileparts(ls.Filename);
        fprintf('\n%s:\n', fname);
        for j = 1:numel(broken)
            fprintf('  BROKEN  Src="%s" -> Dst="%s"\n', ...
                broken(j).getSourceLabel(), broken(j).getDestinationLabel());
        end
        fprintf('  %d orphan links\n', numel(orphans));
    end
end
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall