matlab/building-architecture-models
Common 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.
npx skills add https://github.com/matlab/simulink-agentic-toolkit --skill building-architecture-models
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 buildsystemcomposer.createFunctionalModel does not exist). Layers are a convention — three independent .slx models connected by allocation sets.SenseState, ComputeControl), abstract interfaces, no unitsSensingUnit, ControlUnit), typed signals, design-agnosticIMU_SensorModule, FlightComputer), physical units, implementation-level.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.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)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 path----
Copyright 2026 The MathWorks, Inc.
----
Take matlab/building-architecture-models from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.