Specifying Plant Models logo

Specifying Plant Models

OrganizationPopular
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.

Overview

Publishermatlab
Repositorysimulink-agentic-toolkit
Skill namespecifying-plant-models
Stars
1.2K
Forks
112
Bundled files
6
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by matlab on GitHub. Read the source before you install it.

Installation

Install the Specifying Plant Models AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/model-based-design-core/specifying-plant-models
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/matlab/simulink-agentic-toolkit.git /tmp/simulink-agentic-toolkit
mkdir -p .claude/skills
cp -r /tmp/simulink-agentic-toolkit/skills-catalog/model-based-design-core/specifying-plant-models .claude/skills/specifying-plant-models
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Specifying Plant Models in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Specifying Plant Models on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Specifying Plant Models is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Plant Model Specs

Structured specification of plant models for closed-loop simulation. Adapts the specifying-software templates for the physics-modeling domain.

When to Use

  • Creating a plant model to close the loop with an existing controller
  • Updating or extending an existing plant model spec
  • Specifying a plant model before building it
  • Deciding on model architecture (subsystem decomposition, fidelity level)
  • Planning validation of a plant model

When NOT to Use

  • Building the plant model → use building-simulink-models
  • Testing an existing plant model → use testing-simulink-models
  • Specs for controller algorithms or MBD algorithms → use specifying-mbd-algorithms
  • Specs for traditional software (C, C++, Python, MATLAB scripts) → use specifying-software
  • Specifying a full closed-loop system → use specifying-mbd-algorithms for the algorithm side, this skill for the plant side

Output Conventions

Store 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

Mode Selection

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

Document Boundaries

SpecAnswersDoes NOT Contain
SystemWhat are we building and why?Subsystem decomposition, equations
ArchitectureHow is it structured?Simulink block details, parameter values
Implementation PlanHow do we build it?Actual model_edit commands
Test PlanHow do we validate it?Test execution results

In quick mode, combine system+architecture and implementation+test into two documents.

Workflow

Step 1: Analyze Controller Interface

Read the controller model with model_overview and model_read. Classify every signal as:

  • u (commanded inputs from controller), w (exogenous disturbances),
  • y (measured outputs to controller, with sensor effects), z (truth outputs for debugging)

Define the plant boundary and document sample times.

Step 2: Assess Validation Evidence

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.

Step 3: Research the Physics Domain

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.

Step 4: Write System Spec

Use assets/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:

  • Completeness of interface requirements (u, y signals covered)
  • Appropriate fidelity given intended use AND available validation evidence
  • Coverage of controller's operating envelope in operating scenarios
  • Operating points / initialization strategy specified and feasible
  • Rate/sample time alignment with controller defined
  • Clear validation reference for each major requirement

Get user review before proceeding.

Step 5: Write Architecture Spec

Use assets/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:

  • Correct physics decomposition — subsystem boundaries at natural domain boundaries
  • Complete signal flow from u through dynamics to y
  • Disturbances w entering at the right points
  • Consistent interfaces: units, sign conventions, coordinate frames end-to-end
  • DAE / algebraic loop risks addressed; conservation laws respected
  • Missing dynamics that affect the controller (actuator limits, sensor noise, transport delays)

Get user review before proceeding.

Step 6: Write Implementation Plan + Test Plan

Use assets/implementation-plan-template.md and assets/test-plan-template.md.

Implementation plan essentials:

  • Phase 0 (interface contract & stubs) gates all parallel work — freeze ports/units/sign conventions first
  • Loosely coupled subsystems (sensors, actuators, load, environment) can be built by separate agents concurrently after Phase 0; tightly coupled splits (inverter↔motor, tire↔chassis) need coordination
  • Model References enable the strongest parallel development (separate .slx files)
  • Parameter table: every parameter with name, value, unit, source, block path
  • Sync points use model_read verification and model_query_params spot-checks

Test plan essentials:

  • Three-stage validation: subsystem open-loop → integrated open-loop → closed-loop
  • Input signal definitions with parameters (step, ramp, sine sweep)
  • Gherkin scenarios mapped to model_test format
  • Quantitative acceptance criteria with physical justification

Review gate — Implementation Plan — verify:

  • Realistic bottom-up build order (leaf subsystems first)
  • Phase 0 interface stubs gate parallel work
  • Correct Simulink block types for the physics
  • Solver choice matches stiffness + discrete elements
  • Complete parameter table with sources and units

Review gate — Test Plan — verify:

  • Validation staging: subsystem open-loop → integrated open-loop → closed-loop (MIL)
  • Real-time execution feasibility assessed if plant is HIL-targeted
  • Each maneuver specifies: input, outputs, comparison method, acceptance criteria
  • Parameter sensitivity checks included
  • Numerical robustness test (solver tolerance, step size)
  • Gherkin scenarios executable via model_test

Get user approval before building begins.

Guardrails

Always

  • Classify signals as u/w/y/z at every interface
  • Cite sources for every parameter (value, unit, source, uncertainty, conditions)
  • Assess validation evidence before choosing fidelity level
  • Decompose into subsystems at natural domain boundaries (actuator, dynamics, sensor, environment, load)

Ask First

  • Fidelity level changes after system spec is approved
  • Adding subsystems not in the architecture spec
  • Deviating from the controller's sample time alignment

Never

  • Reproduce textbook derivations in specs — cite authoritative sources instead; use web_search for domain-specific research
  • Model dynamics you cannot validate against available evidence
  • Skip Phase 0 interface stubs when parallel building is planned
  • Use web_search results from unvetted sources — prefer standards, textbooks, MathWorks docs, and peer-reviewed papers

References

  • assets/system-spec-template.md — System spec template (what & why)
  • assets/architecture-spec-template.md — Architecture template (subsystem decomposition)
  • assets/implementation-plan-template.md — Build sequence template
  • assets/test-plan-template.md — Validation plan template
  • references/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.


Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Specifying Plant Models AI skill do?

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.

Why use Specifying Plant Models on TypingMind?

Because you install it once and use it with any model. Specifying Plant Models is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Specifying Plant Models in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/model-based-design-core/specifying-plant-models. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Specifying Plant Models?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Specifying Plant Models?

As many as you like. As long as a model supports skills, you can use Specifying Plant Models with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Specifying Plant Models AI skill free?

It is published on GitHub by matlab. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