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.
npx skills add wzyn20051216/matlab-agent-skills --skill matlab-control-optimizationgit clone --depth 1 https://github.com/wzyn20051216/matlab-agent-skillsWrote 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.
[](https://agentmods.dev/skills/wzyn20051216/matlab-agent-skills/matlab-control-optimization)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- Define plant model, units, sample time, constraints, and performance goals.
- Confirm required products: Control System Toolbox, System Identification Toolbox, Optimization Toolbox, Robust Control Toolbox, or MPC Toolbox.
- Build an executable baseline model.
- Tune or optimize with explicit objective and constraints.
- Validate time-domain, frequency-domain, and robustness behavior when applicable.
- Save plots, tuned parameters, and numerical metrics.
Preferred APIs
tf,ss,zpk,c2d,d2cstep,lsim,bode,margin,bandwidthpidtune,systune,hinfsyn,musynwhen licensediddata,tfest,ssest,compareoptimproblem,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.
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.
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.
- 4d ago Changed · +32 lines · -4 tokens per session f799798f99fb
- 1mo ago First seen · 46 lines · 68 tokens per session scan A 00e4132633f7
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.
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.
ml-experiment-tracker
Plan reproducible ML experiment runs with explicit parameters, metrics, and artifacts. Use before model training to standardize tracking-ready experiment definitions.
nature-statistics
A guide for checking or writing how statistical analyses are reported in scientific papers submitted to Nature or similar high-impact journals.
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.
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.
cuopt-numerical-optimization-formulation
LP, MILP, QP — concepts, problem-text parsing, and formulation patterns (parameters, constraints, decisions, objective). Concepts only; no API.