npuzsy/simulink-power-electronics/three-phase-grid-inverter
Claude Code and agent skill by npuzsy/simulink-power-electronics
- community
Checking that the SKILL.md file is still in the repository.
Use when working on Simulink or Simscape Electrical three-phase grid-connected inverter models, including SPWM/SVPWM, T-type or NPC three-level bridges, grid-side voltage/current waveform balance, gate routing, sector tables, and switching-state validation.
Install
npx vskill@latest install npuzsy/simulink-power-electronics/three-phase-grid-inverterSKILL.md
Three-Phase Grid Inverter
Overview
Use this active subskill for three-phase grid-connected inverter work. It contains the populated knowledge in this repository: T-type/NPC three-level SVPWM, state-vector table checks, gate mapping, From/Goto routing risks, and simulation-backed waveform validation.
Use the root simulink-power-electronics workflow first, then load this subskill when the model is in scope.
Resource Map
- Read
references/svpwm-three-level.mdfor T-type or NPC three-level SVPWM logic, sector handling, and gate mapping. - Read
references/table7-state-vectors.mdwhen auditing or rebuilding the 36 small-sector state-vector table. - Read
references/vsg-control-notes.mdfor VSG (Virtual Synchronous Generator) control implementation, PI tuning experience, power calculation verification, and feedforward formulas specific to grid-connected inverters. - Use
scripts/svpwm_diagnostics.mwhen MATLAB/Simulink can run and the model exposes state, gate, and voltage signals. - Use
scripts/print_table7_state_vectors.pywhen a deterministic JSON or Markdown copy of the reference table is needed. - Also read the root
../../references/control-algorithm-debugging.mdfor general control algorithm debugging methodology and signal-tracing procedures.
In Scope
- three-phase grid-connected inverters
- two-level inverter diagnostics when the same gate-routing and waveform evidence workflow applies
- T-type or NPC three-level bridges
- SPWM, SVPWM, and closely related discontinuous PWM checks
- phase/line voltage balance, current balance, DC offset, and phase-sum checks
- controller-to-plant gate ordering and legal switching states
- VSG (Virtual Synchronous Generator) grid-forming inverter control
- PI controller tuning, anti-windup mechanisms, and feedforward design
- S-Function based control algorithm implementation and debugging
- Power calculation verification (P/Q) with Clarke/Park transform coefficients
Out Of Scope
Use a different subskill or the root workflow for:
- motor-drive torque/speed control
- DC-DC converter regulation
- rectifier/PFC-specific behavior
- battery or BMS modeling
- HVDC/FACTS studies
- MMC or flying-capacitor balancing not covered by the existing three-level inverter notes
Workflow Additions
- Confirm grid-side reference frame, phase sequence, measurement polarity, and analysis window before interpreting waveforms.
- Identify the active modulation path: SPWM, SVPWM, disabled reference path, or commented subsystem.
- Log controller state vectors, final gate vectors, plant-side gate inputs, and phase/line voltage or current measurements.
- For three-level SVPWM, compare every large sector and small sector against
table7-state-vectors.md; partial sector-I checks are not enough. - For T-type/NPC gate mapping, confirm the physical switch order before applying
N/O/Passumptions. - Validate after startup transient unless startup behavior is the target.
Evidence Checks
- controller gate vector equals plant-side gate input
- no illegal switch state appears in any bridge leg
- phase and line RMS values are balanced in the selected steady-state window
- phase sum, DC offset, and current polarity match the model objective
- sector/state-vector counts are plausible for the modulation method and operating point
Scripts
For a conventional three-level SVPWM model with accessible logging points, add this subskill's scripts directory to the MATLAB path and call:
For the bundled table reference:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsubskills/three-phase-grid-inverter/SKILL.md
Popularity
- Repository stars
- 98
- Repository forks
- 6
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/npuzsy/simulink-power-electronics/three-phase-grid-inverter)