executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
building-architecture-modelsCommon steps for building multi-layer system architecture models using System Composer. Use when implementing architecture models or when interacting with interface dictionaries, allocation sets, stereotypes, and requirements for architecture components.
Independent GitHub snapshot · Automated classification · Original documentation governs
Create and refine System Composer architecture models — from greenfield F/L/P designs to targeted additions (stereotypes, views, allocation sets, requirements tracing).
building-simulink-modelsbuilding-simulink-models with model_editspecifying-mbd-algorithms to produce a spec first, then return here to buildF/L/P = 3 separate Architecture models. There are no special model types (systemcomposer.createFunctionalModel does not exist). Layers are a convention — three independent .slx models connected by allocation sets.
Layer conventions:
SenseState, ComputeControl), abstract interfaces, no unitsSensingUnit, ControlUnit), typed signals, design-agnosticIMU_SensorModule, FlightComputer), physical units, implementation-levelAllocation links layers. Allocation sets map elements across models (F→L, L→P). Rebuilding a model invalidates allocation links because SIDs change — always re-run allocation after a model rebuild.
Interface dictionaries are per-layer. Each layer has its own .sldd with interfaces at the appropriate abstraction. The dictionary must be linked to the model (linkDictionary) before setInterface works — without it, ports silently stay untyped.
Stereotypes follow a strict lifecycle. Create profile → save → apply to model → apply stereotype to components → set properties. Fully-qualified paths required: Profile.Stereotype.Property.
Always:
model_check after building each model to detect unconnected portsAsk First:
Never:
model_check verification after building a layersystemcomposer.createAllocationSet — correct namespace is systemcomposer.allocation.createAllocationSet| Intent | Reference |
|---|---|
| Build a full system architecture from scratch (greenfield) | references/flp-reference-workflow.md — tailor to user's scope and existing artifacts |
| Add interface dictionaries, stereotypes, views, or analysis | references/system-composer-api.md |
| Create allocation sets between layers | references/system-composer-api.md § Allocation Sets |
| Link requirements to architecture components | references/requirements-traceability-api.md |
| Set up project for architecture work | references/matlab-project.md + managing-simulink-projects |
managing-simulink-projects)The helper scripts/resolveComponent.m is in the skill's scripts/ directory. Use evaluate_matlab_code with project_path set to the skill's scripts/ folder so MATLAB can find it. Never use addpath.
Run after building each model:
model_check with checks="unconnected_ports" to detect unwired portsset_param(modelName, "SimulationCommand", "update")) to catch interface type issuesmodel_edit — structural modeling (components, ports, connections, layout)model_check — post-build verification (unconnected ports)evaluate_matlab_code — SC-specific APIs (interface dictionaries, stereotypes, allocation, views, analysis, requirements linking)scripts/resolveComponent.m — helper to resolve nested sub-components by pathCopyright 2026 The MathWorks, Inc.