Agent skill

Matlab Deploy AI Model

by matlab in matlab/matlab-agentic-toolkit

Generate C/C++ or CUDA code from an AI model (PyTorch, LiteRT) using MATLAB Coder or GPU Coder.

Custom licenceAuto-check passedAI & LLM Engineering

Install Matlab Deploy AI Model

skills CLI
$ npx skills add matlab/matlab-agentic-toolkit --skill matlab-deploy-ai-model -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install matlab/matlab-agentic-toolkit matlab-deploy-ai-model --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/matlab/matlab-agentic-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills-catalog/code-generation/matlab-deploy-ai-model .claude/skills/matlab-deploy-ai-model && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
matlab-deploy-ai-model
GitHub stars
1.1k
Token cost
~2.8k tokens
SKILL.md length
1,085 words
Files
16 (incl. references)
Skills in repo
151
Repo updated
First seen
Licence
Custom licence

At a glance

Generate C/C++ or CUDA code from an AI model (PyTorch, LiteRT) using MATLAB Coder or GPU Coder.

  • Works in 8 steps: Load and Inspect → Write Entry-Point Function → Verify Numerics → …
  • The user wants to integrate an AI model into an application with code generation as the end goal — generating MEX
  • SKILL.md covers When to Use, When NOT to Use, Supported Frameworks and Generic Workflow, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Matlab Deploy AI Model is an agent skill from matlab/matlab-agentic-toolkit. Generate C/C++ or CUDA code from an AI model (PyTorch, LiteRT) using MATLAB Coder or GPU Coder. Use when the user wants to integrate an AI model into an application with code generation as the end goal — generating MEX, CUDA MEX, static library, dynamic library, or executable — or using the model in Simulink for simulation and code generation. Covers PyTorch ExportedProgram (.pt2) via loadPyTorchExportedProgram and LiteRT (.tflite) via loadLiteRTModel (R2026a+). Keywords: PyTorch, torch, .pt2, ExportedProgram…

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 16 other files, including reference files (for example `manifest.yaml`, `references/codegen-workflow.md` and `references/dnn-codegen-options.md`).

It sits in AI & LLM Engineering, covering Deep learning and Project scaffolding. It works with TensorFlow, CUDA, PyTorch and C++. The repository describes itself as: The MATLAB Agentic Toolkit brings proven MATLAB capabilities to AI agents, making engineering and scientific workflows agent-ready.

When your agent uses it

  • The user wants to integrate an AI model into an application with code generation as the end goal — generating MEX
  • Dynamic library
  • Using the model in Simulink for simulation and code generation

Example prompts

  • “/matlab-deploy-ai-model”

Requirements

  • Python 3

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Load and Inspect
  2. Write Entry-Point Function
  3. Verify Numerics
  4. Generate MEX (First!)
  5. Verify MEX Output
  6. Generate Library/Executable
  7. Use in Simulink
  8. Deploy to Hardware (Optional — requires Embedded Coder)

What it can do on your machine

Read from SKILL.md and the folder at commit 69e71df. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are matlab).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Matlab Deploy AI Model loads about 2.8k tokens when it runs, and up to ~23k if it reads all its reference files. Until then it costs about 195 tokens; SKILL.md has 1,085 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~195
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~23k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,085 words (~2,758 tokens).

“Generate deployable C/C++ or CUDA code from an AI model using MATLAB Coder or GPU Coder. The workflow follows a common pattern regardless of model framework: load, inspect, write entry-point, generate MEX, verify, then generate production code.”

— opening of SKILL.md by matlab, Custom licence
name
matlab-deploy-ai-model
license
https://www.mathworks.com/content/dam/mathworks/license/pmrl/license.md
metadata.author
MathWorks
metadata.version
1.2

Read the full SKILL.md on GitHub

Files

