Explains why Simulink Coverage objectives (decision, condition, MCDC, relational-boundary, saturation/overflow) are missing or unsatisfied on an existing coverage result. Determines if uncovered logic is dead code or untested, and recommends how to close the gap via tests, filters, or design changes.
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.
Explain why coverage objectives are missing on a coverage result the user already
has, and what to do about each one — across all objective types (decision,
condition, MCDC, relational boundary, saturation/overflow, lookup-table execution).
Works from an existing cvdata / cvdatagroup, a .cvt file, a
Simulink.SimulationOutput with coverage on, or a Simulink Test result set.
It keeps two questions separate:
Requires: MATLAB R2023a+, Simulink Coverage, Simulink Design Verifier (dead-logic detection), Simulink Check / Model Slicer (input tracing). The skill never collects coverage — it reads a result that already exists. When SLDV or the Model Slicer is unavailable, the affected step degrades honestly (see Guardrails), never fabricating evidence.
testing-simulink-models. This skill recommends a
scenario in words; it does not build a harness or generate vectors.resolve-design-errors.checking-model-compliance.All four sources resolve to the one object the analysis consumes — a cvdata /
cvdatagroup. resolveCoverageData normalizes them and makes no decisions; when a
source carries more than one unit, the agent asks which to explain.
| Source | Holds | Resolves via |
|---|---|---|
cvsim result | cvdata / cvdatagroup | pass through |
.cvt file | path | cvload (cell of cvdata) |
sim w/ coverage | SimulationOutput | embedded cvdata var, else cvresults(model) (per-run + cumulative) |
| Simulink Test | ResultSet | getCoverageResults (cvdata object array) |
Rules the agent applies: multiple units → always ask which to explain (never merge or
pick silently); cvresults per-run vs. cumulative → cumulative by default, mention the
single-run view exists.
All script functions live in the skill's scripts/ directory. Call them with
evaluate_matlab_code and project_path set to that folder. Never addpath,
restoredefaultpath, or savepath — altering the session path breaks the coverage tooling.
Use these functions; do not hand-roll resolution, extraction, the SLDV run, the join, or the trace. The Step-2 join in particular matches SLDV verdicts to outcomes on an exact key — the agent must never do that matching itself.
| Function | Inputs → Output | Role |
|---|---|---|
resolveCoverageData(source) | source → {cvdata,model,kind,label}[] | Normalize sources to a list of units |
getCoverageSummary(cvd) | one cvdata → covSummary | Rollups + outcome detail + filter/reduced info |
detectDeadLogicObjectives(model, metrics) | model + metrics → [dead, status] | SLDV dead-logic (decision/condition/MCDC only) |
markSldvDeadLogic(covSummary, dead) | covSummary + dead → covSummary | Deterministic join — stamp dead, record unmatched/contradictions |
traceObjectiveInputs(model, blockPaths, maxDepth) | model + paths → [traces, status] | Slicer: controllable inputs + dependency chain |
The scripts return MATLAB structs. Their exact output contracts — field names, nesting,
what an absent field means — are documented in references/script-outputs.md; consume
the returns by that reference rather than probing fieldnames and guessing paths. Deeper
method detail lives in references (load on demand): SLDV recipe + join semantics in
references/dead-logic-analysis.md; classification + scenario composition in
references/explaining-and-resolving.md; filter authoring in
references/coverage-filter-api.md (load after filter approval, Step 3); read-only
requirement traceability in references/requirements-tracing.md (load when prioritizing
by requirement linkage, Step 3).
Three steps. Step 1 is cheap and always safe; Steps 2–3 run the expensive engines and are gated — do not run them for a plain "summarize" request.
1. Summarize coverage → resolveCoverageData + getCoverageSummary
2. Locate missing objectives → collect uncovered outcomes; if any decision/condition/MCDC
are uncovered, detectDeadLogicObjectives + markSldvDeadLogic
3. Explain and resolve → traceObjectiveInputs on the owning blocks; agent explains
cands = resolveCoverageData(source). The source's model must be loaded first — if it
isn't open or on the path, load_system it (not addpath). If numel(cands) > 1, ask
which unit(s) to explain. For a sim yielding per-run and cumulative, default to cumulative
and say so.covSummary = getCoverageSummary(cands(k).cvdata).kind == 'system' nodes — the model root and each subsystem/chart, not
subsystems only; omit fully-covered ones). Name the enabled metrics.Gate. Stop here unless the user asked why coverage is missing or how to improve it.
covered == false). If none, STOP — report
full coverage on the enabled metrics.[dead, status] = detectDeadLogicObjectives(model, metrics); % dead-eligible metrics present
covSummary = markSldvDeadLogic(covSummary, dead); % exact-key join; do NOT match by hand
references/dead-logic-analysis.md):
ran and the join stamped dead == true (fact).ran, not stamped
dead: "SLDV found no dead logic here, so it needs a test." Not a completeness proof.skipped_no_license / error, or a
non-SLDV-analyzable metric (relational / saturation / lookup-table). State the reason.Trace the owning blocks of the uncovered outcomes in one batch, then reason over the
evidence (full method in references/explaining-and-resolving.md):
[traces, status] = traceObjectiveInputs(model, blockPaths);
Constant/configuration, or a defensive guard
the trace shows can't be reached in this context (a range clamp, a divide-by-zero guard) →
likely intentional (recommend a coverage filter, Justify mode —
references/explaining-and-resolving.md, references/coverage-filter-api.md). A dead
branch tracing to controllable inputs → likely unintentional (recommend a design review).
When the trace leaves intent unclear, use model_read / model_overview for more context.y = (u2 >= 5) ? …, false uncovered → drive u2 < 5), stated in the
controllable inputs. Group outcomes sharing inputs — one test often closes several.method == "unavailable", fall back to model_read /
model_overview on that block; never fabricate inputs or a chain.references/requirements-tracing.md) if Requirements Toolbox is available: a
linked + uncovered outcome is "untested but required" (cite the requirement ID) and
outranks an unlinked one; an unlinked outcome is lower priority (a hint the logic may be
unrequired — surface it, do not conclude it). If Requirements Toolbox is unavailable, say
so and prioritize without it.Writing a .cvf filter or editing the model is Ask First (Guardrails).
status == "skipped_no_license" / "error"
and per-block method == "unavailable" mean not performed — say so..cvf) — present the rule and rationale; write only on
explicit approval, using the engineer's rationale (never fabricated).markSldvDeadLogic owns the join.status == -1) can hide deadness.addpath / restoredefaultpath / savepath).| Mistake | Fix |
|---|---|
| Running SLDV / Slicer for a "summarize" request | Step 1 only; gate on wanting the why |
| Running SLDV when no decision/condition/MCDC outcome is uncovered | SLDV covers those three metrics only; skip otherwise |
| Reporting "provably dead" when SLDV was skipped/errored | Nothing is provably dead without a completed SLDV run |
| Calling non-D/C/MCDC gaps "reachable" | SLDV can't analyze them; state deadness as not established |
| Matching SLDV results to outcomes in the agent | Call markSldvDeadLogic; consume dead_analysis |
| Classifying dead logic from block names | Classify from the dependency chain + model_read |
Fabricating a chain when method == "unavailable" | Fall back to model_read / model_overview |
| Silently picking one cvdata from many | Ask which unit to explain |
Copyright 2026 The MathWorks, Inc.
manifest.yaml (opens in a new tab)references/coverage-filter-api.md (opens in a new tab)references/dead-logic-analysis.md (opens in a new tab)references/explaining-and-resolving.md (opens in a new tab)references/requirements-tracing.md (opens in a new tab)references/script-outputs.md (opens in a new tab)scripts/detectDeadLogicObjectives.p (opens in a new tab)scripts/getCoverageSummary.p (opens in a new tab)scripts/markSldvDeadLogic.p (opens in a new tab)scripts/resolveCoverageData.p (opens in a new tab)scripts/traceObjectiveInputs.p (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/verification-validation-and-test:simulink-explain-missing-coveragefrom 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