Agent skill

Matlab Upgrade Mex Ic

by matlab in matlab/matlab-agentic-toolkit

Upgrade C, C++, and Fortran MEX source files from the Separate Complex (SC) API to the Interleaved Complex (IC) API.

Custom licenceAuto-check passed

Install Matlab Upgrade Mex Ic

skills CLI
$ npx skills add matlab/matlab-agentic-toolkit --skill matlab-upgrade-mex-ic -a claude-code

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

GitHub CLI
$ gh skill install matlab/matlab-agentic-toolkit matlab-upgrade-mex-ic --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/matlab-external-language-interfaces/matlab-upgrade-mex-ic .claude/skills/matlab-upgrade-mex-ic && 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-upgrade-mex-ic
GitHub stars
1.1k
Token cost
~4.9k tokens
SKILL.md length
1,955 words
Files
4 (incl. references)
Skills in repo
151
Repo updated
First seen
Licence
Custom licence

At a glance

Upgrade C, C++, and Fortran MEX source files from the Separate Complex (SC) API to the Interleaved Complex (IC) API.

  • Works in 7 steps: Pre-Upgrade Verification → Output File Decision → Decision Point — IC-Only or SC/IC Guarded? → …
  • Converting mxGetPr/mxGetPi to mxGetComplexDoubles
  • SKILL.md covers When to Use, When NOT to Use, Workflow and Performance Benefits of IC…, plus 3 more sections
  • Calls git

What it does

Matlab Upgrade Mex Ic is an agent skill from matlab/matlab-agentic-toolkit. Upgrade C, C++, and Fortran MEX source files from the Separate Complex (SC) API to the Interleaved Complex (IC) API. Use when converting mxGetPr/mxGetPi to mxGetComplexDoubles, migrating MEX files to -R2018a, adding MXHASINTERLEAVEDCOMPLEX guards for SC/IC guarded builds, or modernizing legacy MEX code that uses mxGetData/mxSetData/mxGetImagData/mxSetImagData. Covers C (.c), C++ (.cpp, .cxx), and Fortran (.F, .f90) MEX functions. Triggers on: interleaved complex, IC MEX, mex upgrade, mex migration, separate…

Its SKILL.md is about 4.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `manifest.yaml`, `references/api-mappings.md` and `references/pitfalls.md`).

It works with 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

  • Converting mxGetPr/mxGetPi to mxGetComplexDoubles
  • Migrating MEX files to -R2018a
  • Adding MXHASINTERLEAVEDCOMPLEX guards for SC/IC guarded builds
  • Modernizing legacy MEX code that uses mxGetData/mxSetData/mxGetImagData/mxSetImagData

Example prompts

  • “/matlab-upgrade-mex-ic”

Workflow steps

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

  1. Pre-Upgrade Verification
  2. Output File Decision
  3. Decision Point — IC-Only or SC/IC Guarded?
  4. Iterative Refactoring
  5. Build
  6. Verify
  7. Document

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

    Shell commands in SKILL.md call:

    • git

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

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    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 Upgrade Mex Ic loads about 4.9k tokens when it runs, and up to ~8.6k if it reads all its reference files. Until then it costs about 184 tokens; SKILL.md has 1,955 words of instructions outside code blocks.

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

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,955 words (~4,858 tokens).

“Convert C, C++, and Fortran MEX source files from the Separate Complex (SC) API to the Interleaved Complex (IC) API, following the MathWorks upgrade workflow with guardrails for SC/IC guarded builds using MX_HAS_INTERLEAVED_COMPLEX, required vs recommended changes, and verification.”

— opening of SKILL.md by matlab, Custom licence
name
matlab-upgrade-mex-ic
license
https://www.mathworks.com/content/dam/mathworks/license/pmrl/license.md
metadata.author
MathWorks
metadata.version
1.0

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (references) in skills-catalog/matlab-external-language-interfaces/matlab-upgrade-mex-ic of matlab/matlab-agentic-toolkit.

  • SKILL.md
  • manifest.yaml
  • references/api-mappings.md
  • references/pitfalls.md

Open the folder on GitHubat commit 69e71df

Compare with similar skills

Matlab Upgrade Mex Ic 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 Upgrade Mex Ic compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Matlab Upgrade Mex Ic this skillmatlab/matlab-agentic-toolkit1.1k—~4.9kAutomated safety check: PassCustom licence
Paddle BuildPaddlePaddle/Paddle24k—~1kAutomated safety check: PassApache-2.0
Fory Releaseapache/fory4.6k—~2.9kAutomated safety check: PassApache-2.0
ONNX Runtime Shape Inference Safety Auditmicrosoft/onnxruntime22k—~3.3kAutomated safety check: PassMIT
Code Audit3stoneBrother/code-audit8921 repos~2.7kAutomated safety check: PassNone
Qt C++ Code Reviewx-tools-author/x-tools1.1k2 repos~4.3kAutomated safety check: PassBSD-3-Clause

