simulink-use-c-function-block

simulink-use-c-function-block is a skill for Claude Code, Codex from matlab/simulink-agentic-toolkit. It costs 137 tokens per session (2,251 once invoked), scanned A, original, no licence file.

A guide for connecting existing C or C++ code to Simulink, a tool for modeling and simulating systems, through C Function blocks.

In plain words
What is it for?
Use it to programmatically set up Simulink C Function blocks and call C or C++ code from a model.
Why use it?
It removes the need to configure these blocks manually when wrapping legacy, custom, or library code.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to programmatically set up Simulink C Function blocks and call C or C++ code from a model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/matlab/simulink-agentic-toolkit/simulink-use-c-function-block
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add matlab/simulink-agentic-toolkit --skill simulink-use-c-function-block
Clone the repo
git clone --depth 1 https://github.com/matlab/simulink-agentic-toolkit

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin simulink-modeling — /plugin install simulink-modeling after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for simulink-use-c-function-block

README.md
[![agentmods](https://agentmods.dev/badge/skills/matlab/simulink-agentic-toolkit/simulink-use-c-function-block/github.svg)](https://agentmods.dev/skills/matlab/simulink-agentic-toolkit/simulink-use-c-function-block)
Your own site
<a href="https://agentmods.dev/skills/matlab/simulink-agentic-toolkit/simulink-use-c-function-block"><img src="https://agentmods.dev/badge/skills/matlab/simulink-agentic-toolkit/simulink-use-c-function-block/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for simulink-use-c-function-block

Your own site · 80×15
<a href="https://agentmods.dev/skills/matlab/simulink-agentic-toolkit/simulink-use-c-function-block"><img src="https://agentmods.dev/badge/skills/matlab/simulink-agentic-toolkit/simulink-use-c-function-block.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,251 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00137 $0.02251
Opus 5.5 $0.00055 $0.00900
Sonnet 5.5 $0.00027 $0.00450
Haiku 4.5 $0.00014 $0.00225

Measured 1mo ago against content hash dba1bd11205c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

simulink-use-c-function-block scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills-catalog/simulink-modeling/simulink-use-c-function-block/SKILL.md · 185 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 185 lines · 137 tokens per session scan A dba1bd11205c

Subscribe to this mod's changes

simulink-use-c-function-block is a skill published in the GitHub repository matlab/simulink-agentic-toolkit (1,241 stars, last pushed 5d ago), with no licence file. It adds 137 tokens to every session and 2,251 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

matlab-upgrade-mex-ic

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…

matlab/matlab-agentic-toolkit · 222 tokens

matlab-generate-code

Generate, verify, refine, and accelerate C/C++ or CUDA code from MATLAB with MATLAB Coder, Embedded Coder, GPU Coder, or MATLAB Test. Also covers writing codegen-ready MATLAB code: language constraints, coder. directives, and optimization patterns. Triggers on: codegen, MEX, deploy MATLAB as C/C++, GPU Coder…

matlab/matlab-agentic-toolkit · 219 tokens

matlab-validate-function-arguments

Use when writing MATLAB functions with arguments blocks — repeating arguments (arguments (Repeating)), .?ClassName property import in constructors, name-value forwarding with namedargs2cell, or migrating from inputParser or validateattributes. Also when reviewing signatures for implicit-conversion pitfalls (size…

matlab/matlab-agentic-toolkit · 199 tokens

matlab-integrate-pytorch-vision

Creates MATLAB interfaces to Python image processing and computer vision models from GitHub repositories or pip-installable packages using MPyReq. Use when asked to interface MATLAB with a Python CV/image model (segmentation, depth estimation, object detection, image generation, super-resolution, etc.), given a GitHub…

matlab/matlab-agentic-toolkit · 132 tokens

matlab-modernize-code

Modernize removed or discouraged MATLAB functions and patterns. Use when the checkmatlabcode MCP tool reports that a function "is not recommended", "will be removed in a future release", or "has been removed" — at any severity (info, warning, or error) — when migrating legacy code, or when replacing removed or…

matlab/matlab-agentic-toolkit · 139 tokens

matlab-call-python

Call Python libraries from MATLAB using the py. interface, pyrun, pyrunfile, or pyenv. Use when writing or executing MATLAB code that calls Python functions or passes data between MATLAB and Python. REQUIRED when triaging Python errors from MATLAB (ModuleNotFoundError, ImportError, "Unable to resolve the name 'py.'").…

matlab/matlab-agentic-toolkit · 96 tokens