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 calebzu/pmsm-control-claude-skills-for-matlab --skill motor-mfpcc-esogit clone --depth 1 https://github.com/calebzu/pmsm-control-claude-skills-for-matlabWrote 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/calebzu/pmsm-control-claude-skills-for-matlab/motor-mfpcc-eso)<a href="https://agentmods.dev/skills/calebzu/pmsm-control-claude-skills-for-matlab/motor-mfpcc-eso"><img src="https://agentmods.dev/badge/skills/calebzu/pmsm-control-claude-skills-for-matlab/motor-mfpcc-eso/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/calebzu/pmsm-control-claude-skills-for-matlab/motor-mfpcc-eso"><img src="https://agentmods.dev/badge/skills/calebzu/pmsm-control-claude-skills-for-matlab/motor-mfpcc-eso.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.00323 | $0.02455 |
| Opus 5 | $0.00161 | $0.01228 |
| Sonnet 5 | $0.00065 | $0.00491 |
| Haiku 4.5 | $0.00032 | $0.00246 |
Grade A, and why
motor-mfpcc-eso 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 13d 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 — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
motor-mfpcc-eso — PMSM Model-Free Deadbeat Predictive Current Control + ESO Builder
Three-phase 2-level voltage-source inverter + SPMSM. Inner loop = model-free deadbeat predictive
current control in the stationary αβ frame: plant abstracted as the first-order ultralocal model
di_s/dt = F + α·u_s, a linear ESO estimating current + lumped disturbance F (absorbs
resistance, back-EMF, all parameter variation), and a closed-form deadbeat inversion with
one-step delay compensation producing a continuous (uα, uβ) command that SVPWM modulates at
fixed switching frequency. Outer loop = speed PI providing iq_ref; id_ref = 0. Only 2 tuned
parameters: α and ω0 (via pole z12). Distilled from Y. Zhang, J. Jin, L. Huang, IEEE Trans.
Ind. Electron. 68(2):993-1002, 2021 (DOI 10.1109/TIE.2020.2970660). Layered on
motor-pmsm-base; all base discipline applies (Visual 4-check, broken-FOC defense).
⚠ Method Identity (PINNED)
Deadbeat PCC + ESO + SVM = CONTINUOUS control set. NOT FCS-MPC. No vector enumeration, no cost function, no switching-state selection — voltage solved algebraically, handed to a modulator. Do NOT layer this on the motor-fcs-mpc family. Full evidence: formulas §D.
Formula Sources (single source of truth)
- Method formulas: pmsm_formulas.md §G — ultralocal model
(4)/(7), ESO (8)–(17), deadbeat (18)–(21), method identity, parameters. Plant by reference:
pmsm_formulas.md §8 (αβ complex-vector SPMSM;
Ld = Lq = Ls). ESO derivation + tuning rationale: eso_derivation.md.
Must-Follow Rules
- Plan first — numbered plan with parameter table and build-script structure. Get user approval.
- One-click reproducibility — all parameters injected via
set_param(mdl,'InitFcn',...);wref/TLprofiles as From-Workspace inline expressions. See build_sop.md. - Model-free boundary + literal params — the
MFPCC_ESOchart uses ONLYalpha, beta01, beta02, Tsc(embedded as build-time numeric literals == InitFcn, asserted; bare workspace names do NOT resolve in charts).Rs/Ls/psi_finside the chart voids the method. See chart_contract.md. - Chart I/O contract is fixed —
MFPCC_ESO: 6 in(ialpha, ibeta, theta_e, omega_e, iq_ref, id_ref)→ 6 out(ua, ub, iq_meas, id_meas, Fa_o, Fb_o). See chart_contract.md. - Double-
Fwarning — PMSM maskF= viscous frictionB(plant); ESO stateF= lumped disturbance (controller). Same letter, unrelated quantities. Never cross-assign. - Glue: inputs = six ZOH @ Tsc, output = Unit Delay @ Tsc (NOT ZOH) — the
ua/ubUnit Delays realize the 1-step delay that deadbeat eqs (20)/(21) compensate; a ZOH appliesu(k)in the same cycle → horizon broken → divergence. Chart stays INHERITED. See chart_contract.md §3. - ESO gains by closed form, asserted in build —
omega0 = (1 − z12)/Tsc,beta01 = 2·omega0·Tsc,beta02 = omega0²·Tsc. Defaultz12 = 0.15,alpha = 50. See eso_derivation.md §3. - All-discrete solver — model
FixedStepDiscrete@Ts+ powerguiDiscrete@Ts;SpeedPIchart DISCRETE @Tsc; re-commit both chart configs after wiring. See build_sop.md §5. - SVPWM workspace contract + sector-7 fix — the library SVPWM reads
TpwmandVdc_valfrom workspace; carrier is hardcoded forTpwm = 1e-4; apply the MultiPortSwitch sector-7 startup fix on the local instance. See build_sop.md §4. idbias grows ∝ ωe² — expected physics, not a bug — do not "fix" it during acceptance; check it stays inside the documented envelope. See known_limitations.md #1.
What ships with it
5 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.
- 13d ago First seen · 102 lines · 323 tokens per session scan A 9d7a04c449c2
motor-mfpcc-eso is a skill published in the GitHub repository calebzu/pmsm-control-claude-skills-for-matlab (13 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 323 tokens to every session and 2,455 once invoked, about $0.0016 per session on Opus 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
matlab-simulate-radar-detections
Configure, simulate, debug, and analyze radarDataGenerator within radarScenario. Use for: interactively building radar detection scenarios from datasheets or performance requirements; diagnosing missed detections and configuration errors; interpreting sensor spherical, body, and scenario-frame outputs; deriving…
matlab-analyze-em
S-parameters, insertion loss, fields, currents, mesh control, and solver selection for RF PCB performance validation. TRIGGER: user asks to compute S-parameters, analyze insertion/return loss, extract fields or currents, compare MoM vs FEM, or control mesh for any RF PCB component. Invoke BEFORE writing sparameters()…
matlab-compute-gnss-position
Computes multi-constellation Global Positioning System (GPS) or Global Navigation Satellite System (GNSS) positions from RINEX v3 data using rinexread, gnssmeasurements, receiverposition, and gnssoptions. Filters by constellation, elevation mask, C/N0, and observation code. Reports DOP, scatter RMS, and satellite…
matlab-plan-robot-motion
Plan manipulator motion and generate trajectories in MATLAB. Use when the task involves moving a robot arm between configurations or poses — whether the user says "trajectory," "motion," "path," "move from A to B," or "plan." This skill applies regardless of whether the user explicitly mentions collisions or…
matlab-design-dsphdl-ddc
Use when designing a Digital Down Converter (DDC) using dsphdl System objects. Triggers on requests involving DDC design, frequency down-conversion for FPGA/ASIC, NCO + mixer + decimation filter chains, fractional/non-integer sample rate conversion, or HDL-optimized receiver front-end signal processing.
matlab-generate-gnss-waveform
Generate GNSS baseband waveforms (GPS, Galileo, NavIC) with physically realistic or user-specified channel impairments using the Satellite Communications Toolbox. Use when generating GPS L1 C/A, L1C, L2C, L5, Galileo E1, E1C, E5a, E5b, E5, or NavIC L5, S, L1 signals. Covers gpsWaveformGenerator…