SKILL.md and 15 other files (references) in skills-catalog/code-generation/matlab-deploy-ai-model of matlab/matlab-agentic-toolkit.

  • SKILL.md
  • manifest.yaml
  • references/codegen-workflow.md
  • references/dnn-codegen-options.md
  • references/export-pytorch-models.md
  • references/litert-numeric-verification.md
  • references/litert-workflow.md
  • references/pytorch-api-reference.md
  • references/pytorch-data-layout.md
  • references/pytorch-export-gotchas.md
  • references/pytorch-export-patterns.md
  • references/pytorch-numeric-verification.md
  • references/pytorch-supported-models.md
  • references/pytorch-workflow.md
  • references/simulink-workflow.md
  • references/tensorflow-to-litert-conversion.md

Open the folder on GitHubat commit 69e71df

Compare with similar skills

Matlab Deploy AI Model next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Matlab Deploy AI Model compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Matlab Deploy AI Model this skillmatlab/matlab-agentic-toolkit1.1k—~2.8kAutomated safety check: PassCustom licence
Embedded AI Deploymentmatlab/agent-skills-playground183—~3.4kAutomated safety check: PassCustom licence
Ako4allTongmingLAIC/AKO4ALL369—~4kAutomated safety check: PassMIT
Paddle Op DevPaddlePaddle/Paddle24k—~1.3kAutomated safety check: PassApache-2.0
At Dispatch V2intel/torch-xpu-ops1153 repos~2.2kAutomated safety check: PassApache-2.0
Extract Xpu Kernel Asmintel/torch-xpu-ops115—~2.9kAutomated safety check: PassApache-2.0

Similar skills

  • Embedded AI Deployment

    matlab/agent-skills-playground

    Deploy AI models to embedded hardware using MathWorks tools (MATLAB, Simulink, Embedded Coder).

    183 GitHub stars~3.4k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Ako4all

    TongmingLAIC/AKO4ALL

    Drive an agentic loop that iteratively optimizes a GPU kernel for maximum speedup.

    369 GitHub stars~4k tokensUpdated 24 days ago
    AI & LLM EngineeringAuto-check passed
  • Paddle Op Dev

    PaddlePaddle/Paddle

    PaddlePaddle (飞桨) C++ 算子开发指南。提供从 YAML 配置、InferMeta 函数、Kernel 实现、Python API 封装、单元测试到编译验证的完整算子开发流程指导。在以下场景使用此 skill:(1) 为 Paddle 框架新增 C++ 算子 (2) 修改或调试已有 Paddle 算子 (3) 编写算子的 YAML…

    24k GitHub stars~1.3k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • At Dispatch V2

    intel/torch-xpu-ops

    Official

    Convert PyTorch ATDISPATCH macros to ATDISPATCHV2 format in ATen C++ code.

    115 GitHub starsUsed in 3 repos~2.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Extract Xpu Kernel Asm

    intel/torch-xpu-ops

    Official

    Extract Intel GPU ISA (assembly) from any XPU kernel. An agent skill from intel/torch-xpu-ops.

    115 GitHub stars~2.9k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Torch Tensorrt

    VectorSpaceLab/AREX-Skill

    A skill your agent uses for Torch-TensorRT tasks: compiling PyTorch models with TensorRT, dynamic-shape/export workflows, runtime optimization, Triton/C++/distributed deployment, debugging…

    330 GitHub stars~1.5k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed

More from matlab/matlab-agentic-toolkit

