Agent skill

Simulink Optimizing Embedded Code

by matlab in matlab/simulink-agentic-toolkit

Optimizes Simulink models for Embedded Coder generated code.

Custom licenceAuto-check passedDevOps & Cloud

Install Simulink Optimizing Embedded Code

skills CLI
$ npx skills add matlab/simulink-agentic-toolkit --skill simulink-optimizing-embedded-code -a claude-code

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

GitHub CLI
$ gh skill install matlab/simulink-agentic-toolkit simulink-optimizing-embedded-code --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/simulink-agentic-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills-catalog/code-generation/simulink-optimizing-embedded-code .claude/skills/simulink-optimizing-embedded-code && 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
simulink-optimizing-embedded-code
GitHub stars
1.2k
Token cost
~4.5k tokens
SKILL.md length
1,592 words
Files
40 (incl. scripts, references, assets)
Skills in repo
36
Repo updated
First seen
Licence
Custom licence

At a glance

Optimizes Simulink models for Embedded Coder generated code.

  • Works in 3 steps: Detect open model: None open: stop; one… → Check for state → Route
  • Asked to optimize
  • SKILL.md covers When to Use, When NOT to Use, Overall Workflow and First Action: Detect Model and…, plus 8 more sections
  • Calls git

What it does

Simulink Optimizing Embedded Code is an agent skill from matlab/simulink-agentic-toolkit. Optimizes Simulink models for Embedded Coder generated code. Use when asked to optimize or improve generated code, or reduce code metrics for a Simulink model. Targets: execution time, memory footprint (RAM, ROM, stack, data copies), code size, MISRA compliance, or any semantically similar generated-code metric. Works iteratively — measures baseline, suggests changes, applies, and re-measures to confirm improvement. Triggers can be prompts similar to: optimize generated code runtime, reduce runtime, shrink code…

Its SKILL.md is about 4.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 44 other files, including scripts, reference files and assets (for example `assets/file_token_registry.json`, `assets/optimization_preferences.yaml` and `assets/per-model-report-template.md`).

It sits in DevOps & Cloud. The repository describes itself as: The Simulink Agentic Toolkit gives your AI agent both the tools and the expertise to work effectively with Simulink and Model-Based Design.

When your agent uses it

  • Asked to optimize
  • Improve generated code
  • Reduce code metrics for a Simulink model
  • Can be prompts similar to: optimize generated code runtime

Example prompts

  • “Use the simulink-optimizing-embedded-code skill to optimiz Simulink models for Embedded Coder generated code”
  • “/simulink-optimizing-embedded-code”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Detect open model: None open: stop; one model: use it, derive from the model's file location; multiple: ask user.
  2. Check for state
  3. Route

What it can do on your machine

Read from SKILL.md and the folder at commit 455dded. 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

    Ships 1 file in scripts/, which the agent can run.

    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

Simulink Optimizing Embedded Code loads about 4.5k tokens when it runs, and up to ~36k if it reads all its reference files. Until then it costs about 217 tokens; SKILL.md has 1,592 words of instructions outside code blocks.

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

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); the scripts in this folder 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,592 words (~4,485 tokens).

“Iteratively improves generated C/C++ code from Simulink models by suggesting configuration, modeling, and architectural changes — then measuring the impact.”

— opening of SKILL.md by matlab, Custom licence
name
simulink-optimizing-embedded-code
license
https://www.mathworks.com/content/dam/mathworks/license/pmrl/license.md
metadata.author
MathWorks
metadata.version
2.0

Read the full SKILL.md on GitHub

Files

SKILL.md and 39 other files (scripts, references, assets) in skills-catalog/code-generation/simulink-optimizing-embedded-code of matlab/simulink-agentic-toolkit.

  • SKILL.md
  • assets/ecokg.enc
  • assets/file_token_registry.json
  • assets/optimization_preferences.yaml
  • assets/per-model-report-template.html
  • assets/per-model-report-template.md
  • manifest.yaml
  • references/evolutions-checkpoint.md
  • references/finalizing-results.md
  • references/gathering-requirements.md
  • references/measuring-model-metrics/configuring-code-profile/reference.md
  • references/measuring-model-metrics/reference.md
  • references/protocols/checkpointing-revert.md
  • references/protocols/correctness-gate.md
  • references/protocols/customer-extensions.md
  • references/protocols/goal-axis-gate.md
  • … and 24 more

Open the folder on GitHubat commit 455dded

Compare with similar skills

Simulink Optimizing Embedded Code 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.

Simulink Optimizing Embedded Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Simulink Optimizing Embedded Code this skillmatlab/simulink-agentic-toolkit1.2k—~4.5kAutomated safety check: PassCustom licence
Monitor CInrwl/nx29k5 repos~4.7kAutomated safety check: PassMIT
Terraform and OpenTofu Guideagentscope-ai/QwenPaw35k6 repos~4.2kAutomated safety check: PassApache-2.0
Vercel Optimize Auditvercel-labs/agent-skills32k8 repos~4.3kAutomated safety check: PassNone
Analyze GitHub Action Logswithastro/astro63k1 repos~1.3kAutomated safety check: PassCustom licence
Docs Learn PR Previewnetdata/netdata81k—~2kAutomated safety check: PassGPL-3.0

