matlab/specifying-plant-models
Specify plant models for closed-loop simulation: system specs, architecture, build plans, validation plans. Use when creating, updating, or reviewing plant model specifications, planning plant model architecture, or planning plant model validation.
npx skills add https://github.com/matlab/simulink-agentic-toolkit --skill specifying-plant-models
Structured specification of plant models for closed-loop simulation. Adapts the specifying-software templates for the physics-modeling domain.
building-simulink-modelstesting-simulink-modelsspecifying-mbd-algorithmsspecifying-softwarespecifying-mbd-algorithms for the algorithm side, this skill for the plant sideStore specs per plant model. Prefix every filename with the plant name so files are self-identifying in editor tabs, search results, and flat listings:
docs/specs/plant-models/<plant-name>/
├── <plant-name>-system.md # What & why
├── <plant-name>-architecture.md # Subsystem decomposition
├── <plant-name>-implementation-plan.md # Build sequence
└── <plant-name>-test-plan.md # Validation plan
Example for a plant called motor:
docs/specs/plant-models/motor/
├── motor-system.md
├── motor-architecture.md
├── motor-implementation-plan.md
└── motor-test-plan.md
> Does this plant have <5 states, single-rate dynamics, no strong nonlinearities, and will be built by one person/agent?
> - Yes → Quick spec: 2 documents (system+architecture combined, implementation+test combined)
> - No → Full spec: 4 separate documents
| Spec | Answers | Does NOT Contain |
|------|---------|------------------|
| System | What are we building and why? | Subsystem decomposition, equations |
| Architecture | How is it structured? | Simulink block details, parameter values |
| Implementation Plan | How do we build it? | Actual model_edit commands |
| Test Plan | How do we validate it? | Test execution results |
In quick mode, combine system+architecture and implementation+test into two documents.
Read the controller model with model_overview and model_read. Classify every signal as:
Define the plant boundary and document sample times.
Before researching the domain, establish what evidence exists: test data, datasheets, standard maneuvers, analytic expectations, reference models.
Fidelity must be justified by available evidence — no point modeling dynamics you can't validate. Intended use matters: MIL rapid iteration → lower fidelity acceptable; HIL/code generation → fixed-step, real-time constraints.
Use web_search and read_web_page for standard modeling approaches, reference parameters, and authoritative sources. Consult references/plant-model-guidance.md for cross-domain patterns if needed.
Use references/system-spec-template.md. Key plant-model sections: operating scenarios, physical model requirements, controller interface contract (u/w/y/z with sample times, data types, units), initialization & operating points, rate & timing alignment, validation evidence, reference sources.
Review gate before proceeding — verify:
Get user review before proceeding.
Use references/architecture-spec-template.md. Key plant-model sections: component catalog with physics domain and port interfaces, equations of motion per subsystem, nonlinearities & constraints, numerical considerations (solver, stiffness, algebraic loops), parameter management, uncertainty hooks.
Review gate before finalizing — verify:
Get user review before proceeding.
Use references/implementation-plan-template.md and references/test-plan-template.md.
Implementation plan essentials:
model_read verification and model_query_params spot-checksTest plan essentials:
model_test formatReview gate — Implementation Plan — verify:
Review gate — Test Plan — verify:
Get user approval before building begins.
web_search for domain-specific researchweb_search results from unvetted sources — prefer standards, textbooks, MathWorks docs, and peer-reviewed papersreferences/system-spec-template.md — System spec template (what & why)references/architecture-spec-template.md — Architecture template (subsystem decomposition)references/implementation-plan-template.md — Build sequence templatereferences/test-plan-template.md — Validation plan templatereferences/plant-model-guidance.md — Optional domain reference (decomposition examples, validation maneuvers, solver guide). Human-facing; do not copy verbatim into specs.----
Copyright 2026 The MathWorks, Inc.
----
Take matlab/specifying-plant-models from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.