matlab-control-optimization

matlab-control-optimization is a skill for Claude Code, Codex from wzyn20051216/matlab-agent-skills. It costs 64 tokens per session (859 once invoked), scanned A, original, MIT.

A MATLAB workflow for designing and testing control systems. Control systems use controllers to make machines or processes follow desired behaviour, such as a target speed or position.

In plain words
What is it for?
Use it for transfer functions, state-space models, system identification, controller tuning, robust control, model-predictive control, and optimisation. It includes time-response, frequency-response, constraint, objective, and fit checks.
Why use it?
It structures the work from defining the system and constraints through tuning, optimisation, and numerical checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for transfer functions, state-space models, system identification, controller tuning, robust control, model-predictive control, and optimisation. It includes time-response, frequency-response, constraint, objective, and fit checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wzyn20051216/matlab-agent-skills/matlab-control-optimization
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 wzyn20051216/matlab-agent-skills --skill matlab-control-optimization
Clone the repo
git clone --depth 1 https://github.com/wzyn20051216/matlab-agent-skills

Made for: Claude Code, Codex.

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 matlab-control-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/wzyn20051216/matlab-agent-skills/matlab-control-optimization/github.svg)](https://agentmods.dev/skills/wzyn20051216/matlab-agent-skills/matlab-control-optimization)
Your own site
<a href="https://agentmods.dev/skills/wzyn20051216/matlab-agent-skills/matlab-control-optimization"><img src="https://agentmods.dev/badge/skills/wzyn20051216/matlab-agent-skills/matlab-control-optimization/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 matlab-control-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/wzyn20051216/matlab-agent-skills/matlab-control-optimization"><img src="https://agentmods.dev/badge/skills/wzyn20051216/matlab-agent-skills/matlab-control-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 859 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.
Origin original 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.00064 $0.00859
Opus 5.5 $0.00026 $0.00344
Sonnet 5.5 $0.00013 $0.00172
Haiku 4.5 $0.00006 $0.00086

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

Security

Grade A, and why

matlab-control-optimization 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 4d 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/matlab-control-optimization/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MATLAB Control Optimization

Use this skill for control design and optimization workflows.

Workflow

  1. Define plant model, units, sample time, constraints, and performance goals.
  2. Confirm required products: Control System Toolbox, System Identification Toolbox, Optimization Toolbox, Robust Control Toolbox, or MPC Toolbox.
  3. Build an executable baseline model.
  4. Tune or optimize with explicit objective and constraints.
  5. Validate time-domain, frequency-domain, and robustness behavior when applicable.
  6. Save plots, tuned parameters, and numerical metrics.

Preferred APIs

  • tf, ss, zpk, c2d, d2c
  • step, lsim, bode, margin, bandwidth
  • pidtune, systune, hinfsyn, musyn when licensed
  • iddata, tfest, ssest, compare
  • optimproblem, fmincon, lsqnonlin, ga, particleswarm

Validation Metrics

Use checks such as:

  • Rise time, settling time, overshoot.
  • Gain margin, phase margin, bandwidth.
  • Constraint violation count.
  • Objective value and solver exit flag.
  • Identification fit percentage on held-out data.

Risk Checklist

Watch for:

  • Continuous/discrete sample-time mismatch.
  • Unscaled optimization variables.
  • Local minima and solver sensitivity.
  • Hidden actuator saturation.
  • Controller instability outside nominal operating points.

Margins Belong To Crossings, Not To Loops

r = mas_ctrl_analyze(L);            % L = tf/ss/zpk; r.crossings has EVERY crossing
r.pmWorst, r.gmWorst, r.verdict     % worst over all of them, and a verdict
r = mas_ctrl_pid_design(P, struct('pmTarget',50,'gmTarget',6));
r = mas_ctrl_aw_sim(P, cfg, opts);  % saturation + 'none'|'clamp'|'backcalc'

margin(L) returns one number. A loop with a resonance crosses 0 dB twice, and the first crossing can read +83 deg while the second reads -95 deg -- measured, see the C3 case. A margin report that keeps the first crossing calls that loop healthy and the closed loop oscillates. mas_ctrl_analyze reports every crossing, takes the worst, and returns UNSTABLE when a crossing has a negative margin even if all poles are in the LHP.

Read the full file on GitHub · 78 lines

Files

What ships with it

4 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. 4d ago Changed · +32 lines · -4 tokens per session f799798f99fb
  2. 1mo ago First seen · 46 lines · 68 tokens per session scan A 00e4132633f7

Subscribe to this mod's changes

matlab-control-optimization is a skill published in the GitHub repository wzyn20051216/matlab-agent-skills (27 stars, last pushed 5d ago), licensed MIT. It adds 64 tokens to every session and 859 once invoked, about $0.0003 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

manim-video

Create mathematical, geometric and scientific videos with Manim Community in Python. Use when animating equations, graphs, transformations or educational explanations; distinguish Manim Community from ManimGL and deliver a rendered, inspected video.

WrongStack/WrongStack · 47 tokens

ml-experiment-tracker

Plan reproducible ML experiment runs with explicit parameters, metrics, and artifacts. Use before model training to standardize tracking-ready experiment definitions.

0x-Professor/Agent-Skills-Hub · 33 tokens

nature-statistics

A guide for checking or writing how statistical analyses are reported in scientific papers submitted to Nature or similar high-impact journals.

Yuan1z0825/nature-skills · 53 tokens

nature-paper-trans

A workflow for translating selected pages or a complete English research-paper PDF into a simplified-Chinese, image-based PDF. bioRxiv is not mentioned in the provided details; the workflow applies to research-paper PDFs generally.

Yuan1z0825/nature-skills · 68 tokens

nature-citation

A citation-writing workflow for adding references from selected Nature Portfolio, AAAS Science, and Cell Press journals to manuscript text. It breaks long passages into smaller claims and matches them with eligible papers.

Yuan1z0825/nature-skills · 58 tokens

cuopt-numerical-optimization-formulation

LP, MILP, QP — concepts, problem-text parsing, and formulation patterns (parameters, constraints, decisions, objective). Concepts only; no API.

NVIDIA/skills · 42 tokens