Checks Simulink model compliance against standards (MISRA, MAB, JMAAB, ISO, DO, IEC, EN, CERT C/CWE, AUTOSAR, SLCI) using Model Advisor. Generates prioritized compliance reports with fix suggestions.
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.
Runs Model Advisor checks for a named standard (or default configuration) and delivers a prioritized summary with fix suggestions.
building-simulink-modelstesting-simulink-modelsmodel_check tool directly| Standard | Accepted Inputs |
|---|---|
| MISRA C:2023 | MISRA_C, MISRA C, MISRA |
| MISRA Simulink/Stateflow | MISRA_SLSF, MISRA Simulink |
| MAB | MAB, MAAB |
| JMAAB v5.1 | JMAAB |
| JMAAB v6 | JMAAB_V6, JMAAB06 |
| ISO 26262 | ISO_26262, ISO 26262 |
| ISO 25119 | ISO_25119, ISO 25119 |
| DO-178C/DO-331 | DO_178C, DO-178C, DO-178B, DO-331 |
| DO-254 | DO_254, DO-254 |
| IEC 61508 | IEC_61508, IEC 61508 |
| IEC 62304 | IEC_62304, IEC 62304 |
| EN 50128/EN 50657 | EN_50128, EN 50128, EN_50657 |
| Secure Coding (CERT C, CWE) | SECURITY, CERT_C, CWE, secure coding |
| AUTOSAR | AUTOSAR |
| Simulink Code Inspector (SLCI) | SLCI, Simulink Code Inspector |
Equivalent check sets (run once, report for both):
Users may have custom Model Advisor checks or custom configuration files (.json exported from Model Advisor Configuration Editor). These are not standards — they are handled via:
model_advisor_run with 'configuration' parameter directly (Path B)model_advisor_run with 'checks' parameter directly (skip resolution)All script functions are in the skill's scripts/ directory. Use evaluate_matlab_code with project_path set to the skill's scripts/ folder so MATLAB can find them. Never use addpath.
Tools provided (always use these — never improvise with raw Model Advisor API):
| Function | Inputs | Output | Example |
|---|---|---|---|
model_advisor_resolve_checks | 'standard', '<NAME>' | struct with checks, checks_count, status | model_advisor_resolve_checks('standard', 'JMAAB') |
model_advisor_run | system, 'checks', {ids} or system, 'configuration', path | YAML with findings, status, check_summary | model_advisor_run('MyModel', 'checks', checkIds, 'token_budget', 8000) |
model_advisor_justify | model, checkId, blockPath, text | struct with status | model_advisor_justify('MyModel', 'mathworks.jmaab.db_0032', 'MyModel/Sub', 'Waived per review') |
detect_default_config | modelName | struct with config_path or empty | detect_default_config('MyModel') |
Determine from user request:
MISRA_C. For "JMAAB" without version → ask user (v5.1 or v6).slx file (ask if ambiguous)Model/Controller)Disambiguation rules:
Path A — Standard named: Proceed to step 3.
Path B — No standard, user says "run Model Advisor" / "check my model":
Run detect_default_config(modelName). If config found → skip to step 4. If empty → ask which standard (show supported list).
model_advisor_resolve_checks('standard', '<STANDARD_NAME>')
status: success → note checks_count, inform userstatus: truncated → use returned config file path in step 4status: error → report and stopGate: If checks_count > 100, confirm with user before proceeding. If the request already authorizes the full run (e.g., "run all checks, no need to confirm"), treat that as confirmation and proceed.
Shortcut: If the user already has specific check IDs, call model_advisor_run directly with those IDs and skip to step 5.
model_advisor_run('<system>', 'checks', {<check_ids>}) % inline checks
model_advisor_run('<system>', 'configuration', '<config_path>') % config file
Use 'token_budget', 8000. If truncated, read full results from full_results path.
Classify from YAML response:
For non-MAB/JMAAB standards, use this template:
## Compliance Summary: <Standard>
Model: <model> [Scope: <subsystem> if scoped]
Result: X passed, Y warnings, Z failures
### Critical Findings (must fix)
| Check | Blocks | Fix Type | Action |
|-------|--------|----------|--------|
| name | N | param/insert/config/routing/arch | what to change |
### Warnings (should fix)
| Check | Blocks | Fix Type | Action |
|-------|--------|----------|--------|
### Passed
N checks passed.
### Suggested Next Steps
[5-7 prioritized actions max]
For MAB, JMAAB, or JMAAB_V6 standards, use this template instead (includes the uncheckable guidelines review as an integral part of the report):
## Compliance Summary: <Standard>
Model: <model> [Scope: <subsystem> if scoped]
Result: X passed, Y warnings, Z failures
### Critical Findings (must fix)
| Check | Blocks | Fix Type | Action |
|-------|--------|----------|--------|
| name | N | param/insert/config/routing/arch | what to change |
### Warnings (should fix)
| Check | Blocks | Fix Type | Action |
|-------|--------|----------|--------|
### Passed
N checks passed.
---
### Agentic Review of Uncheckable Guidelines (LLM-based — not deterministic)
> **Note:** This is a semantic evaluation performed by an AI agent, not a deterministic Model Advisor check.
**Model:** <model_name>
**Judgment:** PASS | WARNING | FAIL
**Confidence:** 0.XX
#### Critical (must fix)
| Guideline | Blocks | Fix Type | Action | Confidence |
|-----------|--------|----------|--------|------------|
#### Warnings (should fix)
| Guideline | Blocks | Fix Type | Action | Confidence |
|-----------|--------|----------|--------|------------|
### Evidence
[2-3 sentences citing specific model data]
### Recommendation
[Top 3-5 prioritized actions, or "No action required."]
---
### Suggested Next Steps
[5-7 prioritized actions max, combining both deterministic and uncheckable findings]
Fix Type values: param (block parameter), insert (add block), config (model config), routing (reconnect signals), arch (restructure — recommend only)
Conciseness rules:
This section explains HOW to fill in the "Agentic Review of Uncheckable Guidelines" section that is part of the MAB/JMAAB report template above. You MUST complete this before presenting the report to the user.
Skip this step ONLY for other standards (MISRA, ISO 26262, DO-178C, etc.).
For JMAAB, JMAAB_V6, or MAB standards → load and follow references/uncheckable-guidelines-review.md.
What to do: Evaluate guidelines that Model Advisor cannot fully verify — guidelines where semantic judgment is required or no check exists at all. Load references/semantic-evaluation-index.md to get the list of uncheckable guidelines, then:
model_overview, model_read, model_query_params)Judgment: worst verdict across findings (FAIL > WARNING > PASS). Confidence 0.0-1.0. Do NOT issue FAIL if confidence < 0.5.
Ask: "Would you like me to fix these issues?"
references/fix-mode.md workflowA request such as "fix them for me" starts fix mode; it does not approve any specific change. Present the first batch of planned changes, ask the user to confirm, and end your turn. Never apply a batch in the same turn you present it.
If user wants to justify/waive/suppress violations → load and follow the Justification section in references/fix-mode.md.
.slx files are present or the name is ambiguousparameter field from check outputsavepath)slbuild or code generation without explicit user permission| Error | Action |
|---|---|
UNKNOWN_STANDARD | Check for typo/alias (e.g., "MAAB" → MAB). If valid but unsupported standard, acknowledge and show supported list. |
LICENSE_FAILED | Simulink Check license required |
MODEL_NOT_FOUND | Ask for correct model path |
CHECK_NOT_FOUND | Release mismatch — tell user which MATLAB release needed |
CONFIG_NOT_FOUND | Stale path — ask for update or fall back to named standard |
EXECUTION_FAILED | Model may have compilation errors — suggest fixing first |
| Token budget exceeded | Read full results from full_results field |
HASH_NOT_FOUND (justify) | Model modified since last run — re-run checks for fresh ids |
JUSTIFICATION_FILE_ERROR | Check file permissions and license |
Copyright 2026 The MathWorks, Inc.
manifest.yaml (opens in a new tab)references/fix-mode.md (opens in a new tab)references/semantic-evaluation-index.md (opens in a new tab)references/uncheckable-guidelines-review.md (opens in a new tab)scripts/detect_default_config.p (opens in a new tab)scripts/model_advisor_justify.p (opens in a new tab)scripts/model_advisor_resolve_checks.p (opens in a new tab)scripts/model_advisor_run.p (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
simulink-compliance, model-advisor, misra, mab, jmaab, cert-c
9 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...").
/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./simulink-collect-metricsCollect and assess quality metrics for Simulink models using the metric.Engine API. Use when evaluating model design quality (maintainability, complexity, architecture) or testing completeness (unit testing, SIL, PIL, coverage, pass rates) after edits or test runs. Covers metric discovery, collection, report generation, and diagnostics. Triggers on: "collect metrics", "quality metrics", "metric.Engine", "testing metrics", "maintainability metrics", "SIL metrics", "PIL metrics", "what metrics are available", "assess quality", "coverage metrics", "generate metric report", "diagnose metric errors".
/verification-validation-and-test:checking-model-compliancefrom verification-validation-and-test
npx claudepluginhub matlab/simulink-agentic-toolkit --plugin verification-validation-and-testOther plugins' skills for the same job