Skip to content
Skills Library
Programming · Building & coding

app-designer-ui

/app-designer-ui

Generate MATLAB App Designer / programmatic-UI code (uifigure, uiaxes, uidropdown, uibutton) and wire callbacks that simulate a Simulink model and plot results into uiaxes. Use when the user asks for .mlapp code, 界面, 开个窗口, a control panel, or a GUI around a model.

Licence
MIT
Last repository change
06.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 06.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Generate MATLAB App Designer / programmatic-UI code (uifigure, uiaxes, uidropdown, uibutton) and wire callbacks that simulate a Simulink model and plot results into uiaxes. Use when the user asks for .mlapp code, 界面, 开个窗口, a control panel, or a GUI around a model.

Original author description

Generate MATLAB App Designer / programmatic-UI code (uifigure, uiaxes, uidropdown, uibutton) and wire callbacks that simulate a Simulink model and plot results into uiaxes. Use when the user asks for .mlapp code, 界面, 开个窗口, a control panel, or a GUI around a model.

How it works

  1. Hard rules
  2. Callback + Simulink pattern
  3. Workflow
  4. Do not
Original SKILL.md headings · 51 lines, 360 words
SKILL.md preview
---
name: app-designer-ui
description: Generate MATLAB App Designer / programmatic-UI code (uifigure, uiaxes, uidropdown, uibutton) and wire callbacks that simulate a Simulink model and plot results into uiaxes. Use when the user asks for .mlapp code, 界面, 开个窗口, a control panel, or a GUI around a model.
whenToUse: The user wants an app, dashboard, or interactive UI for MATLAB/Simulink work, or asks to review/repair existing App Designer code.
---

# App Designer / GUI generation

## Hard rules

- Use **modern UI components**: `uifigure`, `uipanel`, `uigridlayout`, `uiaxes`, `uidropdown`, `uibutton`, `uislider`, `uieditfield`, `uilabel`, `uitable`. Never use legacy `figure`, `axes`, `subplot`, `guide`, `uicontrol`, or `waitforbuttonpress` in generated code.
- Produce a **code-only app class** (`classdef MyApp < matlab.apps.AppBase`) saved as `MyApp.m`. `.mlapp` is a binary container; a text class file is reviewable, diffable, and satisfies the same requirement. Say so explicitly when the user asked for `.mlapp`, and give the one-line packaging step (`appdesigner` / "Save As .mlapp") if they want the binary.
- Every callback that launched work must report failure in the UI (`uialert` or a status label), never only to the command window.
- Keep one `uigridlayout` as the layout root; size the `uiaxes` by the layout, not by absolute pixels.

## Callback + Simulink pattern

```matlab
function RunButtonPushed(app, ~)
    app.StatusLabel.Text = "Running...";
    drawnow
    try
        in = Simulink.SimulationInput(app.ModelDropDown.Value);
        in = in.setModelParameter("StopTime", string(app.StopTimeField.Value));
        out = sim(in);
        y = out.yout.getElement(1).Values.Data;
        t = out.yout.getElement(1).Values.Time;
        plot(app.UIAxes, t, y, LineWidth=1.5);
        grid(app.UIAxes, "on");
        app.StatusLabel.Text = sprintf("Done: %d samples, final=%.4g", numel(y), y(end));
    catch err
        uialert(app.UIFigure, err.message, "Simulation failed");
        app.StatusLabel.Text = "Failed: " + err.identifier;
    end
end
```

`sim()` must be called with a `Simulink.SimulationInput` when the app changes model parameters, so the base workspace is not mutated.

## Workflow

1. Read the official App Building guidance first:
   - `<user home>\.matlab\agentic-toolkits\matlab\skills-catalog\matlab-app-building\matlab-build-app\SKILL.md` — layout archetypes, component lifecycle, `.mlapp` vs `.m` decision.
   - `...\matlab-app-building\matlab-build-chart\SKILL.md` for chart/axes wiring, `...\matlab-apply-theme\SKILL.md` for styling.
   - Interaction patterns: the **App Building** category of <https://github.com/matlab/prompts> (MathWorks' official prompt collection).
2. Confirm the model path and its logged outputs (see `simulink-simulation-run`).
3. Write the class to the workspace (`.m`), then verify with `mcp__matlab__check_matlab_code(script_path=<abs path>)` and fix every reported syntax error. Static-analysis warnings should be explained, not ignored.
4. Optionally smoke-test construction in MATLAB with `app = MyApp; delete(app)` inside `evaluate_matlab_code` and report the result.
5. Return: file path, component tree, callback list, verification result (tool output), and how to launch it.

## Do not

- Do not scaffold `guide`-style `.fig` files or `uicontrol` layouts.
- Do not leave placeholder callbacks that do nothing.
- Do not plot inside the base workspace without a `uiaxes` target.

Versions

The database has no other skills named app-designer-ui.

Database snapshot: 13.11.2026 · package version 0281a31dbff4 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100matlab-build-app
    Build MATLAB apps from requirements to working code. Asks discovery questions (or skips them when the path is known), recommends UIFigure or UIHTML architecture, identifies layout archetype (Dashboard, Explorer, Tabbed, Wizard, Canvas), produces an implementation plan, and…
  • 100simulink-create-course-activity
    Create MATLAB Course Designer Simulink Exercise learning activities with starter and solution Simulink model files. Use when the user asks to create a Simulink activity, Simulink Exercise, starter model, solution model, model-based learning activity, or Course Designer-ready…
  • 95simulink-automation
    Use when working with Simulink models — analyzing topology, inspecting parameters, modifying values, or managing model lifecycle via MATLAB Engine.
  • 100matlab-simulink
    Builds well-structured, research-grade MATLAB analysis scripts and Simulink simulation models for control systems, robotics, and soft computing research. Use this skill whenever the user wants to write MATLAB code, build a Simulink model, simulate a dynamic system, analyze…
  • 100simulink-model-check
    Audit a Simulink model's structure and explain its architecture. Use when the user says 检查模型 / 看看这个模型有什么问题 / model health / why does the build or compile fail, or before editing a model you have not seen.
  • 100managing-simulink-projects
    Manages MATLAB projects for Simulink workflows: path management, file registration, labels, source control configuration, and project lifecycle. Use when creating projects, adding models/dictionaries/requirements to projects, configuring labels for automation, fixing broken…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.