Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnoses and fixes MATLAB parfor variable classification errors by running the code analyser and applying matching fix patterns.
Use this skill ↓4 of 25 test cases passed with the skill.
3 of 3 safety checks passed
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.
parfor where the user reports a problem or asks for helpfor loop to parforparfor but the user does not mention any problems with itAlways follow this order. Never guess at classification rules.
Run the code analyser on the file containing the parfor loop using
the mcp__matlab__check_matlab_code MCP tool. Do NOT shell out to MATLAB
via Bash — always use the MCP tool. Read the exact error message.
Identify the error type from the message (see table below).
Apply the matching fix pattern (see Patterns section).
Verify by re-running mcp__matlab__check_matlab_code on the fixed
code — confirm zero parfor classification errors.
For the full catalog of all 48 parfor analyser messages (with IDs), see
Next to this one in the catalogue, plus more from the same author.