All 151 skills in this repo
  • Matlab Analyze Time Frequency Content

    matlab/matlab-agentic-toolkit

    Perform time-frequency analysis in MATLAB using CWT, STFT, synchrosqueezing, reassignment, wavelet coherence, cross spectrogram, EMD/VMD, multiresolution analysis, and time-frequency filtering.

    1.1k GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Matlab Design Radar

    matlab/matlab-agentic-toolkit

    Launch and control the MATLAB Radar Designer app programmatically via MCP.

    1.1k GitHub stars~4.8k tokensUpdated today
    Auto-check passed
  • Matlab Engineer Tabular Features

    matlab/matlab-agentic-toolkit

    A skill your agent uses when engineering or selecting the best features for single-response classification or regression in MATLAB, whatever the data's modality — for non-tabular data it routes…

    1.1k GitHub stars~4.8k tokensUpdated today
    Auto-check passed
  • Matlab Enhance Camera Image

    matlab/matlab-agentic-toolkit

    Read BEFORE troubleshooting or enhancing camera image quality.

    1.1k GitHub stars~3.8k tokensUpdated today
    Auto-check passed
  • Matlab Import External AI Model

    matlab/matlab-agentic-toolkit

    Import PyTorch, ONNX, or Keras 3 / TensorFlow 2.16+ deep learning models into MATLAB as dlnetwork objects.

    1.1k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Matlab Modernize Daq

    matlab/matlab-agentic-toolkit

    Port MATLAB Data Acquisition Toolbox code from the discouraged (legacy) session-based interface (daq.createSession, addAnalogInputChannel, startBackground, DataAvailable listeners, queueOutputData…

    1.1k GitHub stars~4.5k tokensUpdated today
    Auto-check passed

Questions about Matlab Deploy AI Model

What does Matlab Deploy AI Model do?

Generate C/C++ or CUDA code from an AI model (PyTorch, LiteRT) using MATLAB Coder or GPU Coder. Matlab Deploy AI Model is an agent skill from matlab/matlab-agentic-toolkit. Generate C/C++ or CUDA code from an AI model (PyTorch, LiteRT) using MATLAB Coder or GPU Coder.

When should I use Matlab Deploy AI Model?

Matlab Deploy AI Model fits situations like: the user wants to integrate an AI model into an application with code generation as the end goal — generating MEX; dynamic library; using the model in Simulink for simulation and code generation.

How do I install Matlab Deploy AI Model in Claude Code?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-deploy-ai-model -a claude-code`. Or copy the skill folder (skills-catalog/code-generation/matlab-deploy-ai-model in matlab/matlab-agentic-toolkit) into .claude/skills/matlab-deploy-ai-model in your project. Claude Code loads it when a task matches its description.

How do I install Matlab Deploy AI Model in Codex?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-deploy-ai-model -a codex`. Or copy the skill folder (skills-catalog/code-generation/matlab-deploy-ai-model in matlab/matlab-agentic-toolkit) into .agents/skills/matlab-deploy-ai-model in your project. Codex loads it when a task matches its description.

Can I use Matlab Deploy AI Model in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-deploy-ai-model -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/matlab-deploy-ai-model, .gemini/skills/matlab-deploy-ai-model, .github/skills/matlab-deploy-ai-model and .opencode/skills/matlab-deploy-ai-model in your project.

What does Matlab Deploy AI Model need to run?

SKILL.md names no scripts, command-line tools or credentials: Matlab Deploy AI Model is instructions for the agent only. Our summary lists: Python 3.

Does Matlab Deploy AI Model access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Matlab Deploy AI Model safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Matlab Deploy AI Model use?

Matlab Deploy AI Model has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Matlab Deploy AI Model use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 21k tokens, read only when the agent opens those files.

What are the alternatives to Matlab Deploy AI Model?

Skills that share tags, products or a category with Matlab Deploy AI Model: Embedded AI Deployment (matlab/agent-skills-playground, 183 stars), Ako4all (TongmingLAIC/AKO4ALL, 369 stars), Paddle Op Dev (PaddlePaddle/Paddle, 24k stars) and At Dispatch V2 (intel/torch-xpu-ops, 115 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Matlab Deploy AI Model?

matlab (a GitHub organization) maintains it in matlab/matlab-agentic-toolkit, which has 1,144 GitHub stars. The repository holds 151 skills in this directory. The repository was last updated on October 8, 2026.

Source: matlab/matlab-agentic-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.