[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EEEJETWJCY66M761GKCJBH":3,"skill-same:01M7EEEJETWJCY66M761GKCJBH":134},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M7EEEJETWJCY66M761GKCJBH","matlab",null,"Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular\u002Ftime data, tests, projects, graphics, MAT files, and explicit Python interoperability.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: matlab\ndescription: Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular\u002Ftime data, tests, projects, graphics, MAT files, and explicit Python interoperability.\nlicense: MIT\ncompatibility: >-\n  Documentation is pinned where noted to proprietary MATLAB R2026a and free\n  GNU Octave 11.3.0. Bundled Python CLIs require Python 3.11+ and run locally\n  without MATLAB or Octave; optional MAT inventory uses scipy and\u002For h5py.\nallowed-tools: Read Write Bash Glob Python\nmetadata:\n  version: \"1.1\"\n  skill-author: \"K-Dense Inc.\"\n  last-reviewed: \"2026-07-23\"\n---\n\n# MATLAB and GNU Octave\n\nUse this skill to design or review numerical code, migrate MATLAB releases,\nprepare reproducible projects, and plan trusted execution. MATLAB and GNU\nOctave are distinct products: compatibility is partial, not a license or\nbehavior guarantee.\n\n## Product and license gate\n\n- **MATLAB R2026a is proprietary.** Do not assume MATLAB, MATLAB Online, a\n  named toolbox, MATLAB Test, MATLAB Compiler, MATLAB Coder, Parallel Computing\n  Toolbox, or an add-on is installed, licensed, or available to the user.\n- **MATLAB Runtime is not MATLAB.** It runs compatible applications produced\n  with MATLAB Compiler; it cannot run arbitrary source or host MATLAB Engine\n  for Python. Building artifacts needs the applicable licensed compiler and\n  every product used by the source.\n- **GNU Octave 11.3.0 is free software under GPLv3+.** Octave packages are not\n  MATLAB toolboxes. Similar names do not imply API, numerical, graphics, or\n  licensing equivalence.\n- Ask which runtime, release, platform, installed products, and license context\n  the user actually has. Treat availability as `unknown` until confirmed.\n\nSee [Octave compatibility](references\u002Foctave-compatibility.md) and\n[execution\u002Fproduct boundaries](references\u002Fexecuting-scripts.md).\n\n## Nonnegotiable safety boundary\n\nNever run an untrusted `.m`, `.mlx`, MEX binary, MAT file, project startup or\nshutdown action, package installer, or generated artifact. Static review does\nnot prove safety.\n\nTreat these as execution or code-loading surfaces:\n\n- `eval`, `evalin`, `assignin`, text-derived `feval`, `str2func`, callbacks,\n  timers, app callbacks, and dynamically modified paths;\n- `system`, `unix`, `dos`, shell escape `!`, Java, .NET, Python (`py.*`,\n  `pyrun`, `pyrunfile`), MEX, and native libraries;\n- `mex`, `codegen`, MATLAB Compiler, build tasks, package\u002Fproject startup, and\n  generated code;\n- `load`, object deserialization (`loadobj`, custom serialization), function\n  handles, Java\u002FSystem objects, and class code reachable from MAT files.\n\n`.mlx` is an opaque archive for this toolkit and MEX is native executable code.\nDo not use Python pickle for exchange. Inspect first, isolate when appropriate,\nobtain explicit approval, then invoke a user-confirmed executable and license.\nBundled scripts are static or dry-run tools: none launches MATLAB, Octave,\nPython Engine, a compiler, or a subprocess.\n\n## Default workflow\n\n1. **Clarify target.** Record MATLAB release or Octave version, OS\u002Farchitecture,\n   base product versus required toolboxes\u002Fpackages, expected inputs\u002Foutputs,\n   numerical tolerances, and whether execution is authorized.\n2. **Inventory statically.** Scan `.m` files, opaque artifacts, project paths,\n   required products, and MAT headers before any runtime loads them.\n3. **Choose code form.** Prefer functions with an `arguments` block for\n   automation. Use scripts only for controlled orchestration and live scripts\n   for reviewed interactive narratives.\n4. **Make semantics explicit.** Record shapes, classes, units, missing-value\n   rules, indexing, implicit expansion, RNG algorithm\u002Fseed, tolerances, and\n   output formats.\n5. **Test without hidden state.** Keep fixtures synthetic, paths project-local,\n   graphics deterministic, and tests independent of base-workspace residue.\n6. **Plan execution.** Generate an argv plan, review startup\u002Fpath effects and\n   licenses, and launch only after explicit approval outside these helpers.\n7. **Capture provenance.** Hash named inputs\u002Fcode and record release, products,\n   RNG policy, tolerances, and command plan without dumping the environment.\n\n## Language and data checklist\n\n### Scripts, functions, and live scripts\n\n- Scripts share the caller\u002Fbase workspace and leave variables behind.\n  Functions have local workspaces and explicit inputs\u002Foutputs.\n- Live scripts (`.mlx`) mix code and rich output but are not plain-text\n  review artifacts. Export reviewed code to `.m` for static inspection.\n- Avoid `clear all`, broad `addpath(genpath(...))`, dependence on `pwd`, global\n  variables, and silent name shadowing. Use project roots and `fullfile`.\n- Validate sizes, classes, and values in `arguments` blocks. Remember that\n  type declarations can convert inputs; validators check without converting.\n- A main function file should match the main function name. Local functions\n  are private to the file; since R2024a they can appear anywhere in a script\n  outside conditional contexts.\n\n```matlab\nfunction y = scaleSignal(x, options)\narguments\n    x (:,1) double {mustBeFinite}\n    options.Scale (1,1) double {mustBeFinite, mustBeNonzero} = 1\nend\ny = x .* options.Scale;\nend\n```\n\nRead [programming](references\u002Fprogramming.md).\n\n### Arrays, indexing, and numerics\n\n- MATLAB uses 1-based, column-major indexing. `A(i,j)`, `A(k)`, `A(:,j)`,\n  `A{...}`, and `A.(name)` have different semantics.\n- `*`, `\u002F`, `\\`, and `^` are matrix operations; dotted forms are\n  element-wise. Use `A\\b`, not `inv(A)*b`.\n- Since R2016b, compatible dimensions expand implicitly. Assert intended shape\n  before operations that could accidentally form an outer result.\n- Preallocate when output size is known, but do not vectorize at the cost of\n  huge temporaries or unreadable code. Measure with `timeit` or the profiler.\n- Compare floating-point results with domain-chosen absolute and relative\n  tolerances, not blanket `==` or a magic multiple of `eps`.\n- Pin both random algorithm and seed. Use named `RandStream` substreams for\n  independent parallel work; do not use time-based `rng(\"shuffle\")` for a\n  reproducibility claim.\n\nRead [arrays](references\u002Fmatrices-arrays.md) and\n[mathematics](references\u002Fmathematics.md).\n\n### Tables, timetables, and missing values\n\n- A `table` has named, equal-height variables that may have different types.\n  `T(rows,vars)` returns a table; `T{rows,vars}` extracts contents; `T.Var`\n  selects one variable.\n- A `timetable` additionally has row times. Sort, validate time zones and\n  uniqueness, then use `retime`\u002F`synchronize` intentionally.\n- Missing sentinels are type-specific: `NaN`, `NaT`, `\u003Cmissing>`,\n  `\u003Cundefined>`, and empty character vectors. Integer and logical arrays have\n  no standard missing sentinel.\n- Define import options rather than relying on inference for production data.\n  Preserve units, time zones, variable names, encodings, and missing rules.\n\nRead [data import\u002Fexport](references\u002Fdata-import-export.md).\n\n## Graphics and export\n\nUse explicit figure\u002Faxes handles and `tiledlayout`; label units; set limits,\ncolor scales, font sizes, and colormaps deliberately. Prefer `exportgraphics`\nover `saveas` for publication output. In R2026a it exports raster, PDF\u002FEPS\u002FEMF,\nSVG, GIF, and interactive HTML; format capabilities differ. Specify\n`ContentType=\"vector\"` for suitable PDF\u002FSVG-style output and `Resolution` for\nraster output. Review accessibility and embedded-raster behavior.\n\nRead [graphics and export](references\u002Fgraphics-visualization.md).\n\n## MAT files and exchange\n\n- Version 7 is the normal `save` default; `matfile` creates 7.3 by default.\n  Versions 4\u002F6\u002F7\u002F7.3 differ in types, compression, and per-variable limits.\n- Version 7.3 is HDF5-based, not an arbitrary HDF5 interchange contract.\n  Partial access and chunking can help large arrays.\n- Never load an untrusted MAT file. Inventory headers\u002Fdatasets first. Objects\n  can invoke class deserialization behavior; opaque\u002Ffunction\u002Fnative content\n  requires escalation.\n- Prefer CSV\u002FJSON\u002FParquet\u002FHDF5 with a documented schema for simple exchange.\n  Do not rename pickle payloads as MAT files and do not deserialize pickle.\n\nRead [data import\u002Fexport](references\u002Fdata-import-export.md).\n\n## Projects, analysis, and tests\n\n- Use MATLAB Projects for controlled paths, startup\u002Fshutdown tasks,\n  dependencies, source control, and reproducible entry points. Review project\n  actions before opening an untrusted project.\n- `matlab.codetools.requiredFilesAndProducts` and Dependency Analyzer are\n  static approximations; dynamic dispatch can cause misses or false positives.\n  A required-product report does not prove a license is available.\n- Use Code Analyzer (`codeIssues`; legacy text workflows can use `checkcode`)\n  and `codeCompatibilityReport` before migration.\n- Base MATLAB includes script-, function-, and class-based\n  `matlab.unittest` workflows. Parallel runs require Parallel Computing\n  Toolbox. Dependency-based selection, richer quality dashboards, generated\n  tests, and advanced coverage\u002Fequivalence features can require MATLAB Test or\n  other products.\n- R2026a `runtests` automatically opens and later closes a project when target\n  tests belong to a project that is not already open. Account for startup and\n  shutdown actions before using this behavior.\n\nRead [programming](references\u002Fprogramming.md) and\n[execution\u002Ftesting](references\u002Fexecuting-scripts.md).\n\n## Python integration, pinned to R2026a\n\n- R2026a supports 64-bit CPython 3.9-3.13 for MATLAB Interface to Python,\n  MATLAB Engine for Python, and MATLAB Compiler SDK for Python.\n- The current R2026a PyPI package reviewed here is\n  `matlabengine==26.1.12` (released 2026-05-08). It requires an installed\n  R2026a; MATLAB Runtime alone is insufficient. R2026a also ships a\n  preinstalled Engine distribution under one named `matlabroot` path.\n- Package installation does not grant MATLAB or toolbox licenses. Configure\n  one named interpreter\u002Fexecutable; do not print the full environment,\n  `PATH`, `PYTHONPATH`, or credentials.\n- `pyenv` controls MATLAB-to-Python interpreter selection. In-process Python\n  generally requires restarting MATLAB to switch; out-of-process Python can\n  be terminated and reconfigured.\n- Starting Engine is an explicit execution action:\n  `matlab.engine.start_matlab()` starts a MATLAB process and can check out a\n  license. Never call it merely to probe availability.\n- Verify conversion semantics for NumPy arrays, pandas DataFrames,\n  tables\u002Ftimetables, strings\u002Fmissing values, datetime\u002Fduration, dictionaries,\n  shape\u002Forder, and unsupported sparse\u002Fobject\u002Fcategorical cases.\n\nRead [Python integration](references\u002Fpython-integration.md).\n\n## Local helper CLIs\n\nEvery helper is network-free, bounded, symlink-rejecting, and nonexecuting.\nRun from this skill directory with Python 3.11+. Bash is allowed only to invoke\nthese Python CLIs and validation commands; never use it to execute a generated\nMATLAB\u002FOctave argv plan or untrusted artifact.\n\n| Helper | Purpose |\n|---|---|\n| `scripts\u002Fplan_batch_command.py` | Produce reviewed MATLAB\u002FOctave argv; never execute |\n| `scripts\u002Fscan_m_code.py` | Scan `.m` text and flag opaque `.mlx`\u002FMEX risks |\n| `scripts\u002Fvalidate_project_manifest.py` | Validate paths and declared product\u002Flicense status |\n| `scripts\u002Finventory_mat_file.py` | Header\u002Fmetadata inventory; never call `loadmat` |\n| `scripts\u002Fplan_python_compatibility.py` | Check R2026a CPython\u002FEngine compatibility |\n| `scripts\u002Freproducibility_report.py` | Hash named local artifacts and emit a bounded report |\n| `scripts\u002Fgenerate_function_scaffold.py` | Dry-run or create function and unit-test scaffolds |\n\n```bash\npython scripts\u002Fscan_m_code.py path\u002Fto\u002Fsource --root path\u002Fto\u002Fproject\npython scripts\u002Fplan_batch_command.py matlab script path\u002Fto\u002Fmain.m --root path\u002Fto\u002Fproject\npython scripts\u002Fvalidate_project_manifest.py project-manifest.json --root path\u002Fto\u002Fproject\npython scripts\u002Finventory_mat_file.py data.mat --root path\u002Fto\u002Fproject\npython scripts\u002Fplan_python_compatibility.py --python-version 3.13\npython scripts\u002Freproducibility_report.py --root path\u002Fto\u002Fproject --file src\u002Fanalyze.m\npython scripts\u002Fgenerate_function_scaffold.py analyzeSignal --root path\u002Fto\u002Fproject\n```\n\nThe scaffold generator defaults to dry-run; writing requires `--write` and\nrefuses collisions. SciPy and h5py are optional inventory backends; if\nauthorized, add exact reviewed versions to the caller's project lockfile.\nThey are not required for `--help` or header-only inventory, and this skill\ndoes not perform package installation.\n\n## References\n\n- [Programming, workspaces, projects, analysis, tests](references\u002Fprogramming.md)\n- [Matrices, indexing, types, missingness, performance](references\u002Fmatrices-arrays.md)\n- [Numerical methods, tolerances, RNG, toolbox boundaries](references\u002Fmathematics.md)\n- [Graphics and `exportgraphics`](references\u002Fgraphics-visualization.md)\n- [Import\u002Fexport, tables\u002Ftimetables, MAT semantics and safety](references\u002Fdata-import-export.md)\n- [MATLAB\u002FOctave command-line execution and migration](references\u002Fexecuting-scripts.md)\n- [MATLAB and Python interoperability](references\u002Fpython-integration.md)\n- [GNU Octave 11.3.0 compatibility differences](references\u002Foctave-compatibility.md)\n\nBundled JSON assets are the [project manifest](assets\u002Fproject_manifest_template.json),\n[reproducibility manifest](assets\u002Freproducibility_manifest_template.json), and\n[R2026a Python table](assets\u002Fpython_compatibility_r2026a.json). There is no\n`templates\u002F` directory and no Markdown file is loaded from `assets\u002F`;\nlocal-link tests enforce this package contract.\n\n## Primary sources (verified 2026-07-23)\n\n- [MATLAB R2026a documentation](https:\u002F\u002Fwww.mathworks.com\u002Fhelp\u002Fmatlab\u002F)\n- [MATLAB R2026a release notes](https:\u002F\u002Fwww.mathworks.com\u002Fhelp\u002Fmatlab\u002Frelease-notes.html)\n- [R2026a system requirements](https:\u002F\u002Fwww.mathworks.com\u002Fsupport\u002Frequirements\u002Fmatlab-system-requirements.html)\n- [Python compatibility by release](https:\u002F\u002Fwww.mathworks.com\u002Fsupport\u002Frequirements\u002Fpython-compatibility.html)\n- [MATLAB Engine installation](https:\u002F\u002Fwww.mathworks.com\u002Fhelp\u002Fmatlab\u002Fmatlab_external\u002Finstall-the-matlab-engine-for-python.html)\n- [GNU Octave 11.3.0 release](https:\u002F\u002Foctave.org\u002F)\n- [GNU Octave current manual](https:\u002F\u002Fdocs.octave.org\u002Flatest\u002F)\n","# MATLAB and GNU Octave\n\nUse this skill to design or review numerical code, migrate MATLAB releases,\nprepare reproducible projects, and plan trusted execution. MATLAB and GNU\nOctave are distinct products: compatibility is partial, not a license or\nbehavior guarantee.\n\n## Product and license gate\n\n- **MATLAB R2026a is proprietary.** Do not assume MATLAB, MATLAB Online, a\n  named toolbox, MATLAB Test, MATLAB Compiler, MATLAB Coder, Parallel Computing\n  Toolbox, or an add-on is installed, licensed, or available to the user.\n- **MATLAB Runtime is not MATLAB.** It runs compatible applications produced\n  with MATLAB Compiler; it cannot run arbitrary source or host MATLAB Engine\n  for Python. Building artifacts needs the applicable licensed compiler and\n  every product used by the source.\n- **GNU Octave 11.3.0 is free software under GPLv3+.** Octave packages are not\n  MATLAB toolboxes. Similar names do not imply API, numerical, graphics, or\n  licensing equivalence.\n- Ask which runtime, release, platform, installed products, and license context\n  the user actually has. Treat availability as `unknown` until confirmed.\n\nSee [Octave compatibility](references\u002Foctave-compatibility.md) and\n[execution\u002Fproduct boundaries](references\u002Fexecuting-scripts.md).\n\n## Nonnegotiable safety boundary\n\nNever run an untrusted `.m`, `.mlx`, MEX binary, MAT file, project startup or\nshutdown action, package installer, or generated artifact. Static review does\nnot prove safety.\n\nTreat these as execution or code-loading surfaces:\n\n- `eval`, `evalin`, `assignin`, text-derived `feval`, `str2func`, callbacks,\n  timers, app callbacks, and dynamically modified paths;\n- `system`, `unix`, `dos`, shell escape `!`, Java, .NET, Python (`py.*`,\n  `pyrun`, `pyrunfile`), MEX, and native libraries;\n- `mex`, `codegen`, MATLAB Compiler, build tasks, package\u002Fproject startup, and\n  generated code;\n- `load`, object deserialization (`loadobj`, custom serialization), function\n  handles, Java\u002FSystem objects, and class code reachable from MAT files.\n\n`.mlx` is an opaque archive for this toolkit and MEX is native executable code.\nDo not use Python pickle for exchange. Inspect first, isolate when appropriate,\nobtain explicit approval, then invoke a user-confirmed executable and license.\nBundled scripts are static or dry-run tools: none launches MATLAB, Octave,\nPython Engine, a compiler, or a subprocess.\n\n## Default workflow\n\n1. **Clarify target.** Record MATLAB release or Octave version, OS\u002Farchitecture,\n   base product versus required toolboxes\u002Fpackages, expected inputs\u002Foutputs,\n   numerical tolerances, and whether execution is authorized.\n2. **Inventory statically.** Scan `.m` files, opaque artifacts, project paths,\n   required products, and MAT headers before any runtime loads them.\n3. **Choose code form.** Prefer functions with an `arguments` block for\n   automation. Use scripts only for controlled orchestration and live scripts\n   for reviewed interactive narratives.\n4. **Make semantics explicit.** Record shapes, classes, units, missing-value\n   rules, indexing, implicit expansion, RNG algorithm\u002Fseed, tolerances, and\n   output formats.\n5. **Test without hidden state.** Keep fixtures synthetic, paths project-local,\n   graphics deterministic, and tests independent of base-workspace residue.\n6. **Plan execution.** Generate an argv plan, review startup\u002Fpath effects and\n   licenses, and launch only after explicit approval outside these helpers.\n7. **Capture provenance.** Hash named inputs\u002Fcode and record release, products,\n   RNG policy, tolerances, and command plan without dumping the environment.\n\n## Language and data checklist\n\n### Scripts, functions, and live scripts\n\n- Scripts share the caller\u002Fbase workspace and leave variables behind.\n  Functions have local workspaces and explicit inputs\u002Foutputs.\n- Live scripts (`.mlx`) mix code and rich output but are not plain-text\n  review artifacts. Export reviewed code to `.m` for static inspection.\n- Avoid `clear all`, broad `addpath(genpath(...))`, dependence on `pwd`, global\n  variables, and silent name shadowing. Use project roots and `fullfile`.\n- Validate sizes, classes, and values in `arguments` blocks. Remember that\n  type declarations can convert inputs; validators check without converting.\n- A main function file should match the main function name. Local functions\n  are private to the file; since R2024a they can appear anywhere in a script\n  outside conditional contexts.\n\n```matlab\nfunction y = scaleSignal(x, options)\narguments\n    x (:,1) double {mustBeFinite}\n    options.Scale (1,1) double {mustBeFinite, mustBeNonzero} = 1\nend\ny = x .* options.Scale;\nend\n```\n\nRead [programming](references\u002Fprogramming.md).\n\n### Arrays, indexing, and numerics\n\n- MATLAB uses 1-based, column-major indexing. `A(i,j)`, `A(k)`, `A(:,j)`,\n  `A{...}`, and `A.(name)` have different semantics.\n- `*`, `\u002F`, `\\`, and `^` are matrix operations; dotted forms are\n  element-wise. Use `A\\b`, not `inv(A)*b`.\n- Since R2016b, compatible dimensions expand implicitly. Assert intended shape\n  before operations that could accidentally form an outer result.\n- Preallocate when output size is known, but do not vectorize at the cost of\n  huge temporaries or unreadable code. Measure with `timeit` or the profiler.\n- Compare floating-point results with domain-chosen absolute and relative\n  tolerances, not blanket `==` or a magic multiple of `eps`.\n- Pin both random algorithm and seed. Use named `RandStream` substreams for\n  independent parallel work; do not use time-based `rng(\"shuffle\")` for a\n  reproducibility claim.\n\nRead [arrays](references\u002Fmatrices-arrays.md) and\n[mathematics](references\u002Fmathematics.md).\n\n### Tables, timetables, and missing values\n\n- A `table` has named, equal-height variables that may have different types.\n  `T(rows,vars)` returns a table; `T{rows,vars}` extracts contents; `T.Var`\n  selects one variable.\n- A `timetable` additionally has row times. Sort, validate time zones and\n  uniqueness, then use `retime`\u002F`synchronize` intentionally.\n- Missing sentinels are type-specific: `NaN`, `NaT`, `\u003Cmissing>`,\n  `\u003Cundefined>`, and empty character vectors. Integer and logical arrays have\n  no standard missing sentinel.\n- Define import options rather than relying on inference for production data.\n  Preserve units, time zones, variable names, encodings, and missing rules.\n\nRead [data import\u002Fexport](references\u002Fdata-import-export.md).\n\n## Graphics and export\n\nUse explicit figure\u002Faxes handles and `tiledlayout`; label units; set limits,\ncolor scales, font sizes, and colormaps deliberately. Prefer `exportgraphics`\nover `saveas` for publication output. In R2026a it exports raster, PDF\u002FEPS\u002FEMF,\nSVG, GIF, and interactive HTML; format capabilities differ. Specify\n`ContentType=\"vector\"` for suitable PDF\u002FSVG-style output and `Resolution` for\nraster output. Review accessibility and embedded-raster behavior.\n\nRead [graphics and export](references\u002Fgraphics-visualization.md).\n\n## MAT files and exchange\n\n- Version 7 is the normal `save` default; `matfile` creates 7.3 by default.\n  Versions 4\u002F6\u002F7\u002F7.3 differ in types, compression, and per-variable limits.\n- Version 7.3 is HDF5-based, not an arbitrary HDF5 interchange contract.\n  Partial access and chunking can help large arrays.\n- Never load an untrusted MAT file. Inventory headers\u002Fdatasets first. Objects\n  can invoke class deserialization behavior; opaque\u002Ffunction\u002Fnative content\n  requires escalation.\n- Prefer CSV\u002FJSON\u002FParquet\u002FHDF5 with a documented schema for simple exchange.\n  Do not rename pickle payloads as MAT files and do not deserialize pickle.\n\nRead [data import\u002Fexport](references\u002Fdata-import-export.md).\n\n## Projects, analysis, and tests\n\n- Use MATLAB Projects for controlled paths, startup\u002Fshutdown tasks,\n  dependencies, source control, and reproducible entry points. Review project\n  actions before opening an untrusted project.\n- `matlab.codetools.requiredFilesAndProducts` and Dependency Analyzer are\n  static approximations; dynamic dispatch can cause misses or false positives.\n  A required-product report does not prove a license is available.\n- Use Code Analyzer (`codeIssues`; legacy text workflows can use `checkcode`)\n  and `codeCompatibilityReport` before migration.\n- Base MATLAB includes script-, function-, and class-based\n  `matlab.unittest` workflows. Parallel runs require Parallel Computing\n  Toolbox. Dependency-based selection, richer quality dashboards, generated\n  tests, and advanced coverage\u002Fequivalence features can require MATLAB Test or\n  other products.\n- R2026a `runtests` automatically opens and later closes a project when target\n  tests belong to a project that is not already open. Account for startup and\n  shutdown actions before using this behavior.\n\nRead [programming](references\u002Fprogramming.md) and\n[execution\u002Ftesting](references\u002Fexecuting-scripts.md).\n\n## Python integration, pinned to R2026a\n\n- R2026a supports 64-bit CPython 3.9-3.13 for MATLAB Interface to Python,\n  MATLAB Engine for Python, and MATLAB Compiler SDK for Python.\n- The current R2026a PyPI package reviewed here is\n  `matlabengine==26.1.12` (released 2026-05-08). It requires an installed\n  R2026a; MATLAB Runtime alone is insufficient. R2026a also ships a\n  preinstalled Engine distribution under one named `matlabroot` path.\n- Package installation does not grant MATLAB or toolbox licenses. Configure\n  one named interpreter\u002Fexecutable; do not print the full environment,\n  `PATH`, `PYTHONPATH`, or credentials.\n- `pyenv` controls MATLAB-to-Python interpreter selection. In-process Python\n  generally requires restarting MATLAB to switch; out-of-process Python can\n  be terminated and reconfigured.\n- Starting Engine is an explicit execution action:\n  `matlab.engine.start_matlab()` starts a MATLAB process and can check out a\n  license. Never call it merely to probe availability.\n- Verify conversion semantics for NumPy arrays, pandas DataFrames,\n  tables\u002Ftimetables, strings\u002Fmissing values, datetime\u002Fduration, dictionaries,\n  shape\u002Forder, and unsupported sparse\u002Fobject\u002Fcategorical cases.\n\nRead [Python integration](references\u002Fpython-integration.md).\n\n## Local helper CLIs\n\nEvery helper is network-free, bounded, symlink-rejecting, and nonexecuting.\nRun from this skill directory with Python 3.11+. Bash is allowed only to invoke\nthese Python CLIs and validation commands; never use it to execute a generated\nMATLAB\u002FOctave argv plan or untrusted artifact.\n\n| Helper | Purpose |\n|---|---|\n| `scripts\u002Fplan_batch_command.py` | Produce reviewed MATLAB\u002FOctave argv; never execute |\n| `scripts\u002Fscan_m_code.py` | Scan `.m` text and flag opaque `.mlx`\u002FMEX risks |\n| `scripts\u002Fvalidate_project_manifest.py` | Validate paths and declared product\u002Flicense status |\n| `scripts\u002Finventory_mat_file.py` | Header\u002Fmetadata inventory; never call `loadmat` |\n| `scripts\u002Fplan_python_compatibility.py` | Check R2026a CPython\u002FEngine compatibility |\n| `scripts\u002Freproducibility_report.py` | Hash named local artifacts and emit a bounded report |\n| `scripts\u002Fgenerate_function_scaffold.py` | Dry-run or create function and unit-test scaffolds |\n\n```bash\npython scripts\u002Fscan_m_code.py path\u002Fto\u002Fsource --root path\u002Fto\u002Fproject\npython scripts\u002Fplan_batch_command.py matlab script path\u002Fto\u002Fmain.m --root path\u002Fto\u002Fproject\npython scripts\u002Fvalidate_project_manifest.py project-manifest.json --root path\u002Fto\u002Fproject\npython scripts\u002Finventory_mat_file.py data.mat --root path\u002Fto\u002Fproject\npython scripts\u002Fplan_python_compatibility.py --python-version 3.13\npython scripts\u002Freproducibility_report.py --root path\u002Fto\u002Fproject --file src\u002Fanalyze.m\npython scripts\u002Fgenerate_function_scaffold.py analyzeSignal --root path\u002Fto\u002Fproject\n```\n\nThe scaffold generator defaults to dry-run; writing requires `--write` and\nrefuses collisions. SciPy and h5py are optional inventory backends; if\nauthorized, add exact reviewed versions to the caller's project lockfile.\nThey are not required for `--help` or header-only inventory, and this skill\ndoes not perform package installation.\n\n## References\n\n- [Programming, workspaces, projects, analysis, tests](references\u002Fprogramming.md)\n- [Matrices, indexing, types, missingness, performance](references\u002Fmatrices-arrays.md)\n- [Numerical methods, tolerances, RNG, toolbox boundaries](references\u002Fmathematics.md)\n- [Graphics and `exportgraphics`](references\u002Fgraphics-visualization.md)\n- [Import\u002Fexport, tables\u002Ftimetables, MAT semantics and safety](references\u002Fdata-import-export.md)\n- [MATLAB\u002FOctave command-line execution and migration](references\u002Fexecuting-scripts.md)\n- [MATLAB and Python interoperability](references\u002Fpython-integration.md)\n- [GNU Octave 11.3.0 compatibility differences](references\u002Foctave-compatibility.md)\n\nBundled JSON assets are the [project manifest](assets\u002Fproject_manifest_template.json),\n[reproducibility manifest](assets\u002Freproducibility_manifest_template.json), and\n[R2026a Python table](assets\u002Fpython_compatibility_r2026a.json). There is no\n`templates\u002F` directory and no Markdown file is loaded from `assets\u002F`;\nlocal-link tests enforce this package contract.\n\n## Primary sources (verified 2026-07-23)\n\n- [MATLAB R2026a documentation](https:\u002F\u002Fwww.mathworks.com\u002Fhelp\u002Fmatlab\u002F)\n- [MATLAB R2026a release notes](https:\u002F\u002Fwww.mathworks.com\u002Fhelp\u002Fmatlab\u002Frelease-notes.html)\n- [R2026a system requirements](https:\u002F\u002Fwww.mathworks.com\u002Fsupport\u002Frequirements\u002Fmatlab-system-requirements.html)\n- [Python compatibility by release](https:\u002F\u002Fwww.mathworks.com\u002Fsupport\u002Frequirements\u002Fpython-compatibility.html)\n- [MATLAB Engine installation](https:\u002F\u002Fwww.mathworks.com\u002Fhelp\u002Fmatlab\u002Fmatlab_external\u002Finstall-the-matlab-engine-for-python.html)\n- [GNU Octave 11.3.0 release](https:\u002F\u002Foctave.org\u002F)\n- [GNU Octave current manual](https:\u002F\u002Fdocs.octave.org\u002Flatest\u002F)\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":28,"compatibility":29},{"version":25,"skill-author":26,"last-reviewed":27},"1.1","K-Dense Inc.","2026-07-23","Read Write Bash Glob Python","Documentation is pinned where noted to proprietary MATLAB R2026a and free GNU Octave 11.3.0. Bundled Python CLIs require Python 3.11+ and run locally without MATLAB or Octave; optional MAT inventory uses scipy and\u002For h5py.","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","skills\u002Fmatlab",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill matlab",{"tool":44,"command":45},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill matlab",{"tool":47,"command":48},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill matlab","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002FSKILL.md",true,[52,58,62,66,72,76,80,84,88,92,96,100,106,110,114,118,122,126,130],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"assets\u002Fproject_manifest_template.json","ASSET","资产文件",723,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Fassets\u002Fproject_manifest_template.json",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"assets\u002Fpython_compatibility_r2026a.json",786,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Fassets\u002Fpython_compatibility_r2026a.json",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"assets\u002Freproducibility_manifest_template.json",787,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Fassets\u002Freproducibility_manifest_template.json",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fdata-import-export.md","REFERENCE","参考文档",8784,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Freferences\u002Fdata-import-export.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fexecuting-scripts.md",9863,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Freferences\u002Fexecuting-scripts.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fgraphics-visualization.md",7381,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Freferences\u002Fgraphics-visualization.md",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fmathematics.md",8272,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Freferences\u002Fmathematics.md",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fmatrices-arrays.md",8128,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Freferences\u002Fmatrices-arrays.md",{"path":89,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Foctave-compatibility.md",8523,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Freferences\u002Foctave-compatibility.md",{"path":93,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fprogramming.md",10365,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Freferences\u002Fprogramming.md",{"path":97,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fpython-integration.md",9938,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Freferences\u002Fpython-integration.md",{"path":101,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002F_common.py","SCRIPT","脚本",8703,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Fscripts\u002F_common.py",{"path":107,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002Fgenerate_function_scaffold.py",4955,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Fscripts\u002Fgenerate_function_scaffold.py",{"path":111,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Finventory_mat_file.py",12357,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Fscripts\u002Finventory_mat_file.py",{"path":115,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":116,"sourceHtmlUrl":117},"scripts\u002Fplan_batch_command.py",8967,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Fscripts\u002Fplan_batch_command.py",{"path":119,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":120,"sourceHtmlUrl":121},"scripts\u002Fplan_python_compatibility.py",6566,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Fscripts\u002Fplan_python_compatibility.py",{"path":123,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":124,"sourceHtmlUrl":125},"scripts\u002Freproducibility_report.py",7966,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Fscripts\u002Freproducibility_report.py",{"path":127,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":128,"sourceHtmlUrl":129},"scripts\u002Fscan_m_code.py",13951,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Fscripts\u002Fscan_m_code.py",{"path":131,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":132,"sourceHtmlUrl":133},"scripts\u002Fvalidate_project_manifest.py",12255,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmatlab\u002Fscripts\u002Fvalidate_project_manifest.py",[135,142,150,159,167,174],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":19},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":146,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":19},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":154,"licenseFileUrl":155,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":19},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":154,"licenseFileUrl":163,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":19},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":19},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":178,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":19},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]