Similar skills

  • Monitor CI

    nrwl/nx

    Monitor Nx Cloud CI pipeline and handle self-healing fixes. An agent skill from nrwl/nx.

    29k GitHub starsUsed in 5 repos~4.7k tokens
    DevOps & CloudAuto-check passed
  • Terraform and OpenTofu Guide

    agentscope-ai/QwenPaw

    Guidance for writing and testing Terraform and OpenTofu code: module structure, naming, test approaches, CI/CD workflows, state handling and security scanning.

    35k GitHub starsUsed in 6 repos~4.2k tokens
    DevOps & CloudAuto-check passed
  • Vercel Optimize Audit

    vercel-labs/agent-skills

    Official

    Runs a metrics-first audit of a deployed Vercel project, gating investigations on real signals to produce ranked, citation-backed cost and performance recommendations.

    32k GitHub starsUsed in 8 repos~4.3k tokens
    DevOps & CloudAuto-check passed
  • Official

    Analyze recent GitHub Actions workflow runs to identify patterns, mistakes, and improvements.

    63k GitHub starsUsed in 1 repo~1.3k tokens
    DevOps & CloudAuto-check passed
  • Docs Learn PR Preview

    netdata/netdata

    Use only when the user explicitly asks to build, run, preview, inspect, or validate learn.netdata.cloud locally using the contents of a PR or documentation branch before merge.

    81k GitHub stars~2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Repo Mirror Sources

    netdata/netdata

    Inspect Netdata-org source checkouts under NETDATAREPOSDIR, or set up and synchronize that mirror when requested.

    81k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check: notes

More from matlab/simulink-agentic-toolkit

All 36 skills in this repo
  • Resolve Design Errors

    matlab/simulink-agentic-toolkit

    A skill your agent uses when asked to run Design Error Detection (quick defect scan), find design errors in a Simulink model, perform root cause analysis on DED findings, fix division-by-zero…

    1.2k GitHub stars~2.1k tokensUpdated 7 days ago
    Auto-check passed
  • Simscape Write Ssc

    matlab/simulink-agentic-toolkit

    A skill your agent uses when writing or editing Simscape Language (.ssc) source files — components, domains, or functions.

    1.2k GitHub stars~2.1k tokensUpdated 7 days ago
    Auto-check passed
  • Checking Model Compliance

    matlab/simulink-agentic-toolkit

    A skill your agent uses when the user asks to check Simulink model compliance against a standard (MISRA, MAB, JMAAB, ISO, DO, IEC, EN, CERT C/CWE, AUTOSAR, Simulink Code Inspector (SLCI)), wants to…

    1.2k GitHub stars~3k tokensUpdated 7 days ago
    Auto-check passed
  • Fix Sldv Incompatibility

    matlab/simulink-agentic-toolkit

    A skill your agent uses when a Simulink model is incompatible with Simulink Design Verifier (sldvcompat returns false, or an SLDV analysis errors out on an unsupported construct) and needs to be…

    1.2k GitHub stars~3.8k tokensUpdated 7 days ago
    Auto-check passed
  • Simulink Explain Missing Coverage

    matlab/simulink-agentic-toolkit

    A skill your agent uses when the user asks to summarize, or asks why Simulink Coverage objectives are missing, unsatisfied, or uncovered on a coverage result they already have — why specific…

    1.2k GitHub stars~3.2k tokensUpdated 7 days ago
    Auto-check passed
  • Generate Requirement Drafts

    matlab/simulink-agentic-toolkit

    Generates draft requirements from Simulink models. An agent skill from matlab/simulink-agentic-toolkit.

    1.2k GitHub stars~2.8k tokensUpdated 7 days ago
    Auto-check passed

Categories

Questions about Simulink Optimizing Embedded Code

What does Simulink Optimizing Embedded Code do?

Optimizes Simulink models for Embedded Coder generated code. Simulink Optimizing Embedded Code is an agent skill from matlab/simulink-agentic-toolkit. Optimizes Simulink models for Embedded Coder generated code.

When should I use Simulink Optimizing Embedded Code?

Simulink Optimizing Embedded Code fits situations like: asked to optimize; improve generated code; reduce code metrics for a Simulink model; can be prompts similar to: optimize generated code runtime.

How do I install Simulink Optimizing Embedded Code in Claude Code?

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

How do I install Simulink Optimizing Embedded Code in Codex?

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

Can I use Simulink Optimizing Embedded Code 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/simulink-agentic-toolkit --skill simulink-optimizing-embedded-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/simulink-optimizing-embedded-code, .gemini/skills/simulink-optimizing-embedded-code, .github/skills/simulink-optimizing-embedded-code and .opencode/skills/simulink-optimizing-embedded-code in your project.

What does Simulink Optimizing Embedded Code need to run?

Going by SKILL.md and its folder, Simulink Optimizing Embedded Code needs the command-line tools its instructions call (git).

Does Simulink Optimizing Embedded Code 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 Simulink Optimizing Embedded Code 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Simulink Optimizing Embedded Code use?

Simulink Optimizing Embedded Code 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 Simulink Optimizing Embedded Code use?

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

What are the alternatives to Simulink Optimizing Embedded Code?

Skills that share tags, products or a category with Simulink Optimizing Embedded Code: Monitor CI (nrwl/nx, 29k stars), Terraform and OpenTofu Guide (agentscope-ai/QwenPaw, 35k stars), Vercel Optimize Audit (vercel-labs/agent-skills, 32k stars) and Analyze GitHub Action Logs (withastro/astro, 63k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Simulink Optimizing Embedded Code?

matlab (a GitHub organization) maintains it in matlab/simulink-agentic-toolkit, which has 1,195 GitHub stars. The repository holds 36 skills in this directory. The repository was last updated on September 30, 2026.

Source: matlab/simulink-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.