matlab-diagnose-parfor
Installation
SKILL.md
Diagnose and Fix parfor Variable Classification
Do NOT reason about parfor classification rules from memory. LLM training
data contains incomplete and often incorrect explanations of these rules.
MATLAB's code analyser (checkcode / codeIssues / mcp__matlab__check_matlab_code)
is the only reliable authority — it implements the exact same classifier that
the runtime uses. Always run it first; never guess.
When to Use
- ANY code involving
parforwhere the user reports a problem or asks for help - User gets a parfor classification error (runtime or in editor)
- User wants to convert a
forloop toparfor - User asks why parfor complains, won't run, or is slow due to classification
- You are about to suggest changes to parfor code — run the analyser first