bymatlab· 88 skills
Use when writing MATLAB functions with arguments blocks — repeating arguments (arguments (Repeating)), .?ClassName property import in constructors, name-value forwarding with namedargs2cell, or migrating from inputParser or validateattributes. Also when reviewing signatures for implicit-conversion pitfalls (size reshaping, class coercion, computed defaults), or when restricting, constraining, or validating function inputs — scalar vs vector enforcement, type rejection, size checking. Also when asked to harden inputs, make a function more robust, tighten input checking, or rewrite for safer input acceptance — even without "validation" or "arguments block" wording. Triggers on: arguments block, mustBe validators, name-value arguments, varargin, inputParser, nargin/narginchk, restrict input, type checking, scalar constraint, harden inputs, defensive programming. Not for: App Designer callbacks, Simulink mask parameters, class inheritance, or runtime validation outside function or property declarations.
$npx -y skills add matlab/matlab-agentic-toolkit --skill matlab-validate-function-argumentsInstalls into the current project.
Run `npx skills use "https://github.com/matlab/matlab-agentic-toolkit" --skill "matlab/matlab-agentic-toolkit/matlab-validate-function-arguments"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/matlab/matlab-agentic-toolkit" that are relevant to the current task. Run `npx skills add "https://github.com/matlab/matlab-agentic-toolkit"` and select the relevant skills, then follow their instructions.