Similar skills

  • Paddle Build

    PaddlePaddle/Paddle

    A skill your agent uses when needing to compile, rebuild, or install Paddle from source after code changes.

    24k GitHub stars~1k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Fory Release

    apache/fory

    Prepare an Apache Fory release candidate from a clean release branch, including the version bump, RC tag, JVM staging, ASF source artifacts, SVN upload, and vote email.

    4.6k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Official

    Finds and fixes out-of-range output writes in ONNX Runtime operator shape-inference functions where a getNumOutputs guard admits too few outputs.

    22k GitHub stars~3.3k tokensUpdated today
    SecurityAuto-check passed
  • Code Audit

    3stoneBrother/code-audit

    Professional code security audit skill covering 55+ vulnerability types.

    892 GitHub starsUsed in 1 repo~2.7k tokens
    SecurityAuto-check passed
  • Qt C++ Code Review

    x-tools-author/x-tools

    Read-only review of Qt6 C++ code that combines a deterministic lint script with six parallel analysis agents and reports only high-confidence issues.

    1.1k GitHub starsUsed in 2 repos~4.3k tokens
    DevelopmentAuto-check passed
  • Leetcuda Cpp Kernel

    xlite-dev/LeetCUDA

    LeetCUDA 中文技术书(584 页,XeLaTeX 源)按需查阅 skill——写、优化、调试或 review CUDA C++/PTX kernel 时的权威参考路由层。当任务涉及:GPU 架构/Roofline/ occupancy、向量化与 coalescing、warp/block reduce、softmax(online/LSE merge)、…

    12k GitHub stars~3.5k tokensUpdated 10 days 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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    Auto-check passed

Works with

Questions about Matlab Upgrade Mex Ic

What does Matlab Upgrade Mex Ic do?

Upgrade C, C++, and Fortran MEX source files from the Separate Complex (SC) API to the Interleaved Complex (IC) API. Matlab Upgrade Mex Ic is an agent skill from matlab/matlab-agentic-toolkit. Upgrade C, C++, and Fortran MEX source files from the Separate Complex (SC) API to the Interleaved Complex (IC) API.

When should I use Matlab Upgrade Mex Ic?

Matlab Upgrade Mex Ic fits situations like: converting mxGetPr/mxGetPi to mxGetComplexDoubles; migrating MEX files to -R2018a; adding MXHASINTERLEAVEDCOMPLEX guards for SC/IC guarded builds; modernizing legacy MEX code that uses mxGetData/mxSetData/mxGetImagData/mxSetImagData.

How do I install Matlab Upgrade Mex Ic in Claude Code?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-upgrade-mex-ic -a claude-code`. Or copy the skill folder (skills-catalog/matlab-external-language-interfaces/matlab-upgrade-mex-ic in matlab/matlab-agentic-toolkit) into .claude/skills/matlab-upgrade-mex-ic in your project. Claude Code loads it when a task matches its description.

How do I install Matlab Upgrade Mex Ic in Codex?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-upgrade-mex-ic -a codex`. Or copy the skill folder (skills-catalog/matlab-external-language-interfaces/matlab-upgrade-mex-ic in matlab/matlab-agentic-toolkit) into .agents/skills/matlab-upgrade-mex-ic in your project. Codex loads it when a task matches its description.

Can I use Matlab Upgrade Mex Ic 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-upgrade-mex-ic -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-upgrade-mex-ic, .gemini/skills/matlab-upgrade-mex-ic, .github/skills/matlab-upgrade-mex-ic and .opencode/skills/matlab-upgrade-mex-ic in your project.

What does Matlab Upgrade Mex Ic need to run?

Going by SKILL.md and its folder, Matlab Upgrade Mex Ic needs the command-line tools its instructions call (git).

Does Matlab Upgrade Mex Ic access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Matlab Upgrade Mex Ic 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 Upgrade Mex Ic use?

Matlab Upgrade Mex Ic 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 Upgrade Mex Ic use?

About 4.9k tokens (SKILL.md is roughly 19k 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 3.8k tokens, read only when the agent opens those files.

What are the alternatives to Matlab Upgrade Mex Ic?

Skills that share tags, products or a category with Matlab Upgrade Mex Ic: Paddle Build (PaddlePaddle/Paddle, 24k stars), Fory Release (apache/fory, 4.6k stars), ONNX Runtime Shape Inference Safety Audit (microsoft/onnxruntime, 22k stars) and Code Audit (3stoneBrother/code-audit, 892 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Matlab Upgrade Mex Ic?

matlab (a GitHub organization) maintains it in matlab/matlab-agentic-toolkit, which has 1,147 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.