Tests Simulink models with ephemeral Gherkin-based tests for quick validation or persistent Simulink Test API tests authored from requirements or behavioral specs.
Ships in verification-validation-and-test. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Requires Simulink Test and R2023a or later. The requirement-driven entry point also requires Requirements Toolbox. The coverage workflow also requires Simulink Coverage. If Simulink Test is unavailable, use simulating-simulink-models with manual assertions.
building-simulink-modelssimulating-simulink-modelsmodel_query_params / model_resolve_paramsgenerate-requirement-draftsinject-faultsmanage-safety-analysissimulating-simulink-models with manual assertionsThis skill provides two testing approaches. Choose based on task context:
Gherkin (model_test) | Simulink Test API (test_create family) | |
|---|---|---|
| Persistence | Ephemeral — harness discarded after session | Persistent — .mldatx files remain in project |
| Speed | ~3s (draft mode) | ~60s (full Simulink Test infrastructure) |
| Traceability | None | Full requirement linking via .slreqx |
| Use case | Bug fixes, quick validation, agentic loop | Certification, systematic testing, formal V&V; also takes behavioral specs |
| Approval needed | No | Yes — engineer reviews test plan before execution |
| Coverage | coverage parameter ('none' or 'decision') | Via test_run options |
| Toolbox | Simulink Test | Simulink Test (+ Requirements Toolbox for requirement path) |
→ For Gherkin testing, read references/gherkin-based-fast-testing.md
→ For Simulink Test API authoring (requirements / behavioral spec), read references/simulink-test-authoring.md
model_overview and model_read on the target subsystem to identify inputs, outputs, and expected behavior..feature file: Author a Gherkin test following the syntax in references/gherkin-based-fast-testing.md. Start with one scenario covering the primary nominal case.model_query_params. If it is inf (or unset/auto), you MUST pass a finite stop time to model_test — an infinite sim never returns and hangs MATLAB. Pick a finite value that lets the behavior settle (2–30s for a step response).model_test with draft_mode='true' for rapid iteration (~3s). Fix syntax or signal errors.draft_mode='false' to validate against the actual compiled model (catches type/dimension mismatches).coverage='decision' to identify untested branches.model_overview and model_read on the target subsystem to identify inputs, outputs, and expected behavior.test_create until the engineer approves.test_create with the appropriate entry point — component/model only or requirement-driven (RequirementID + ReqSetPath). Pass TestFile as an absolute path under the working folder (never a bare filename — it would land in the skill's scripts/ dir, since that is the project_path). See references/simulink-test-authoring.md for call shapes.test_edit until the engineer approves. Always set a finite StopTime via test_edit — if the model's StopTime is inf (or unset), the test run never returns and hangs MATLAB. Choose a finite value that lets the behavior settle (2–30s for a step response).test_run, present pass/fail summary with assessment detail. Engineer decides next steps.model_overview / model_read) before writing tests — otherwise you write tests against wrong I/Oinf. Check StopTime before any model_test/test_run; if it is inf or unset, override it with a finite value first. An infinite sim never returns and hangs the MATLAB session (and, in a shared session, every subsequent task).references/gherkin-based-fast-testing.md — Gherkin syntax, draft mode, coverage, Simscape constraintsreferences/simulink-test-authoring.md — API manual: setup, constraints, test_create entry shapes, edit/read/run signaturesreferences/assessment-format.md — LoggedSignals and Assessments struct formatsassets/test-structure-template.md — Test structure proposal template (requirement-driven path)assets/test-config-template.md — Test configuration proposal template (requirement-driven path)Copyright 2026 The MathWorks, Inc.
assets/test-config-template.md (opens in a new tab)assets/test-structure-template.md (opens in a new tab)manifest.yaml (opens in a new tab)references/assessment-format.md (opens in a new tab)references/gherkin-based-fast-testing.md (opens in a new tab)references/simulink-test-authoring.md (opens in a new tab)scripts/+vnv/+internal/+agentic/+common/+format/formatError.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+common/+format/formatMetadata.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+common/+format/formatTestCase.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+common/+format/formatTestFile.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+common/+format/formatTestSuite.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+common/+requirements/linkRequirements.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+common/+requirements/readRequirements.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+helpers/AssessmentBuilder.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+helpers/readResults.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+helpers/resolveComponent.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+helpers/sanitizeDescription.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+helpers/setParameterOverrides.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+helpers/setSimConfig.p (opens in a new tab)scripts/+vnv/+internal/+agentic/+helpers/widenToHarnessOwner.p (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/verification-validation-and-test:testing-simulink-modelsfrom verification-validation-and-test
npx claudepluginhub matlab/simulink-agentic-toolkit --plugin verification-validation-and-test9 skills in this plugin
/author-modeladvisor-checksAuthor or upgrade Model Advisor checks for Simulink and System Composer models. Covers the full lifecycle: guideline authoring, check specification, Model Advisor check implementation, and qualification testing. Use when creating new checks (edit-time, standard batch, config-parameter, auto-fix), converting legacy StyleOne/StyleTwo/StyleThree checks to modern DetailStyle, creating a guideline for modeling, enforcing a modeling rule, or testing/qualifying a check. Triggers on any modeling constraint (e.g., "blocks shall...", "signals must match...", "parameters shall be set to...").
/checking-model-complianceUse this skill when the user asks to check Simulink model compliance against a standard (MISRA, MAB, JMAAB, ISO, DO, IEC, EN, CERT C/CWE, AUTOSAR, Simulink Code Inspector (SLCI)), wants to run Model Advisor checks, or needs a compliance report with fix suggestions. For JMAAB/MAB, supplement deterministic checks with agentic review of uncheckable guidelines./fix-sldv-incompatibilityUse when a Simulink model is incompatible with Simulink Design Verifier (sldvcompat returns false, or an SLDV analysis errors out on an unsupported construct) and needs to be made analyzable. Diagnoses the incompatibility, applies the matching fix to a copy, and confirms the copy is compatible; optionally raises confidence the fix preserved behavior via a back-to-back consistency replay (agreement on the generated tests, not a proof of equivalence). Do NOT use for running test generation, design error detection, or requirement verification themselves — only for making a model compatible so those can proceed./inject-faultsAdd, configure, and manage faults on Simulink, Simscape, and System Composer model signals for robustness analysis and safety validation. Use when injecting faults (stuck, noise, gain, offset) onto block inports/outports, enabling fault simulation, or analyzing fault effects. Covers sensor failures, signal corruptions, actuator faults, FMEA validation, and robustness testing. Requires Simulink Fault Analyzer./manage-safety-analysisCreate, populate, and manage safety analysis spreadsheets (FMEA, FHA, HARA, custom) and fault trees (FTA) in Safety Analysis Manager. Use when the user asks to perform FMEA, hazard analysis, fault tree analysis, safety analysis, or work with Safety Analysis Manager documents. Requires Simulink Fault Analyzer./resolve-design-errorsUse when asked to run Design Error Detection (quick defect scan), find design errors in a Simulink model, perform root cause analysis on DED findings, fix division-by-zero, overflow, dead logic or out-of-bounds defects detected by SLDV, or diagnose why missing coverage cannot be achieved (dead logic blocking coverage objectives). Do NOT use for requirement verification, test generation, Inf/NaN detection, active logic analysis, or coverage measurement.Other plugins' skills for the same job