{"slug":"modelica-model-architecture","title":"modelica-model-architecture","summary":"Architecture and structuring guidance for Wolfram System Modeler / Modelica (.mo) models and libraries. Use this skill BEFORE writing equations whenever creating, implementing, structuring, or refactoring a model or library, to decide component decomposition, connectors, componen","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-25T18:26:14.318407Z","repo":{"url":"https://github.com/WolframResearch/system-modeler-ai-toolkit","stars":27,"forks":8,"license":"MIT","updatedAt":"2026-11-25T18:07:22Z"},"bodyHtml":"<hr>\n<h2>name: modelica-model-architecture\ndescription: \"Architecture and structuring guidance for Wolfram System Modeler / Modelica (.mo) models and libraries. Use this skill BEFORE writing equations whenever creating, implementing, structuring, or refactoring a model or library, to decide component decomposition, connectors, component reuse, file/folder layout, units, and naming. Triggers on phrases like 'create/build a Modelica model', 'implement this model/paper in Modelica', 'make a WSM model', 'write a Modelica library', 'structure this model', 'single .mo file vs directory', 'split this into components', 'refactor this model/library'. Before writing a multi-class library, consult it to choose directory-form (one class per file) storage over a single .mo — also when the library is your own idea, such as a circuit or mechanism modelled to validate something else against it. For a specific component library (e.g. create-hydraulic-model) defer to that domain skill.\"</h2>\n<h1>WSM / Modelica model architecture</h1>\n<p>Use this when creating or restructuring a WSM/Modelica model or library —\n<strong>before</strong> writing equations. This skill covers the architecture and structuring\ndecisions that come first (sections 1-7), then the library conventions —\nnaming, plots, documentation HTML, testing, icons, library shape — that a model\nor library must meet before it is \"done\" (sections 8-9). Read sections 8-9\nbefore declaring a library done.</p>\n<p>The default in Modelica is <strong>object-oriented decomposition into reusable\ncomponents</strong>. Reach for a flat all-in-one model only under the explicit\nexception in section 5.</p>\n<h2>Working method</h2>\n<ul>\n<li>Propose a <strong>step-by-step</strong> plan and wait for explicit approval before any edit.\nPresent it as numbered steps.</li>\n<li>Offer the user a <strong>\"one-shot\"</strong> option: they may approve the whole sequence at\nonce and have you execute it end to end without stopping between steps.</li>\n<li>If the user takes the one-shot option, <strong>first state the choices you will make\nautonomously</strong> — the decisions you would otherwise have stopped to ask about\n(e.g. authoring <code>GettingStarted</code>/<code>Introduction</code>, storing example result plots,\nadding icons, how far to decompose). One-shot suppresses the questions, not the\ndecisions; surfacing the defaults up front lets the user veto before you build.</li>\n<li>When nobody can approve — a non-interactive run, a task handed to you by another\nagent, or a request that says to go ahead — take the one-shot path: state the\nplan and the choices up front, then build without waiting.</li>\n<li>When creating a library, recommend a <strong>parallel test library</strong> from the start.\nAdd a unit test for each component as you build it — not at the end.</li>\n<li><strong>Never delete the user's model files to \"start clean.\"</strong> When the toolchain\nerrors, fix the code forward — a validate/simulate failure is almost always a\nwrong name or missing load, not a reason to throw the work away. Deleting files\nto reset loses work and is rarely what the user wants.</li>\n</ul>\n<h2>1. Reuse before building (priority order)</h2>\n<p>When you need a component (or a connector), look in this order and only build\nnew if nothing fits:</p>\n<ol>\n<li><strong>MSL</strong> — the Modelica Standard Library.</li>\n<li><strong>The user's own Git-repo libraries</strong> (e.g. what lives in their repo).</li>\n<li><strong>Wolfram libraries</strong> — bundled / add-on WSM libraries.</li>\n<li><strong>Your own component</strong> — last resort.</li>\n</ol>\n<p>The same order applies to connectors: reuse a standard connector\n(<code>Modelica.Blocks.Interfaces</code>, mechanical <code>Flange</code>, electrical <code>Pin</code>,\n<code>Thermal.HeatPort</code>, <code>Fluid</code> ports, ...) before inventing one.</p>\n<p><strong>Ground every MSL name in the docs — do not recall paths from memory.</strong> MSL\ncomponent paths are easy to misremember: there is no <code>Modelica.Blocks.Math.Sine</code>\n(sine is <code>Modelica.Blocks.Sources.Sine</code>), no <code>Math.Subtract</code> (use\n<code>Math.Feedback</code> for <code>u1 - u2</code>, or <code>Math.Add</code> with <code>k2 = -1</code>), and no\n<code>Nonlinear.Saturation</code> (the saturation block is <code>Nonlinear.Limiter</code>). Before you\nwrite an MSL class name, confirm it with the <strong>search-modelica-docs</strong> skill. If a\nlater validate reports <code>Element not found ... in Modelica...</code>, the path is wrong\n— look the correct one up with <strong>search-modelica-docs</strong>; <strong>do not</strong> grep or walk\nthe System Modeler install tree hunting for it.</p>\n<h2>2. Components by default; design the connector first</h2>\n<p>Whether something should be a component hinges on the <strong>interface</strong>, not the\npart. Componentize where you can draw a clean connector:</p>\n<ul>\n<li>a <strong>small, stable set of physically-conjugate effort/flow pairs</strong>\n(<code>v</code>/<code>i</code>, <code>p</code>/<code>m_flow</code>, <code>f</code>/<code>v</code>, <code>T</code>/<code>Q_flow</code>);</li>\n<li><strong>regime-independent</strong> — the variables crossing don't change meaning with\nglobal state;</li>\n<li><strong>low-bandwidth</strong> — you're not smuggling a neighbour's internal state across.</li>\n</ul>\n<p>If a cut would force a wide or regime-dependent connector, or would break a\n<strong>global constraint</strong> that no single component owns, the boundary is in the\nwrong place: move it, or keep just that coupled residue together.</p>\n<p>Use <code>flow</code> for conserved quantities and <code>stream</code> for transported fluid\nproperties.</p>\n<h3>2a. Reference components - one per attachment point</h3>\n<p>Every physical network needs a <strong>reference</strong> that fixes its absolute potential.\nWithout one the model is structurally singular: the effort variables are only\never determined up to a constant.</p>\n<p>A <strong>pure reference</strong> has one connector, prescribes the <strong>effort</strong> on it, and\nleaves the <strong>flow</strong> free:</p>\n<table>\n<thead>\n<tr>\n<th>Domain</th>\n<th>Component</th>\n<th>Prescribes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Electrical analog</td>\n<td><code>Modelica.Electrical.Analog.Basic.Ground</code></td>\n<td><code>p.v = 0</code></td>\n</tr>\n<tr>\n<td>Electrical quasi-static</td>\n<td><code>Modelica.Electrical.QuasiStatic.SinglePhase.Basic.Ground</code></td>\n<td><code>pin.v = Complex(0)</code></td>\n</tr>\n<tr>\n<td>Rotational</td>\n<td><code>Modelica.Mechanics.Rotational.Components.Fixed</code></td>\n<td><code>flange.phi = phi0</code></td>\n</tr>\n<tr>\n<td>Translational</td>\n<td><code>Modelica.Mechanics.Translational.Components.Fixed</code></td>\n<td><code>flange.s = s0</code></td>\n</tr>\n<tr>\n<td>Thermal</td>\n<td><code>Modelica.Thermal.HeatTransfer.Sources.FixedTemperature</code></td>\n<td><code>port.T = T</code></td>\n</tr>\n<tr>\n<td>Magnetic</td>\n<td><code>Modelica.Magnetic.FluxTubes.Basic.Ground</code></td>\n<td><code>port.V_m = 0</code></td>\n</tr>\n</tbody>\n</table>\n<p>Because such a component absorbs whatever flow arrives at it, N instances behave\nexactly like one instance shared by N connections. So <strong>give each attachment\npoint its own reference instance</strong>, named after what it anchors (<code>groundInput</code>,\n<code>fixedBearing</code>) — not one instance that every component connects to. Both are\ncorrect; only the first draws a readable diagram. One shared reference is the\nhighest-degree node in the graph, and each connection to it becomes a line\nacross the whole schematic.</p>\n<p>Two things that are <strong>not</strong> replicable references:</p>\n<ul>\n<li><strong>Flow-prescribing sources</strong> — <code>FixedHeatFlow</code>, <code>ConstantCurrent</code>. Each copy\ninjects the full amount, so replicating them multiplies the excitation.</li>\n<li><strong>Fluid boundaries</strong> — <code>Modelica.Fluid.Sources.Boundary_pT</code> does prescribe an\neffort (p, T), but a shared boundary is also a flow <em>path</em> between the\nconnections it joins; splitting it removes a path that was there.</li>\n<li><strong><code>inner</code> singletons</strong> — <code>Modelica.Mechanics.MultiBody.World</code> (as <code>inner Modelica.Mechanics.MultiBody.World world</code>) and <code>Modelica.Fluid.System</code>.\nExactly one per model, by language rule.</li>\n</ul>\n<p>Confirm the exact class path with <strong>search-modelica-docs</strong> before writing it\n(section 1). The <strong>annotate-modelica-graphics</strong> skill applies the same rule to\nan existing model, splitting a shared reference before it lays out the diagram.</p>\n<h2>3. Composition vs inheritance (two reuse axes - don't conflate)</h2>\n<ul>\n<li><strong>Composition</strong> (instantiate + connect): <em>\"is made of\"</em> — distinct physical\nparts wired in the diagram.</li>\n<li><strong>Inheritance</strong> (<code>partial</code> base + <code>extends</code>): <em>\"is a kind of\"</em> — variants that\nshare equation structure (e.g. two heat exchangers sharing the same balance\nand wall equations).</li>\n</ul>\n<h2>4. Granularity</h2>\n<p>Decompose at <strong>real engineering joints</strong> — the parts an engineer would name\n(pump, valve, wall, zone). Avoid trivial one-variable wrappers, and do not merge\ngenuinely simultaneous physics that has no clean internal interface.</p>\n<h2>5. Monolith exception</h2>\n<p>A single all-equations model is acceptable <strong>only</strong> as a first correctness pass\non a numerically hard model. When you do it:</p>\n<ul>\n<li>say so explicitly, and</li>\n<li>end with a <strong>concrete written decomposition proposal</strong> — name the components\nand the connector or <code>partial</code> base each would become — not an open-ended offer\nto \"refactor later\".</li>\n</ul>\n<p>Even when no clean connector exists (a tightly coupled DAE — shared pressure\nstate, regime-dependent coupling), still factor the reusable <strong>equation\nstructure</strong> into <code>partial</code> base classes and functions (see section 3). A model\nthat derives a generic control volume, then specialises it, is decomposed even if\nits zones cannot be cut into separately-connected components.</p>\n<p>Never present a monolith as the finished structure.</p>\n<h2>6. One class per file (for version control)</h2>\n<p><strong>One-off model vs library.</strong> If the user just wants a single throwaway model\n(not a reusable library), write <strong>one self-contained <code>.mo</code> file</strong> holding that\nmodel — it is simpler to author, validate, and simulate. Reach for the\ndirectory form below only when building a library or a genuinely multi-class\nmodel.</p>\n<p>Store libraries in <strong>directory form</strong>:</p>\n<ul>\n<li><code>package.mo</code> + <code>package.order</code> at each level,</li>\n<li>subpackages as folders,</li>\n<li><strong>each <code>model</code> / <code>block</code> / <code>function</code> / <code>record</code> / <code>connector</code> in its own\n<code>Name.mo</code></strong>.</li>\n</ul>\n<p>This makes version handling far easier: granular diffs, fewer merge conflicts,\nper-component blame and review. Exception: a few tiny, tightly-coupled leaf\nclasses (e.g. some <code>Types</code>) may share a file.</p>\n<p><strong>Names must be valid Modelica identifiers.</strong> A package/class name — and the\ndirectory or file that holds it — is letters, digits, and underscores only, and\nmust not start with a digit: <strong>no hyphens or spaces</strong> (<code>inverted-pendulum</code> is\nillegal; use <code>InvertedPendulum</code>). A directory-form library's folder name must\nequal its package name, and the dotted <code>--name</code> you pass the launcher (e.g.\n<code>InvertedPendulum.Controller</code>) is built from these identifiers.</p>\n<p><strong>Keep line endings consistent.</strong> Same motivation as one-class-per-file: a file\nwhose endings get switched or mixed by an edit diffs whole-file and buries the\nreal change. Match what a file already has when editing it, and match the\nlibrary's existing <code>.mo</code> files when adding one — see\n<a href=\"#line-endings-in-mo-files\">Appendix → Line endings in .mo files</a>.</p>\n<h2>7. Units - always declare</h2>\n<p>Every variable/parameter that has a unit <strong>must</strong> declare it, in this priority:</p>\n<ol>\n<li>An <strong>SI type</strong> from <code>Modelica.Units.SI</code> (e.g. <code>SI.Pressure p</code>).</li>\n<li>Else a <strong>NonSI type</strong> from <code>Modelica.Units.NonSI</code>.</li>\n<li>Else the <strong><code>unit=</code> attribute</strong> (e.g. <code>Real areaPerLength(unit=\"m2/m\")</code>).</li>\n</ol>\n<p>Signals flowing through connectors are SI; use <code>displayUnit</code> for friendly\nlabels (note a <code>displayUnit</code> default needs a literal value).</p>\n<p>Use the <strong>MSL 4.x</strong> names — this toolchain ships MSL 4.x, and the old 3.2 names\nflatten with confusing \"not found\" errors. Write <code>Modelica.Units.SI.*</code> (not\n<code>Modelica.SIunits.*</code>), and source frequency is <code>f=</code> (not <code>freqHz=</code>). Declare the\ndependency with the MSL version the toolchain reports, e.g.\n<code>annotation(uses(Modelica(version = \"4.1.0\")))</code>.</p>\n<h2>8. Conventions</h2>\n<p>These are the library conventions every WSM/Modelica model and library must\nfollow. Sections 8a-8h are the detail behind the section 9 checklist.</p>\n<h3>8a. Naming and code</h3>\n<ul>\n<li><strong>camelCase, no underscores</strong> for parameters and variables, starting lower\ncase (<code>heatSource</code>), following the\n<a href=\"https://reference.wolfram.com/system-modeler/libraries/Modelica/Modelica.UsersGuide.Conventions.ModelicaCode.Naming.html\">MSL naming conventions</a>.</li>\n<li>Use <strong>meaningful names</strong> — <code>enthalpy</code>, not <code>h</code>.</li>\n<li>Avoid any <strong>tool-dependent</strong> code, so the library stays tool-independent.</li>\n<li>Store all external resources (images, CAD, PDFs) in a <strong><code>Resources</code></strong> folder in\nthe library directory, referenced via <strong>Modelica URIs</strong> (never raw paths); use\nonly resources you have the rights to use.</li>\n<li>Review <strong>experiment settings</strong> (time unit, solver, tolerance, step) so they are\nrelevant for each example.</li>\n</ul>\n<h3>8b. Units</h3>\n<p>Covered in section 7 — every variable/parameter with a unit declares it (SI type\n→ NonSI type → <code>unit=</code> attribute). Signals through connectors are SI; use\n<code>displayUnit</code> for friendly labels.</p>\n<h3>8c. Documentation text</h3>\n<ul>\n<li><strong>All classes documented</strong>; <strong>all parameters and variables, including\n<code>protected</code>,</strong> have a one-line description.</li>\n<li>First character <strong>uppercase</strong>; for one-line descriptions of params, variables,\nand classes, <strong>no trailing period</strong>.</li>\n<li>Spelling and grammar must be correct.</li>\n<li><strong>Do not</strong> set custom font style/size styling.</li>\n<li>Write library names <strong>spaced</strong> (\"Rotating Machinery\", not \"RotatingMachinery\").</li>\n<li>Wrap component, class, variable, and instance names in the text with <code>&lt;code&gt;</code>.</li>\n<li><strong>Write concisely, in a scientific style.</strong> One idea per sentence, and cut any\nsentence that does not tell the reader something new.\n<ul>\n<li>Impersonal and declarative, in the present tense: \"The limiter caps the armature\nvoltage at <code>supplyVoltage</code>.\" No \"we\", \"you\" or \"our\", and no promotional or filler\nwords (\"simply\", \"powerful\", \"easily\", \"note that\").</li>\n<li>Quantities with their value and SI unit, a space between the two (<code>200 rad/s</code>,\n<code>0.1 N·m</code>). Define each symbol where it first appears, and give a relation as an\nequation rather than paraphrasing it in words.</li>\n<li>State the assumptions and limits the model rests on (\"ideal commutation, no\nfriction\").</li>\n<li>Every number is one the model or a simulation of it gives; do not quote a value you\nhave not checked. Cite the source of any equation or data that is not derived here.</li>\n</ul>\n</li>\n</ul>\n<h3>8d. HTML documentation</h3>\n<ul>\n<li><p>Use only <code>&lt;h4&gt;</code> and <code>&lt;h5&gt;</code> headings — <strong>never <code>&lt;h1&gt;</code>-<code>&lt;h3&gt;</code></strong> (those are used by\nthe auto-generated docs). Headings must <strong>not</strong> end with a <code>:</code>.</p>\n</li>\n<li><p>System Modeler builds most of the documentation page from the code. <code>info</code> holds\nonly what the page cannot derive. The page already shows:</p>\n<table>\n<thead>\n<tr>\n<th>Page part</th>\n<th>Built from</th>\n<th>Shown for</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Title, description, icon</td>\n<td>class name, description string, <code>Icon</code></td>\n<td>every class</td>\n</tr>\n<tr>\n<td>Diagram</td>\n<td><code>Diagram</code> annotation</td>\n<td>models and blocks that have one</td>\n</tr>\n<tr>\n<td>Parameters: value, type and unit, description (inherited ones too)</td>\n<td>declarations</td>\n<td>models, blocks</td>\n</tr>\n<tr>\n<td>Connectors and Components: icon, type, description</td>\n<td>declarations</td>\n<td>models, blocks</td>\n</tr>\n<tr>\n<td>Syntax, Inputs, Outputs</td>\n<td>function signature</td>\n<td>functions</td>\n</tr>\n<tr>\n<td>Package Contents: each class with icon and description</td>\n<td>the package</td>\n<td>packages</td>\n</tr>\n<tr>\n<td>Used in Examples / Used in Components</td>\n<td>the loaded libraries</td>\n<td>classes used elsewhere</td>\n</tr>\n<tr>\n<td>Revisions</td>\n<td><code>Documentation(revisions=...)</code></td>\n<td>when set</td>\n</tr>\n</tbody>\n</table>\n<p>So <code>info</code> <strong>never</strong> contains parameter, connector or component lists or tables. It\nalso never repeats the description string, the call syntax, the inputs and outputs,\nor the package's contents. Mention a parameter only to say what its own description\ncannot: how it interacts with others, its valid range, its sign, or the choice it\nmakes.</p>\n</li>\n<li><p>What the general information says, by kind of class:</p>\n<ul>\n<li><strong>Component:</strong> the governing equations, the sign convention, valid ranges, and\nwhen to use a sibling instead.</li>\n<li><strong>Function:</strong> what it computes, how it fails, and a call example.</li>\n<li><strong>Example:</strong> its purpose, what drives it, and what to observe or plot.</li>\n<li><strong>Package:</strong> a short overview in prose.</li>\n</ul>\n</li>\n<li><p>Each class's doc, in this order: <strong>general information</strong> (how the class works, no\nsubsections) → <strong>References</strong> (relevant articles) → optionally <strong>Implementation</strong>,\n<strong>Limitations</strong>, <strong>Notes</strong>, <strong>Examples</strong>, <strong>Acknowledgments</strong>, <strong>See also</strong>\n(hyperlinks to related classes), in that order. Omit the MSL convention's\n<strong>Syntax</strong> section for functions, since the page generates it.</p>\n</li>\n<li><p>Put any <strong>revision history</strong> in <code>annotation(Documentation(revisions=\"...\"))</code>;\n\"what's new\" goes in the revisions, e.g.:</p>\n<pre><code>&lt;h4&gt;New in Version 1.2.0&lt;/h4&gt;\n&lt;ul&gt;\n  &lt;li&gt;Library is now available for free for Wolfram System Modeler users&lt;/li&gt;\n&lt;/ul&gt;\n</code></pre>\n</li>\n</ul>\n<h3>8e. Plot styling</h3>\n<ul>\n<li>Add model plots to the library examples; set <strong>at least one as the default\nplot</strong>.</li>\n<li>Plot titles and legends should be <strong>meaningful</strong>. Raw component paths are fine\nwhen already clear (e.g. <code>R1.v</code>, <code>R2.v</code>); replace them only when the default is\nambiguous or unwieldy (deep nesting, generic names like <code>.y</code>).</li>\n<li>Plot titles: <strong>sentence case, no trailing period</strong> (e.g. \"Fuel consumption of\nan aircraft\"). Legends: start <strong>uppercase</strong>, no trailing period.</li>\n<li>Explores are optional (prefer them for faster simulations); control-panel names\nand explore parameter descriptions start uppercase.</li>\n</ul>\n<h3>8f. Appearance / icons and availability</h3>\n<ul>\n<li><strong>Every class has an icon.</strong> Follow the\n<a href=\"https://reference.wolfram.com/system-modeler/libraries/Modelica/Modelica.UsersGuide.Conventions.Icons.html\">MSL icon conventions</a>,\nexcept the <code>%name</code> text uses color <code>{64, 64, 64}</code>.</li>\n<li>State which <strong>platforms</strong> (Mac, Windows, Linux) the library supports, with good\nreasons for any exclusion.</li>\n<li>Declare <strong>all dependencies with <code>uses</code> annotations</strong>, including the MSL version\n(e.g. <code>uses(Modelica(version = \"4.1.0\"))</code>). State any additional software\nneeded.</li>\n</ul>\n<h3>8g. Library structure and documentation shape</h3>\n<p>Every library's top-level <code>package.order</code> starts with the same three nodes, in\nthis order, then the library-specific components/subpackages:</p>\n<pre><code>GettingStarted   ← always present, info-only model\nConventions      ← encouraged; omit only when no cross-cutting reference exists\nExamples         ← always present, runnable models\n...Components (with Utilities, Types), other subpackages...\n</code></pre>\n<ul>\n<li><code>GettingStarted</code> and <code>Conventions</code> are <strong>info-only models</strong> (not packages):\n<code>preferredView = \"info\"</code>, <code>DocumentationClass = true</code>. Fold any existing\n<code>Introduction</code> / <code>Troubleshooting</code> into <code>Conventions</code> (or, if substantial, keep\n<code>Troubleshooting</code> as a sibling with a consistent shape).</li>\n<li>The top-level <code>package.mo</code> doc is the <strong>library elevator pitch</strong>: a one/two-\nparagraph summary, a short linked list of 4-8 core abstractions, three \"where to\ngo next\" links (<code>GettingStarted</code> / <code>Conventions</code> / <code>Examples</code>), and a\n<code>&lt;h4&gt;References&lt;/h4&gt;</code> section if applicable. It must not duplicate\n<code>GettingStarted</code> or <code>Conventions</code>.</li>\n<li><strong><code>GettingStarted</code> skeleton</strong> (same sections, same order): one-paragraph summary\n→ <strong>Building Blocks</strong> (linked core components) → <strong>Worked example</strong> (diagram\nscreenshots + a simulation plot) → <strong>Next steps</strong> (links to <code>Conventions</code> and\n<code>Examples</code>).</li>\n<li><strong><code>Conventions</code> skeleton</strong> (always these <code>&lt;h5&gt;</code> sections, in order): Symbols &amp;\nNotation → Units &amp; Display Units → Connectors &amp; Sign Conventions → Styling →\nReferences. Keep a heading even when its content is one line.</li>\n<li><code>Examples</code> is a <code>package</code> (subpackage it by category past ~8 examples). Each\nexample documents its <strong>purpose</strong> and <strong>what to observe</strong> after simulating, and\nshould preferably cover all main components in the library.</li>\n<li><strong>Cross-link with Modelica URIs</strong> (<code>modelica://Library.Path.Class</code>), never raw\nHTML paths. Every <code>GettingStarted</code> ends with Next steps; every <code>Conventions</code>\nopens with a one-line link to <code>GettingStarted</code>; link components to confusable\nsiblings.</li>\n</ul>\n<h3>8h. Testing</h3>\n<ul>\n<li>Create a <strong>parallel test library</strong> named <code>&lt;Library&gt;Tests</code> (e.g. <code>Hydraulic</code> -&gt;\n<code>HydraulicTests</code>). Every component gets its corresponding unit test(s) there <strong>as\nit is created</strong>, not at the end.</li>\n<li>If the example models do not cover every component, the test library must\nexercise the remaining ones.</li>\n</ul>\n<h2>9. Definition of done</h2>\n<p>A model or library is not \"done\" — and success must not be reported — until these\nhold:</p>\n<ul>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Each class <strong>validates</strong>, and examples <strong>build/simulate</strong>, without warnings\n(justify any exception).</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Every class has an <strong>icon</strong> (invoke the <code>annotate-modelica-graphics</code> skill)\nand a one-line description; every parameter/variable, including <code>protected</code>,\nhas a description and — where it has one — a unit.</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Each <code>info</code> covers only what the generated documentation page does not show\n(section 8d), written concisely in the scientific style of section 8c.</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Every <strong>example</strong> documents its purpose and what to observe, and carries\n<strong>stored result-plot annotations</strong> (<code>figures=</code>, at least one default plot) —\ninvoke the <code>annotate-modelica-plots</code> skill once it simulates. Give each figure\nan identifiable <strong>title</strong> and a one-line <strong><code>caption</code></strong>; if the model replicates a\npublished reference, <strong>name figures to match it</strong> (e.g. <code>\"Fig. 6 - …\"</code>) and note\nthe correspondence in the caption. (Pure pass/fail assertion tests need no\nfigure; anything meant to be simulated and <em>inspected</em> does.)</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Every physical network has a <strong>reference</strong> (ground, housing, fixed\ntemperature), and each attachment point has <strong>its own instance</strong> of it rather\nthan one shared instance fanned out (section 2a).</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> Every component has a <strong>unit test</strong> in the parallel <code>&lt;Library&gt;Tests</code>.</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> The library follows the three-slot top-level shape — <strong><code>GettingStarted</code></strong>,\n<strong><code>Conventions</code></strong>, <strong><code>Examples</code></strong> first in <code>package.order</code> (section 8g).</li>\n<li><input disabled=\"disabled\" type=\"checkbox\"> If a monolith was used, a concrete <strong>decomposition proposal</strong> is on the\ntable (section 5).</li>\n</ul>\n<p>Treat this as a checklist to run through and report against, not a list to skim.\nIf an item is left open — for example the user only wants an answer, not a finished\nlibrary — say which ones in the final report instead of reporting the library as done.</p>\n<hr>\n<h2>Appendix: shared conventions for the Modelica skills</h2>\n<blockquote>\n<p><em>Shared by every Modelica skill that drives WSMKernelX through the\nbundled launcher; inlined here at release time. For the CLI/option\nreference, environment variables (<code>WSM_HOME</code>, <code>WSM_VSDEVCMD</code>),\ninstall discovery, and the analysis scripts, see\n<a href=\"../scripts/README.md\"><code>../scripts/README.md</code></a>.</em></p>\n</blockquote>\n<p><strong>These are conventions, not a workflow.</strong> Knowing how to call the tools is not\nthe same as knowing which to call, in what order, and how to tell a good answer\nfrom a plausible one — that lives in the skills, one per job. Invoke the one that\nowns the step you are on, <strong>including when it is not the one you started from</strong>:\na job that begins in one skill routinely runs into something another one owns,\nand the whole toolkit is available the entire time.</p>\n<table>\n<thead>\n<tr>\n<th>What you run into</th>\n<th>Skill</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>About to write or restructure a model or library — including one you decided to build yourself</td>\n<td><code>modelica-model-architecture</code> <strong>first</strong></td>\n</tr>\n<tr>\n<td>A <code>.mo</code> you just wrote or edited; a structural error</td>\n<td><code>validate-modelica</code></td>\n</tr>\n<tr>\n<td>You need results</td>\n<td><code>simulate-modelica</code> (<code>simulate-and-plot-modelica</code> to plot them too)</td>\n</tr>\n<tr>\n<td>A run that must go in real time, take input changes while it runs, or be driven from another program</td>\n<td><code>simulate-modelica-realtime</code></td>\n</tr>\n<tr>\n<td>It validates but will not build; it runs far too slowly; it gives an answer you cannot account for; you need its states, equations or blocks</td>\n<td><code>diagnose-modelica</code></td>\n</tr>\n<tr>\n<td>The launcher reports a <code>compiler failure</code> — an internal error, generated code that does not compile, a simulator internal error or a kernel crash</td>\n<td><code>minimize-modelica-bug</code></td>\n</tr>\n<tr>\n<td>A Modelica language or MSL question you would otherwise answer from memory</td>\n<td><code>search-modelica-docs</code></td>\n</tr>\n<tr>\n<td>Sweeps, limit checks, calibration, custom result analysis</td>\n<td><code>wolfram-language-modelica</code></td>\n</tr>\n<tr>\n<td>No icons, or no diagram layout</td>\n<td><code>annotate-modelica-graphics</code></td>\n</tr>\n<tr>\n<td>Plots that should live in the model and reopen with it</td>\n<td><code>annotate-modelica-plots</code></td>\n</tr>\n<tr>\n<td>Interactive sliders in Simulation Center's Explore view</td>\n<td><code>annotate-control-panel</code></td>\n</tr>\n<tr>\n<td>3D MultiBody animation</td>\n<td><code>annotate-modelica-animation</code></td>\n</tr>\n<tr>\n<td>A hydraulic circuit</td>\n<td><code>create-hydraulic-model</code></td>\n</tr>\n</tbody>\n</table>\n<h3>Locating the launcher</h3>\n<p><code>&lt;scripts-dir&gt;</code> (used throughout the skills) is the shared <code>scripts/</code> folder.\nSome installs symlink the skill directories without it, so resolve it in this\norder and use the first that exists:</p>\n<ol>\n<li><code>$WSM_SKILLS_SCRIPTS</code> (bash) or <code>$env:WSM_SKILLS_SCRIPTS</code> (PowerShell), if set.</li>\n<li><code>../scripts</code> relative to the skill directory — in a normal install\n<code>../scripts/wsm_run.py</code> already exists, so use that path directly; <strong>do not run\na shell probe to \"resolve\" it.</strong></li>\n<li>The folder you cloned or unzipped the skills from, e.g.\n<code>.../system-modeler-ai-toolkit/scripts</code>.</li>\n<li>Last resort, search the home directory:\n<ul>\n<li>PowerShell: <code>Get-ChildItem $HOME -Recurse -Filter wsm_run.py -ErrorAction SilentlyContinue | Select-Object -First 1</code></li>\n<li>bash/zsh: <code>find ~ -name wsm_run.py -path '*scripts*' 2&gt;/dev/null | head -1</code></li>\n</ul>\n</li>\n</ol>\n<p>If only #4 finds it, the install is missing the <code>scripts/</code> link — tell the user\nto run <code>install.sh</code> (or <code>install.ps1</code>) from the repo, which links <code>scripts/</code> too.</p>\n<h3>Shell and Python</h3>\n<p><strong>On Windows, use PowerShell.</strong> The Git-Bash/cygwin layer may be broken (even\n<code>ls</code>/<code>find</code> can be absent, giving a misleading \"exit 127 / command not found\").\nRun <code>wsm_run.py</code> with <code>python</code> (not <code>python3</code>); those calls are single-line and\nshell-agnostic. For cleanup use <code>Remove-Item -Recurse -Force</code>, not <code>rm -rf</code>.\nOn macOS/Linux any POSIX shell is fine and <code>python3</code> is the usual name.</p>\n<p><strong>For your own analysis, borrow the scripts' interpreter.</strong> Whatever <code>python3</code>\nyou get is unlikely to have numpy or scipy, and installing into it is both rude\nand often blocked. The analysis scripts run under a managed virtualenv with\nnumpy, scipy, matplotlib and DyMat; <code>python3 &lt;scripts-dir&gt;/bootstrap_env.py</code>\nmakes sure they are installed there and prints its interpreter path. Use that\ninterpreter for ad-hoc post-processing rather than discovering package by\npackage what the system one lacks.</p>\n<h3>Line endings in .mo files</h3>\n<p>Modelica models are written on Windows, macOS and Linux alike, so a <code>.mo</code> file\nmay use CRLF or LF. <strong>Neither is the \"right\" one.</strong> Match whatever the file\nalready has, and never leave a file with a mix of both — a mixed file shows up\nas a whole-file diff the moment anything rewrites it, burying the real change.</p>\n<p>When you edit a <code>.mo</code> yourself with the Write/Edit tools (rather than through one\nof the annotator scripts), those tools write back exactly the text you give them,\nso an edit in the other style silently mixes the file. Check before, and check\nagain after:</p>\n<pre><code>python3 \"&lt;scripts-dir&gt;/mo_edit.py\" --eol \"&lt;Model.mo&gt;\"\n</code></pre>\n<p>It prints <code>LF</code>, <code>CRLF</code>, <code>MIXED (crlf=N lf=M)</code> or <code>NONE</code>, and exits non-zero on\n<code>MIXED</code>. If an edit did change the endings, put them back — this rewrites the\nwhole file to one ending, so it also repairs a mixed one:</p>\n<pre><code>python3 \"&lt;scripts-dir&gt;/mo_edit.py\" --set-eol auto \"&lt;Model.mo&gt;\"   # or: lf, or crlf\n</code></pre>\n<p><strong>A mixed file follows its library, not itself.</strong> If the file you are editing is\nmixed while the rest of the library is consistent, do not settle it on whichever\nending dominates <em>inside</em> that file — the mixing is damage, so the file is not\nevidence about itself, and its majority leaves you with the one odd file out.\nUse the library's ending. <code>auto</code> does this for you, and reports which rule it\napplied.</p>\n<p>Creating a new <code>.mo</code>: same rule — match the sibling <code>.mo</code> files in the same\ndirectory or library (<code>--eol</code> accepts several paths at once), so one library does\nnot end up half CRLF and half LF. Use LF only when there is nothing to match.</p>\n<p>The annotator scripts' <code>--write</code> paths already preserve the file's endings and\nwarn about a mixed input, so no manual step is needed around those.</p>\n<h3>Let the launcher own .mos/.bat and paths</h3>\n<p>Do <strong>not</strong> hand-write <code>.mos</code> scripts, <code>.bat</code> files, or hardcode install/compiler\npaths. The bundled <code>scripts/wsm_run.py</code> handles every OS difference — it finds\nthe System Modeler install and kernel binary (macOS / Windows / Linux), finds and\nloads the right MSL files, generates the <code>.mos</code>, and runs the kernel with a\nworking compiler environment per platform (system clang/gcc on macOS/Linux; the\nVisual Studio dev environment via <code>VsDevCmd.bat</code> on Windows).\nSee <a href=\"../scripts/README.md\"><code>../scripts/README.md</code></a> for <code>WSM_HOME</code>, the Windows compiler prerequisites,\nand the full option table.</p>\n<h3>When the install or compiler isn't found</h3>\n<p>The launcher searches each OS's standard install locations. If it prints\n<code>ERROR: Could not locate a Wolfram System Modeler installation</code>, the install\nis in a non-standard place — ask the user for it and re-run with\n<code>--wsm-home \"&lt;path&gt;\"</code> (or have them set <code>WSM_HOME</code>).</p>\n<p>Building and simulating also need a C++ toolchain:</p>\n<ul>\n<li><strong>Windows</strong>: Visual Studio Build Tools. The launcher locates <code>VsDevCmd.bat</code>\nitself; if it reports the compiler environment is missing, pass\n<code>--vsdevcmd \"&lt;path-to-VsDevCmd.bat&gt;\"</code> (or set <code>WSM_VSDEVCMD</code>) and make sure\nBuild Tools are installed.</li>\n<li><strong>macOS</strong>: the Xcode command-line tools (<code>xcode-select --install</code>).</li>\n<li><strong>Linux</strong>: gcc/g++.</li>\n</ul>\n<p>Run <code>python3 \"&lt;scripts-dir&gt;/wsm_run.py\" --mode info</code> to see what the launcher\ndiscovered.</p>\n<h3>Checking the setup</h3>\n<p>When the user asks whether the machine is ready for these skills, run\n<code>python3 &lt;scripts-dir&gt;/wsm_run.py --mode info</code> and report what it prints: the\nSystem Modeler installation it found and, on Windows, the compiler environment.\nIf <code>InstallationGuide.md</code> sits next to the <code>scripts/</code> folder, as it does when\nthe skills are installed as a plugin, it lists what each skill needs: follow its\nSteps 2, 4 and 5, and do not run the installer.</p>\n<h3>Temporary directories</h3>\n<p>The launcher works in a <code>_wsm_&lt;mode&gt;_temp/</code> directory\n(<code>_wsm_validate_temp/</code>, <code>_wsm_simulate_temp/</code>, <code>_wsm_diagnose_temp/</code>) and leaves\nits outputs there. It sits next to a single <code>.mo</code> file, or next to the top folder\nof a directory-form library, never inside the library. The launcher prints its\npath as <code>temp dir :</code>; <code>&lt;temp-dir&gt;</code> in the skills means that path. Tell the user,\ne.g.: \"Working in temporary directory <code>_wsm_&lt;mode&gt;_temp/</code>. This will be deleted\nafterwards.\" Pass <code>--tempdir</code>\nto reuse one directory across models in a session.</p>\n<p>Clean up by removing the whole directory — use the user's shell:</p>\n<pre><code>rm -rf \"&lt;temp-dir&gt;\"          # macOS / Linux\n# PowerShell: Remove-Item -Recurse -Force \"&lt;temp-dir&gt;\"\n</code></pre>\n<h3>Picking the model name</h3>\n<ul>\n<li><p>The user may provide a path to a <code>.mo</code> file, or you may already be working with\none in context.</p>\n</li>\n<li><p>Extract the <strong>model name</strong>: the identifier after <code>model</code> on the first non-comment\nline, e.g. <code>model FooBar</code> → <code>FooBar</code>. The filename does not always match the\nmodel name — parse the actual <code>model</code>/<code>package</code> declaration.</p>\n</li>\n<li><p>For packages or nested models, use the <strong>top-level</strong> model name.</p>\n</li>\n<li><p><strong>Pick an instantiable model, not a package</strong>, for any kernel call. A <code>package</code>\ncannot be validated or simulated (\"Invalid instantiation … is a package\") — use\na nested model's full dotted name, e.g. <code>Package.Model</code>.</p>\n</li>\n<li><p>Pass an <strong>absolute path</strong> to <code>--model</code> (relative paths break as the working\ndirectory shifts between calls).</p>\n</li>\n<li><p><strong>A class that is already in a loaded library needs no <code>--model</code> at all</strong> — give\njust the full dotted <code>--name</code> and the launcher takes it from MSL (or from a\n<code>--load-library</code> library). Use this for MSL examples rather than writing a\nwrapper model that extends one:</p>\n<pre><code>python3 \"&lt;scripts-dir&gt;/wsm_run.py\" --mode diagnose \\\n  --name Modelica.Mechanics.MultiBody.Examples.Loops.EngineV6\n</code></pre>\n<p>The temp dir then goes in the current directory. <code>--model</code> is still required\nfor a class in the user's own file.</p>\n</li>\n</ul>\n<h3>Directory-form (multi-file) libraries</h3>\n<p>A directory-form library stores one class per file with a <code>package.mo</code> at each\nlevel. You <strong>cannot</strong> validate such a class by handing the launcher only its own\n<code>.mo</code> file — the class's <code>within Lib;</code> clause needs the whole package loaded, and\nloading the single file alone fails with\n<code>Internal error: ... expandLibNode: Unknown library: Lib</code>. Instead point\n<code>--model</code> at the <strong>library folder</strong> (or its top <code>package.mo</code>, or any class file\ninside it) and pass the <strong>full dotted class name</strong> via <code>--name</code>:</p>\n<pre><code>python3 \"&lt;scripts-dir&gt;/wsm_run.py\" --mode validate \\\n  --model \"/abs/path/InvertedPendulum\" \\\n  --name InvertedPendulum.Controller\n</code></pre>\n<p>The launcher resolves any of those forms up to the library's root <code>package.mo</code>\nand loads the entire package (following <code>package.order</code>) before instantiating\n<code>--name</code>. It prints a <code>NOTE:</code> telling you which <code>package.mo</code> it loaded. Do <strong>not</strong>\ntry to work around the unknown-library error by <code>--load</code>-ing individual files.</p>\n<h3>Reading the JSON output</h3>\n<p>The kernel writes <code>&lt;mode&gt;.out.json</code> into the temp dir. <strong>It is a JSON <em>array</em> —\ntake the first element</strong>, then read:</p>\n<ul>\n<li><strong><code>status.flatten</code></strong>: <code>\"Pass\"</code> / <code>\"Fail\"</code> (the primary result for <code>validate</code>).</li>\n<li><strong><code>status.build</code></strong>: <code>\"Pass\"</code> / <code>\"Fail\"</code> — C++ compilation/linking (<code>simulate</code>).</li>\n<li><strong><code>status.result</code></strong>: simulation result status (<code>simulate</code>).</li>\n<li><strong><code>messages.errors</code></strong> / <strong><code>messages.warnings</code></strong> / <strong><code>messages.notifications</code></strong>:\narrays (empty if none).</li>\n<li><strong><code>flat_model</code></strong> (<code>validate</code>) / <strong><code>simulation.resultFile</code></strong> (<code>simulate</code>): the\nflattened class / path to the <code>.mat</code>.</li>\n</ul>\n<p>See <a href=\"../scripts/README.md\"><code>../scripts/README.md</code></a> (<code>wsm_run.py</code> section) for the full field reference.</p>\n<h3>Checking graphic annotations</h3>\n<p>A plain run does not evaluate the graphic annotations: <code>Icon</code>, <code>Diagram</code> and\n<code>Placement</code> are carried along untouched, so an error inside one cannot fail the\nrun. Add <code>--graphics</code> to have them evaluated together with the model:</p>\n<pre><code>python3 \"&lt;scripts-dir&gt;/wsm_run.py\" --mode validate --graphics \\\n  --model \"&lt;Model.mo&gt;\" --name \"&lt;Package&gt;.&lt;ModelName&gt;\" --timeout 90\n</code></pre>\n<p>Errors then arrive through the usual <code>status.flatten</code> and <code>messages.errors</code>: a\nvariable or component path that does not resolve, a misspelled shape\n(<code>Rectangel</code>) or field (<code>extend</code>), an array subscript out of bounds. This mode\nneeds no C++ compiler, so it is the gate to run after editing annotations.</p>\n<p>The compiling modes (<code>--mode simulate</code>, <code>--mode diagnose</code>) additionally generate\nthe model's diagram view, which evaluates the animated (<code>DynamicSelect</code>)\nexpressions themselves. The launcher prints a <code>graphics :</code> line naming the\ngenerated view; if it was not generated it says so and exits non-zero, meaning an\nanimated field could not be evaluated. It also exits non-zero, listing them, when\nan animated value falls back to its static value — typically an expression using a\nfunction the diagram does not support. Nothing else reports either.</p>\n<p>Evaluating the annotations is extra work for the frontend, so pass <code>--graphics</code>\nwhen the annotations are what you changed or are checking, not by default.</p>\n<p>Not every System Modeler version supports <code>--graphics</code>. On one that does not, the\nlauncher drops it with a <code>NOTE:</code> and runs without it, so the graphic annotations are\n<strong>not</strong> checked; say so rather than reporting them as valid.</p>\n<h3>MSL 4.x dialect</h3>\n<p>This toolchain ships <strong>MSL 4.x</strong>. When authoring models, use the 4.x names — the\n3.2 names flatten with confusing \"not found\" errors:</p>\n<ul>\n<li>units: <code>Modelica.Units.SI.*</code> (not <code>Modelica.SIunits.*</code>)</li>\n<li>source frequency parameter: <code>f</code> (not <code>freqHz</code>), e.g. <code>SineVoltage(V=.., f=..)</code></li>\n<li>declare the dependency with the exact MSL version, e.g.\n<code>annotation(uses(Modelica(version=\"4.1.0\")))</code></li>\n</ul>\n<p>Run <code>python3 \"&lt;scripts-dir&gt;/wsm_run.py\" --mode info</code> to get the exact MSL\nversion. <code>wsm_run.py</code> also warns on stderr if it spots a 3.2 name in the model.</p>\n<p><strong>When a flatten fails with <code>Element not found ... in Modelica...</code></strong>, the MSL\ncomponent path is wrong (a misremembered name, not a missing install). Resolve\nthe correct path with the <strong>search-modelica-docs</strong> skill — e.g. sine is\n<code>Modelica.Blocks.Sources.Sine</code> (not <code>Math.Sine</code>), difference is <code>Math.Feedback</code>\n(not <code>Math.Subtract</code>), and saturation is <code>Nonlinear.Limiter</code> (not\n<code>Nonlinear.Saturation</code>). <strong>Do not</strong> grep or walk the System Modeler install tree\nto hunt for the class.</p>\n<h3>Using non-MSL libraries (Hydraulic, and other installed libraries)</h3>\n<p>MSL is automatic (<code>--msl</code>). For <strong>any other</strong> library a model uses — Hydraulic, or\nanything the user installed from the Library Store — the launcher can find it for you.\nTwo steps, no guessing at paths:</p>\n<ol>\n<li><p><strong>See what is installed</strong> (bundled with System Modeler, user-installed archives, and\nany custom folders configured in Model Center):</p>\n<pre><code>python3 \"&lt;scripts-dir&gt;/wsm_run.py\" --mode libraries\n# add --json for a machine-readable array; each row has name/version/source/package\n</code></pre>\n<p>To get just one library's package path (e.g. for a manual <code>--load</code>):\n<code>--mode libraries --library Hydraulic</code> (add <code>--library-version 2.1</code> to pin a version).</p>\n</li>\n<li><p><strong>Load it into a build</strong> by name — add <code>--load-library &lt;Name&gt;</code> to a validate /\nsimulate / diagnose run (repeatable; pin a version with <code>Name==Ver</code>):</p>\n<pre><code>python3 \"&lt;scripts-dir&gt;/wsm_run.py\" --mode validate \\\n  --model \"&lt;path&gt;/M.mo\" --name M --load-library Hydraulic\n</code></pre>\n<p>The launcher resolves the library (bundled → user-installed → Model-Center custom\npath, newest version wins) and <code>loadFile</code>s it before the model. A library usually\npulls in MSL, so keep MSL on (auto, or <code>--msl yes</code>). Override a lookup with\n<code>$WSM_LIBRARY_&lt;NAME&gt;</code> (e.g. <code>WSM_LIBRARY_HYDRAULIC=/path/to/package.moe</code>), or fall\nback to an explicit <code>--load &lt;path-to-package.mo|.moe&gt;</code>.</p>\n</li>\n</ol>\n","files":[{"path":"SKILL.md","sizeBytes":37192,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-25T18:26:48.651972Z","sha256":"F37B1C6C94EB61BBBD987FB0FC8DCE86E147DBE379DB8B6A6312633555999608","sizeBytes":15256},"review":null,"source":{"repositoryUrl":"https://github.com/WolframResearch/system-modeler-ai-toolkit","path":"modelica-model-architecture","license":"MIT","commit":"7f6f400bca70ed900f24bf9b6b62f6888515bf35","subtreeSha":"3BA3572D5F3F100810BC04DE7BE874600940231F24AB2DA8DCB486F266B26EC0","lastSyncedAt":"2026-11-25T18:26:12.846183Z"},"reviewedAt":"2026-11-25T18:28:20.097369Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/WolframResearch/system-modeler-ai-toolkit/tree/main/modelica-model-architecture"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install wolframresearch-system-modeler-ai-toolkit@llmmart"},{"target":"git","command":"git clone https://github.com/WolframResearch/system-modeler-ai-toolkit.git"}]}