by matlab
The Simulink Agentic Toolkit gives your AI agent both the tools and the expertise to work effectively with Simulink and Model-Based Design.
# Add to your Claude Code skills
git clone https://github.com/matlab/simulink-agentic-toolkitGuides for using ai agents skills like simulink-agentic-toolkit.
Last scanned: 11/29/2026
{
"issues": [
{
"file": "skills-catalog/code-generation/simulink-optimizing-embedded-code/SKILL.md",
"line": 168,
"type": "prompt-injection",
"message": "Possible concealment directive: \"do not tell the user\"",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-11-29T12:56:19.955Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}simulink-agentic-toolkit is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by matlab. The Simulink Agentic Toolkit gives your AI agent both the tools and the expertise to work effectively with Simulink and Model-Based Design. It has 1,404 GitHub stars.
Yes. simulink-agentic-toolkit passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/matlab/simulink-agentic-toolkit" and add it to your Claude Code skills directory (see the Installation section above).
simulink-agentic-toolkit is primarily written in HTML. It is open-source under matlab on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh simulink-agentic-toolkit against similar tools.
No comments yet. Be the first to share your thoughts!
The Simulink® Agentic Toolkit enables you to use AI agents with Simulink. It gives your AI agent the knowledge and context to read, build, edit, and test Simulink models by using Model-Based Design best practices. It connects agents to Simulink through the MATLAB MCP Server, giving them the ability (tools) and the knowledge (skills) to work with Simulink models effectively. Use this toolkit to provide trusted Simulink capabilities to your agent. This toolkit helps prevent your AI coding agent from hallucinating, missing new features, and wasting time with extra steps that experienced Simulink users skip.
The toolkit provides:
To use AI agents with MATLAB, install the MATLAB Agentic Toolkit. The Agentic Toolkit Installer can install both toolkits in one step.
┌───────────┐ ┌───────────┐ ┌──────────┐
│ AI Agent │◄─MCP─►│MCP Server │◄─────►│ MATLAB / │
│ (Claude, │ │ (MATLAB │ │ Simulink │
│ Codex, │ │ MCP) │ └──────────┘
│ Copilot) │ └───────────┘
└───────────┘
▲
│ reads
┌─────┴─────┐
│ Skills │
│ (MBD best │
│ practices)│
└───────────┘
Your agent reads skills for domain knowledge, then calls MCP tools to interact with MATLAB and Simulink. The MATLAB MCP Server bridges the connection.
model_test toolrequires-products field in each skill's manifest.yaml under skills-catalog/ for additional requirements.These steps show you how to install the Simulink Agentic Toolkit and the MATLAB MCP Server and how to add skills to your agent.
To install, update, or uninstall the Simulink Agentic Toolkit and MATLAB MCP Server together, use the Agentic Toolkit Installer. Follow the installation instructions in the repository. The installer downloads the toolkit and MATLAB MCP Server, installs the required MATLAB toolboxes, and configures the MCP server and skills for your agent.
When you use the installer, you do not need to set up the toolkit for each MATLAB session. The toolkit is automatically available on the MATLAB path, and agents can connect to MATLAB automatically. To use an existing MATLAB session and retain its workspace and loaded models, run shareMATLABSession in that session.
Existing users: If you previously set up the toolkit by using
setupAgenticToolkitor the earlier agent-driven workflow, the installer detects the previous installation and prompts you to remove it. You no longer need to runsatk_initialize. Removesatk_initializefrom yourstartup.mfile. For more information, see Migrate from a Previous Installation.
To check your installation, run this in MATLAB:
satk_doctor
satk_doctor checks the toolkit's MATLAB tools, the MATLAB path, and MATLAB session sharing. To check installed versions, configured agents, and the MCP server, run agentic-toolkit-installer status in a terminal. Confirm that your agent lists the Simulink Agentic Toolkit skills. For example, in Claude Code, use the /skills command.
Then, open a Simulink model. You can use your own model or open an example model.
openExample('simulink_general/sldemo_househeatExample')
This command opens the shipped example model sldemo_househeat. Ask your agent:
Describe the structure of the currently open model.
For troubleshooting, see Configuration and Troubleshooting.
Use satk.Configuration.setToolboxes to activate pre-built knowledge bases for installed MathWorks toolboxes:
satk.Configuration.setToolboxes('all') % Activate all installed toolbox KBs
satk.Configuration.setToolboxes({'Aerospace Blockset', 'Simscape'}) % Activate specific toolboxes by name
satk.Configuration.setToolboxes('none') % Deactivate all toolbox KBs
satk.Configuration.setToolboxes('Simscape', Mode="add") % Keep the active toolbox KBs and add one
satk.Configuration.setToolboxes('Simscape', Mode="remove") % Deactivate just this toolbox
By default (Mode="replace"), the toolboxes you list become the only active ones.
To use your own custom Simulink block libraries with the toolkit, register them in MATLAB once:
satk.Configuration.setCustomLibraries("C:\path\to\customLibs")
This declares your custom libraries. By default (GenerateKB=false), the toolkit does not build the knowledge base immediately. Instead, the agent indexes the libraries into a knowledge base on the next model-building task or when you invoke the setup-custom-libraries skill. Indexing takes about 3–5 minutes and enables the agent to use custom blocks alongside built-in ones.
Each entry is either a folder, which registers every .slx and .mdl file in
it, or the path to a single library file. To register more than one entry, pass
a string array or a cell array:
% Multiple folders
satk.Configuration.setCustomLibraries(["C:\path\to\motorLibs", "C:\path\to\sensorLibs"])
% Individual library files
satk.Configuration.setCustomLibraries(["C:\libs\motorLib.slx", "C:\libs\sensorLib.slx"])
Each call replaces the full set of registered custom libraries instead of adding to it, so list every library that you want in a single call.
setCustomLibraries accepts the following options:
% Build the knowledge base deterministically from block metadata present in the libraries.
satk.Configuration.setCustomLibraries("C:\path\to\customLibs", GenerateKB=true)
% Choose where the KB and configuration folder is written.
% Omitted -> MATLAB prefdir (default): per-user, global, paths stored absolute.
% <dir> -> an existing directory: library paths on the same drive are
% stored relative to this root (so the .satk folder can be
% committed and shared); paths on a different drive are stored
% absolute.
satk.Configuration.setCustomLibraries("libs", Location="C:\repo\myProject")
When you register custom libraries with a Location, activating toolbox
knowledge bases with setToolboxes writes them into that same .satk folder.
If you activate toolbox KBs globally first and later register custom
libraries with a Location, the toolkit automatically moves the toolbox KBs
alongside the custom libraries.
The agent finds blocks through the knowledge base (KB), markdown pages in the OKF format at .satk/library-kg/. The toolkit generates the pages: setToolboxes adds toolbox pages, and setCustomLibraries registers your custom libraries.
Maintain the Knowledge Base with satk.Configuration. All methods act on the effective KB; pass Location="global", "project", or a folder to target a specific one.
| Task | Method | Description |
|---|---|---|
| Read | listPages |
Table of pages with ID, type, title, description, tags, and status. Filter by folder (Under=), page type (Type=), or tag (Tag=). |
getPage |
Return one page: its ID, path, frontmatter, and markdown body. | |
getBacklinks |
Return the IDs of the pages that link to a page. | |
listBlocks |
Table of blocks with each block's library, category, and description, and whether you set that description yourself. Filter by library (Library=) or category (Category=). |
|
getBlock |
Look up a block by its display name or ReferenceBlock. |
|
| Curate blocks | setBlockDescription |
Set a block's description and regenerate its page. |
setBlockCategory |
Move blocks to a category, creating the category if it is new, and regenerate. | |
| Edit pages | addPage |
Add a page, such as a guide or a new category page. OnExist= sets what happens if the page already exists: "error" (default), "skip", "update" (merge the fields you pass), or "replace" (overwrite the page). |
addPages |
Add several pages from a JSON manifest and report a result for each entry. Accepts the same OnExist= option. |
|
updatePage |
Change a page's frontmatter (status, title, description, tags) or its body. | |
removePage |
Remove a page and return the pages that still link to it. A removed generated page stays removed when you regenerate. | |
renamePage |
Rename a page and rewrite the links to it. Renaming a generated category page also renames the c |