Style MATLAB charts and figures. colororder palettes for chart series colors, colormap selection, brand color organization, and the R2025a Theme API for uifigure apps (dark mode with fliplightness, ThemeChangedFcn, uistyle, component colors).
SkillScore100Maintained
Automatic
◆Coding pack
Last verified 8/16/2026
What it changes
Passed 22 of 22 test cases with the skill, and 12 of 22 without it.
Without skill55%
With skill100%
Checks it passed that the model alone missed
Uses plotColors for the matrix of chart series colors.
Sets BackgroundColorMode to auto on the button component.
Stores the main brand color in a struct field named primary.
and 13 more in the full report
10 fixed12 passed either way0 still failing0 broke
Pass-rate lift
+45 pp
Tokens
+45%
Agent turns
0%
Response time
-44%
Model gemini-3.6-flashMeasured 8/16/2026v122 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 10
Prompt
I have defined a custom brand color struct for my MATLAB uifigure app with theme.primary = [0 0.45 0.74] for light mode. Instead of hardcoding a separate dark mode RGB color vector, what built-in MATLAB R2025a function automatically inverts or adjusts the lightness of RGB color matrices for dark mode?
What was checked, without and with the skill
Checked
Without skill
With skill
Calls fliplightness to generate dark mode variants from light mode RGB values.
Missed
Passed
case-10 · gemini-3.6-flash · 8/16/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md172 lines4 files
MATLAB Theming
Style MATLAB charts with color palettes and — for uifigure apps — apply the R2025a Theme API for brand colors, dark mode, and component styling.
When to Use This Skill
Use this skill when:
Setting colororder for chart series colors (any context)
Choosing or importing a color palette for plots
Organizing brand colors into a reusable struct
Applying a custom colormap for continuous data
Implementing dark mode with fliplightness() (uifigure)
Wiring ThemeChangedFcn to react to OS/user theme changes (uifigure)
Using uistyle for conditional formatting in tables/trees (uifigure)
Importing an external color scheme (Material Design, Adobe Color, Tailwind)
When NOT to Use This Skill
Choosing chart types or building charts from scratch (use matlab-build-chart)
Building a full app layout (use matlab-build-app — it invokes this skill for theming sub-steps)
Setting colors on individual plot elements as a one-off (just use the Color property directly)
Non-MATLAB styling (CSS, HTML themes for web apps)
Critical Rules
Universal (all contexts)
MUST centralize brand/palette colors in a struct — never scatter RGB values
ALWAYS use colororder() for categorical chart series colors
ALWAYS use colormap() for continuous scalar-mapped colors
NEVER confuse colororder (categorical series) with colormap (continuous gradient)
Additional rules for uifigure apps (R2025a Theme API)
MUST use R2025a Theme API — do NOT manually set figure background or standard component colors
MUST use fliplightness() to derive dark variants unless explicitly designing custom dark colors
NEVER set a component's color explicitly unless branding requires it — breaks theme adaptation
ALWAYS use the semantic token vocabulary defined below for cross-path consistency
Upgrade C, C++, and Fortran MEX source files from the Separate Complex (SC) API to the Interleaved Complex (IC) API. Use when converting mxGetPr/mxGetPi to mxGetComplexDoubles, migrating MEX files to -R2018a, adding MX_HAS_INTERLEAVED_COMPLEX guards for SC/IC guarded builds, or modernizing legacy MEX code that uses mxGetData/mxSetData/mxGetImagData/mxSetImagData. Covers C (.c), C++ (.cpp, .cxx), and Fortran (.F, .f90) MEX functions. Triggers on: interleaved complex, IC MEX, mex upgrade, mex migr