motor-smc-pmsmlisted
Install: claude install-skill calebzu/pmsm-control-claude-skills-for-matlab
# motor-smc-pmsm — PMSM Sliding Mode Control Speed-Loop Builder
Three-phase 2-level voltage-source inverter + PMSM. Outer-loop = **PD-type sliding surface + Super-Twisting Algorithm (STA)** providing `iq_ref` (continuous through `s=0`, second-order SMC). Inner-loop = **dq current PI ×2 with cross-decoupling feedforward** (PZC for RL plant + BEMF compensation). Modulation = **Anti_Park + SVPWM** library blocks. v1 baseline supports SPMSM and mild-saliency IPMSM (`Lq/Ld < 2`); strong-saliency IPMSM MTPA mid-loop deferred.
Layered on [motor-pmsm-base](../motor-pmsm-base/SKILL.md). All base discipline applies.
## ⚠️ Signing Authority Note (SMC-specific)
Most users may lack independent SMC domain expertise. When the user declares this gap, switch to **AI-self-audit mode** (see base/[theory_anchor.md](../motor-pmsm-base/references/theory_anchor.md)):
- §A/§B (PI / DTC) formulas: user-signed
- §C (SMC) formulas: AI-self-audited with verifiable sources (≥ 2 independent cross-check + ≥ 1 link openable + ≥ 1 PDF cached)
**Fail-safe replacement for user formula sign-off**: a Phase 8 G4 user visual review on MATLAB desktop (4 Scopes + abc currents AC sinusoidal verification). G4 cannot be skipped.
## Must-Follow Rules
1. **Plan first** — Numbered plan with 25-input table, design-decision choices ([design_decisions.md](references/design_decisions.md)), build-script structure. Get user approval.
2. **One-click reproducibility** — Inject all parameters via `set_param(mdl, 'InitFcn',