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/loadProjectRequirements.m

View on GitHub
function loadProjectRequirements(projRoot)
% LOADPROJECTREQUIREMENTS Load all requirement sets and link sets in a project tree.
%   Recursively discovers and loads all .slreqx and .slmx files under projRoot.
%   Safe to call on already-loaded files (slreq.load is idempotent).
%
%   Input:
%     projRoot - Root directory of the project (string)

    reqxFiles = dir(fullfile(projRoot, '**', '*.slreqx'));
    slmxFiles = dir(fullfile(projRoot, '**', '*.slmx'));

    for i = 1:numel(reqxFiles)
        slreq.load(fullfile(reqxFiles(i).folder, reqxFiles(i).name));
    end
    for i = 1:numel(slmxFiles)
        try
            slreq.load(fullfile(slmxFiles(i).folder, slmxFiles(i).name));
        catch
            % Skip files that fail to load (missing artifacts, unresolvable links, etc.)
        end
    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