Skills

Simulink Create Block Icon

Create and register Simulink block icons programmatically.

Install

npx skills add matlab/simulink-agentic-toolkit --skill simulink-create-block-icon -g -a claude-code -y
Category
Design
Updated
6d ago
License
See repository
Context cost
Mediumabout 3,000 tokens
Runs scripts
No, instructions only

What it does

Create and register Simulink block icons programmatically. Use when asked to create an icon, generate a block icon, design an SVG icon for a Simulink block, register an icon, or help with IconEditor features like visibility conditions, layout constraints, parts, port labels, dynamic text, or block frame shapes (e.g. a round or capsule outline).

Simulink Block Icon Creator

Creates Simulink block icons the MathWorks-recommended way: a DVG SVG registered on the block (not MaskDisplay drawing), which stays editable in the IconEditor.

When to Use

Use this skill when the user wants to create, design, or register a graphical icon on a Simulink block, including:

  • Generating an SVG icon for a block (masked, plain, or Simscape component)
  • Adding dynamic icon behavior: visibility conditions, live expression/parameter text, equations, relative positioning, or first-fit sizing
  • Drawing or anchoring port labels on a block's icon
  • Registering an existing icon SVG onto a block, or opening a block's icon in the IconEditor

When NOT to Use

  • Editing a model's structure, parameters, ports, or connections (adding/wiring/deleting blocks, changing block parameters, Stateflow internals), that is model building, not icon appearance (e.g. building-simulink-models, if available).
  • Registering or configuring .slx block libraries for model building, that is library setup, not icon creation (e.g. setup-custom-libraries, if available).

Mixed requests. If a request also needs something outside icon authoring (e.g. a port that doesn't exist yet), tell the user up front that this part is out of this skill's scope. If they already asked for it, it can be done without this skill; otherwise ask. Do the icon part once its prerequisites exist.

Key Functions

Bundled in scripts/; all require Simulink, R2026a or later.

Read the whole SKILL.md on GitHub

More in Design