MATLAB Orchestrator
Use this skill as the entry point for MATLAB R2026a work. The goal is to turn a loose engineering request into a closed-loop workflow: select the right specialist skill, run MATLAB when possible, save artifacts, and verify the result before reporting back.
Execution Requirement On This Machine
On this machine, MATLAB and Simulink work should default to the official MATLAB MCP auto workflow, not a fresh matlab -batch session. Treat the visible MATLAB desktop as the primary and expected execution path for engineering tasks, especially Simulink modeling, iterative control tuning, and repeated read-modify-simulate loops.
Use this priority order:
- Official MATLAB MCP in
auto mode, reusing an existing shared MATLAB session when present.
- Official MATLAB MCP in
existing / new mode only if the user explicitly requests those modes.
matlab -batch only if the user explicitly asks for batch, CI, or headless execution.
First pass
- Identify the task family.
- Check whether an official MATLAB MCP auto configuration is available first.
- If the task requires MATLAB work on this machine, stay on MCP unless the user explicitly requests a headless/batch path.
- Inspect installed toolboxes with
ver before choosing toolbox-specific APIs.
- Prefer official MathWorks documentation and installed examples over memory.
- Treat forum posts and blogs as hints only; verify every API and parameter locally.
Local Simulink Visualization Preference
The user prefers to see Simulink work happen live, not only receive final files. For Simulink modeling, simulation, control tuning, or code generation tasks:
- Start by opening a visible MATLAB/Simulink session and the relevant
.slx model with load_system / open_system.
- If creating a new model, create and save the model early, then open it before continuing with automated block edits.
- Use
open_system(modelName), set_param(modelName,"ZoomFactor","FitSystem"), scopes, figures, and live plots so the user can watch the process.
- Prefer a visible demonstration step before or alongside batch validation. Batch logs and exported artifacts are still required for acceptance, but they should not replace the visible model/plot experience.
- When an already-open MATLAB window is present, try to execute
open_system in that visible session or bring the Simulink model window to the front. Confirm the expected model window title in the final report.
MCP-Specific Guidance
When an official MATLAB MCP auto path is available:
- Treat the visible MATLAB desktop session as the primary control plane.
- Prefer MCP-driven model edits, simulation commands, workspace inspection, and iterative tuning in that same session.
- Do not silently switch to batch mode just because batch would be easier.
- In the final report, explicitly say that the task ran through MCP, and note any remaining blocker if a required MCP action could not be completed.
Routing
Use these specialist skills:
matlab-runner: execution wrapper, logs, local validation, reproducible artifacts.
matlab-data-analysis: tables, timetables, statistics, fitting, visualization, reports.
matlab-simulink-modeling: .slx models, simulation, signal logging, parameter sweeps.
matlab-codegen-deploy: MATLAB Coder, Embedded Coder, GPU Coder, HDL Coder, deployment.
matlab-control-optimization: control design, system identification, MPC, optimization.
matlab-robotics-autonomy: ROS, robotics, navigation, UAV, sensor fusion, trajectories.
matlab-signal-vision-ai: signal processing, image processing, computer vision, deep learning.
matlab-testing-ci: unit tests, Simulink Test, GitHub Actions, reproducible CI.
If multiple domains apply, start with matlab-runner, then load the narrowest domain skill for the core work, and finish with matlab-testing-ci when the task is meant to be reusable.
Closed-loop Definition
A MATLAB task is complete only when it has:
- A runnable command or script.
- Logs captured from MATLAB.
- Artifacts saved in a predictable folder.
- A numerical, visual, or structural acceptance check.
- A short explanation of what was verified and what remains unverified.
Default Artifact Layout
Use this layout for generated work unless the project already has a convention:
artifacts/
logs/
figures/
data/
models/
reports/
validation/
For paper reproduction, add:
repro/
source/
scripts/
figures/
results/
manifest.json
Source Discipline
Use sources in this order:
- Local MATLAB
help, doc, ver, which, exist, license.
- MathWorks official documentation and release notes.
- MathWorks GitHub repositories and MATLAB Actions.
- Peer-reviewed paper, official dataset, or author repository.
- GitHub issues, MathWorks Answers, Zhihu, blogs, and forums as untrusted heuristics.
Never cite a forum workaround as fact until a local MATLAB command confirms it.
Reporting
Keep the final answer concise and practical:
- Which specialist path was used.
- Which command ran.
- Where artifacts were saved.
- What passed, failed, or was skipped.
- Any license, toolbox, hardware, or dataset limitations.
1---2name: matlab-orchestrator3description: MATLAB Orchestrator4---56# MATLAB Orchestrator78Use this skill as the entry point for MATLAB R2026a work. The goal is to turn a loose engineering request into a closed-loop workflow: select the right specialist skill, run MATLAB when possible, save artifacts, and verify the result before reporting back.910## Execution Requirement On This Machine1112On this machine, MATLAB and Simulink work should default to the official **MATLAB MCP auto** workflow, not a fresh `matlab -batch` session. Treat the visible MATLAB desktop as the primary and expected execution path for engineering tasks, especially Simulink modeling, iterative control tuning, and repeated read-modify-simulate loops.1314Use this priority order:15161. Official MATLAB MCP in `auto` mode, reusing an existing shared MATLAB session when present.172. Official MATLAB MCP in `existing` / `new` mode only if the user explicitly requests those modes.183. `matlab -batch` only if the user explicitly asks for batch, CI, or headless execution.1920## First pass21221. Identify the task family.232. Check whether an official MATLAB MCP auto configuration is available first.243. If the task requires MATLAB work on this machine, stay on MCP unless the user explicitly requests a headless/batch path.254. Inspect installed toolboxes with `ver` before choosing toolbox-specific APIs.265. Prefer official MathWorks documentation and installed examples over memory.276. Treat forum posts and blogs as hints only; verify every API and parameter locally.2829## Local Simulink Visualization Preference3031The user prefers to see Simulink work happen live, not only receive final files. For Simulink modeling, simulation, control tuning, or code generation tasks:32331. Start by opening a visible MATLAB/Simulink session and the relevant `.slx` model with `load_system` / `open_system`.342. If creating a new model, create and save the model early, then open it before continuing with automated block edits.353. Use `open_system(modelName)`, `set_param(modelName,"ZoomFactor","FitSystem")`, scopes, figures, and live plots so the user can watch the process.364. Prefer a visible demonstration step before or alongside batch validation. Batch logs and exported artifacts are still required for acceptance, but they should not replace the visible model/plot experience.375. When an already-open MATLAB window is present, try to execute `open_system` in that visible session or bring the Simulink model window to the front. Confirm the expected model window title in the final report.3839## MCP-Specific Guidance4041When an official MATLAB MCP auto path is available:42431. Treat the visible MATLAB desktop session as the primary control plane.442. Prefer MCP-driven model edits, simulation commands, workspace inspection, and iterative tuning in that same session.453. Do not silently switch to batch mode just because batch would be easier.464. In the final report, explicitly say that the task ran through MCP, and note any remaining blocker if a required MCP action could not be completed.4748## Routing4950Use these specialist skills:5152- `matlab-runner`: execution wrapper, logs, local validation, reproducible artifacts.53- `matlab-data-analysis`: tables, timetables, statistics, fitting, visualization, reports.54- `matlab-simulink-modeling`: `.slx` models, simulation, signal logging, parameter sweeps.55- `matlab-codegen-deploy`: MATLAB Coder, Embedded Coder, GPU Coder, HDL Coder, deployment.56- `matlab-control-optimization`: control design, system identification, MPC, optimization.57- `matlab-robotics-autonomy`: ROS, robotics, navigation, UAV, sensor fusion, trajectories.58- `matlab-signal-vision-ai`: signal processing, image processing, computer vision, deep learning.59- `matlab-testing-ci`: unit tests, Simulink Test, GitHub Actions, reproducible CI.6061If multiple domains apply, start with `matlab-runner`, then load the narrowest domain skill for the core work, and finish with `matlab-testing-ci` when the task is meant to be reusable.6263## Closed-loop Definition6465A MATLAB task is complete only when it has:6667- A runnable command or script.68- Logs captured from MATLAB.69- Artifacts saved in a predictable folder.70- A numerical, visual, or structural acceptance check.71- A short explanation of what was verified and what remains unverified.7273## Default Artifact Layout7475Use this layout for generated work unless the project already has a convention:7677```text78artifacts/79 logs/80 figures/81 data/82 models/83 reports/84 validation/85```8687For paper reproduction, add:8889```text90repro/91 source/92 scripts/93 figures/94 results/95 manifest.json96```9798## Source Discipline99100Use sources in this order:1011021. Local MATLAB `help`, `doc`, `ver`, `which`, `exist`, `license`.1032. MathWorks official documentation and release notes.1043. MathWorks GitHub repositories and MATLAB Actions.1054. Peer-reviewed paper, official dataset, or author repository.1065. GitHub issues, MathWorks Answers, Zhihu, blogs, and forums as untrusted heuristics.107108Never cite a forum workaround as fact until a local MATLAB command confirms it.109110## Reporting111112Keep the final answer concise and practical:113114- Which specialist path was used.115- Which command ran.116- Where artifacts were saved.117- What passed, failed, or was skipped.118- Any license, toolbox, hardware, or dataset limitations.