
checking-model-compliance
Use 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.
- Installs
- 57
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/matlab/simulink-agentic-toolkit --skill checking-model-compliance- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads checking-model-compliance automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Checking Model Compliance
Runs Model Advisor checks for a named standard (or default configuration) and delivers a prioritized summary with fix suggestions.
When to Use
- Checking whether a Simulink model complies with a standard (MISRA, MAB, JMAAB, ISO 26262, DO-178C, etc.)
- Running Model Advisor checks against a named compliance standard
- Generating a compliance report with prioritized findings and fix suggestions
- Running a custom Model Advisor configuration file against a model
- Justifying or waiving specific compliance violations
When NOT to Use
- Building or editing model structure →
building-simulink-models - Writing behavioral tests →
testing-simulink-models - Structural validation only (unconnected ports) →
model_checktool directly - General model quality questions without a named standard (e.g., "is my model well decomposed?") — this requires a different workflow
Supported Standards
| 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):
- ISO 26262, IEC 61508, IEC 62304, EN 50128/EN 50657, ISO 25119
- DO-178B, DO-178C, DO-331
Custom Checks and Configurations
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:
- Custom configuration file: User provides a path → use
model_advisor_runwith'configuration'parameter directly (Path B) - Custom check IDs: User provides specific check IDs → use
model_advisor_runwith'checks'parameter directly (skip resolution)
Prerequisites
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') |
Workflow
1. Identify Standard, Model, and Scope
Determine from user request:
- Standard — map to supported name (see table). Defaults: "MISRA" →
MISRA_C. For "JMAAB" without version → ask user (v5.1 or v6) - Model —
.slxfile (ask if ambiguous) - Scope — full model (default) or subsystem path (e.g.,
Model/Controller)
Disambiguation rules:
- "JMAAB" without version specifier → ask (v5.1 or v6 — two distinct check sets)
- "ISO" without specifier → ask (multiple supported)
- "DO" without specifier → ask (178C vs 254)
- Multiple standards requested → resolve each, compare sets, run once if identical
2. Choose Path
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).
3. Resolve Checks (Path A only)
model_advisor_resolve_checks('standard', '<STANDARD_NAME>')
status: success→ notechecks_count, inform userstatus: truncated→ use returned config file path in step 4status: error→ report and stop
Gate: 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.
4. Run Checks
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.
5. Analyze Findings
Classify from YAML response:
- Critical (Failed) — must fix for compliance
- Warnings (Warning) — should fix, may be justifiable
- Informational — low priority
6. Present Compliance Report
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:
- One line per check; max 3-5 block paths shown per check (state total)
- Target 40-60 lines; max ~80
- Offer "I can list all affected blocks for check X" for detail
7. Performing the Uncheckable Guidelines Review (JMAAB/MAB only)
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:
- From the Model Advisor results, identify which checked guidelines appear in the semantic evaluation index
- For those guidelines, extract model data using MCP tools (
model_overview,model_read,model_query_params) - Apply the Quick Rules from the index for each applicable guideline
- For borderline cases, use the Semantic Gap column to calibrate judgment
Judgment: worst verdict across findings (FAIL > WARNING > PASS). Confidence 0.0-1.0. Do NOT issue FAIL if confidence < 0.5.
8. Fix Mode
Ask: "Would you like me to fix these issues?"
- No → stop (report only)
- Yes → load and follow
references/fix-mode.mdworkflow
A 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.
9. Justification Mode
If user wants to justify/waive/suppress violations → load and follow the Justification section in references/fix-mode.md.
Guardrails
Always
- For JMAAB/JMAAB_V6/MAB: ALWAYS perform Step 7 (Uncheckable Guidelines Review) — the report is incomplete without it
- Show standard name + check count before running
- Include block paths in findings
- Follow Fix Order strictly (structural → diagnostic) to prevent cascading false failures
- Summarize, do not echo raw output
- Confirm with user before executing >=100 checks
- Ask the user for justification text before adding any justification — never fabricate rationale
- If a reference tool returns an error, report it verbatim — do not retry with alternative approaches
- Confirm which model to check if multiple
.slxfiles are present or the name is ambiguous - State the resolved standard name and version in the report header
- Report the exact check count from tool output
- When explaining failures, list all distinct root causes
Ask First
- Fix mode modifications — never modify model without per-batch confirmation
- Justification — always a human decision
- Running >100 checks — confirm scope is intentional
Never
- Claim "model IS compliant" — only report pass/fail; compliance determination is user's responsibility
- Escalate diagnostics before structural fixes
- Suppress findings without explicit request
- Guess parameter names — use exact
parameterfield from check output - Modify the MATLAB path permanently (no
savepath) - Run
slbuildor code generation without explicit user permission - Re-run checks unnecessarily — reuse violation IDs from the most recent run if the model has not been modified since; only re-run to get fresh hashes if the model changed
Error Recovery
| 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.
FAQ
What does the checking-model-compliance skill do?
Use 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.
How do I install checking-model-compliance?
Run npx skills add https://github.com/matlab/simulink-agentic-toolkit --skill checking-model-compliance in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/checking-model-compliance/ (personal) or .claude/skills/checking-model-compliance/ (project).
Which AI agents can use checking-model-compliance?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is checking-model-compliance safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains checking-model-compliance?
It is published by matlab in matlab/simulink-agentic-toolkit. It has 57 recorded installs.
More from matlab/simulink-agentic-toolkit
building-simulink-models
matlab/simulink-agentic-toolkit
Builds and edits Simulink, System Composer, Stateflow, and Simscape models. Use when modifying model structure, parameters, ports, connections, or Stateflow chart internals.
simulating-simulink-models
matlab/simulink-agentic-toolkit
Configures Simulink simulations non-destructively using SimulationInput objects — parameter overrides without modifying the model, batch sweeps via parsim, custom input signals via Dataset, and simulation data retrieval via logsout. Use when running sim()/parsim() with setVariable, setBlockParameter, setExternalInput, or when performing parameter sweeps and multi-run analysis. Not needed for one-shot simulations without configuration.
testing-simulink-models
matlab/simulink-agentic-toolkit
Tests Simulink models using either ephemeral Gherkin-based tests (modeltest) for quick validation or persistent tests (Simulink Test API) authored from requirements or behavioral specs. Requires Simulink Test.
specifying-plant-models
matlab/simulink-agentic-toolkit
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.
specifying-mbd-algorithms
matlab/simulink-agentic-toolkit
Specify algorithms for Model-Based Design: system specs, architecture specs, implementation plans, test plans. Use when creating specifications for controllers, signal processing, diagnostics, estimators, or other algorithms authored in Simulink, Stateflow, System Composer, or MATLAB Function blocks.
generate-requirement-drafts
matlab/simulink-agentic-toolkit
Generates draft requirements from Simulink models. Use when drafting or updating requirement artifacts from a model. Prefers Requirements Toolbox (.slreqx) when available; falls back to structured YAML.
Popular security skills
azure-compliance
microsoft/azure-skills
Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.
minimal-run-and-audit
lllllllama/rigorpilot-skills
Rigor Run skill for README-first deep learning repo reproduction. Use when the task is specifically to capture or normalize evidence from the selected smoke test or documented inference or evaluation command and write standardized reprooutputs/ files, including patch notes when repository files changed. Do not use for training execution, initial repo intake, generic environment setup, paper lookup, target selection, hidden scientific-meaning changes, or end-to-end orchestration by itself.
seo-audit
coreyhaines31/marketingskills
When the user wants to audit, review, or diagnose SEO issues on their site. Also use when the user mentions "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," "SEO health check," "my traffic dropped," "lost rankings," "not showing up in Google," "site isn't ranking," "Google update hit me," "page speed," "core web vitals," "crawl errors," "indexing issues," "stuck on page 2," "striking distance keywords," "title tag rewrite," "low CTR," "local SEO," "Google Business Profile," or "map pack." Use this even if the user just says something vague like "my SEO is bad" or "help with SEO" — start with an audit. For building pages at scale to target keywords, see programmatic-seo. For adding structured data, see schema. For AI search optimization, see ai-seo.
firebase-security-rules-auditor
firebase/agent-skills
Audits Firebase (Firestore, Cloud Storage) security rules for vulnerabilities, privilege escalation, role bypasses, create vs update inconsistencies, resource exhaustion, type safety, size limits, and hasOnly ownership checks. Use when auditing/reviewing rules, running red-team rule assessments, or scoring against auditor checklists. Don't use for Firebase CLI (login, deploy), Auth, Crashlytics, Remote Config, or database queries.
security-audit
cloudflare/security-audit-skill
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
competitors
coreyhaines31/marketingskills
When the user wants to create competitor comparison or alternative pages for SEO and buyer-facing use. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'competitor teardown,' 'audit our competitor pages,' 'are our comparison pages out of date,' or 'competitive asset audit.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. For auditing existing claims (not researching competitors from scratch, which is competitor-profiling; not technical SEO on these pages, which is seo-audit), use the asset audit here. For internal battle cards and sales-specific competitor docs, see sales-enablement.