Skill Tracer
Skills › Scientific Agent Skills › matlab

matlab

skill · 310 lines · MIT · skills/matlab/SKILL.md

The facts

Its description

Builds, reviews, migrates, and plans MATLAB or GNU Octave numerical workflows. Use for arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

The description the agent reads to decide when to use it.

From its settingsline 3

Tools it may use, or may not

allowed-tools: Read Write Bash Glob Python

Tools it may use while it runs without asking you first.

From its settingsline 9

Starts other agents

1 line mentions starting other agents

Lines in the file that mention starting another agent. Found by matching words, so treat them as pointers.

Found by matching wordsline 194

Runs scripts

scripts/plan_batch_command.py, scripts/scan_m_code.py, scripts/validate_project_manifest.py, scripts/inventory_mat_file.py, scripts/plan_python_compatibility.py (first 5 of 14 lines)

Scripts the text names. Found by matching words, so treat them as pointers.

Found by matching wordsline 244 line 245 line 246 line 247 line 248

Files it mentions

references/octave-compatibility.md, references/executing-scripts.md, references/programming.md, references/matrices-arrays.md, references/mathematics.md (first 5 of 29 lines)

Files the text names, such as ones to read or write. Found by matching words, so treat them as pointers.

Found by matching wordsline 47 line 48 line 120 line 143 line 144

Stops for a person

1 line stops to ask a person

Lines that stop and wait for a person before going on. Found by matching words, so treat them as pointers.

Found by matching wordsline 89

Licence

MIT, from the skill file

The terms its author shares it under, which let it be shown here.

From its settingsline 4 licence text

Other settings

compatibility: 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/or h5py. metadata: version: "1.4" skill-author: "K-Dense Inc." last-reviewed: "2026-10-01"

More settings at the top of the file, shown as written.

From its settingsline 5 line 10
Other files in this skill (19) Close

The text

Open on GitHub

Most marks come from matching words in the file, so treat them as pointers.

1---
2name: matlab
3description: Builds, reviews, migrates, and plans MATLAB or GNU Octave numerical workflows. Use for arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.
4license: MIT
5compatibility: >-
6 Documentation is pinned where noted to proprietary MATLAB R2026a and free
7 GNU Octave 11.3.0. Bundled Python CLIs require Python 3.11+ and run locally
8 without MATLAB or Octave; optional MAT inventory uses scipy and/or h5py.
9allowed-tools: Read Write Bash Glob Python
10metadata:
11 version: "1.4"
12 skill-author: "K-Dense Inc."
13 last-reviewed: "2026-10-01"
14---
16# MATLAB and GNU Octave
18Use this skill to design or review numerical code, migrate MATLAB releases,
19prepare reproducible projects, and plan trusted execution. MATLAB and GNU
20Octave are distinct products: compatibility is partial, not a license or
21behavior guarantee.

MATLAB and GNU Octave

Use this skill to design or review numerical code, migrate MATLAB releases, prepare reproducible projects, and plan trusted execution. MATLAB and GNU Octave are distinct products: compatibility is partial, not a license or behavior guarantee.

Raw lines 1 to 22
23## Review scope
25Reviewed against current MathWorks R2026b documentation and GNU Octave 11.3.0
26sources on 2026-10-01. The bundled Engine planner and MATLAB examples retain
27an explicit R2026a baseline. R2026b supports CPython 3.10-3.14; do not reuse
28the R2026a Engine package for it. MATLAB/Octave examples are illustrative and
29were not executed in this review; the Python helpers have local synthetic tests.
30This skill uses local runtime APIs, with no remote service endpoint or API key.

Review scope

Reviewed against current MathWorks R2026b documentation and GNU Octave 11.3.0 sources on 2026-10-01. The bundled Engine planner and MATLAB examples retain an explicit R2026a baseline. R2026b supports CPython 3.10-3.14; do not reuse the R2026a Engine package for it. MATLAB/Octave examples are illustrative and were not executed in this review; the Python helpers have local synthetic tests. This skill uses local runtime APIs, with no remote service endpoint or API key.

Raw lines 23 to 31
32## Product and license gate
34- **MATLAB R2026a is proprietary.** Do not assume MATLAB, MATLAB Online, a
35 named toolbox, MATLAB Test, MATLAB Compiler, MATLAB Coder, Parallel Computing
36 Toolbox, or an add-on is installed, licensed, or available to the user.
37- **MATLAB Runtime is not MATLAB.** It runs compatible applications produced
38 with MATLAB Compiler; it cannot run arbitrary source or host MATLAB Engine
39 for Python. Building artifacts needs the applicable licensed compiler and
40 every product used by the source.
41- **GNU Octave 11.3.0 is free software under GPLv3+.** Octave packages are not
42 MATLAB toolboxes. Similar names do not imply API, numerical, graphics, or
43 licensing equivalence.
44- Ask which runtime, release, platform, installed products, and license context
45 the user actually has. Treat availability as `unknown` until confirmed.
47See [Octave compatibility](references/octave-compatibility.md) and
48[execution/product boundaries](references/executing-scripts.md).

Product and license gate

  • MATLAB R2026a is proprietary. Do not assume MATLAB, MATLAB Online, a named toolbox, MATLAB Test, MATLAB Compiler, MATLAB Coder, Parallel Computing Toolbox, or an add-on is installed, licensed, or available to the user.
  • MATLAB Runtime is not MATLAB. It runs compatible applications produced with MATLAB Compiler; it cannot run arbitrary source or host MATLAB Engine for Python. Building artifacts needs the applicable licensed compiler and every product used by the source.
  • GNU Octave 11.3.0 is free software under GPLv3+. Octave packages are not MATLAB toolboxes. Similar names do not imply API, numerical, graphics, or licensing equivalence.
  • Ask which runtime, release, platform, installed products, and license context the user actually has. Treat availability as unknown until confirmed.

See Octave compatibility and execution/product boundaries.

Raw lines 32 to 49
50## Nonnegotiable safety boundary
52Never run an untrusted `.m`, `.mlx`, MEX binary, MAT file, project startup or
53shutdown action, package installer, or generated artifact. Static review does
54not prove safety.
56Treat these as execution or code-loading surfaces:
58- `eval`, `evalin`, `assignin`, text-derived `feval`, `str2func`, callbacks,
59 timers, app callbacks, and dynamically modified paths;
60- `system`, `unix`, `dos`, shell escape `!`, Java, .NET, Python (`py.*`,
61 `pyrun`, `pyrunfile`), MEX, and native libraries;
62- `mex`, `codegen`, MATLAB Compiler, build tasks, package/project startup, and
63 generated code;
64- `load`, object deserialization (`loadobj`, custom serialization), function
65 handles, Java/System objects, and class code reachable from MAT files.
67`.mlx` is an opaque archive for this toolkit and MEX is native executable code.
68Do not use Python pickle for exchange. Inspect first, isolate when appropriate,
69obtain explicit approval, then invoke a user-confirmed executable and license.
70Bundled scripts are static or dry-run tools: none launches MATLAB, Octave,
71Python Engine, a compiler, or a subprocess.

Nonnegotiable safety boundary

Never run an untrusted .m, .mlx, MEX binary, MAT file, project startup or shutdown action, package installer, or generated artifact. Static review does not prove safety.

Treat these as execution or code-loading surfaces:

  • eval, evalin, assignin, text-derived feval, str2func, callbacks, timers, app callbacks, and dynamically modified paths;
  • system, unix, dos, shell escape !, Java, .NET, Python (py.*, pyrun, pyrunfile), MEX, and native libraries;
  • mex, codegen, MATLAB Compiler, build tasks, package/project startup, and generated code;
  • load, object deserialization (loadobj, custom serialization), function handles, Java/System objects, and class code reachable from MAT files.

.mlx is an opaque archive for this toolkit and MEX is native executable code. Do not use Python pickle for exchange. Inspect first, isolate when appropriate, obtain explicit approval, then invoke a user-confirmed executable and license. Bundled scripts are static or dry-run tools: none launches MATLAB, Octave, Python Engine, a compiler, or a subprocess.

Raw lines 50 to 72
73## Default workflow
751. **Clarify target.** Record MATLAB release or Octave version, OS/architecture,
76 base product versus required toolboxes/packages, expected inputs/outputs,
77 numerical tolerances, and whether execution is authorized.
782. **Inventory statically.** Scan `.m` files, opaque artifacts, project paths,
79 required products, and MAT headers before any runtime loads them.
803. **Choose code form.** Prefer functions with an `arguments` block for
81 automation. Use scripts only for controlled orchestration and live scripts
82 for reviewed interactive narratives.
834. **Make semantics explicit.** Record shapes, classes, units, missing-value
84 rules, indexing, implicit expansion, RNG algorithm/seed, tolerances, and
85 output formats.
865. **Test without hidden state.** Keep fixtures synthetic, paths project-local,
87 graphics deterministic, and tests independent of base-workspace residue.
886. **Plan execution.** Generate an argv plan, review startup/path effects and
89 licenses, and launch only after explicit approval outside these helpers.
907. **Capture provenance.** Hash named inputs/code and record release, products,
91 RNG policy, tolerances, and command plan without dumping the environment.

Default workflow

  1. Clarify target. Record MATLAB release or Octave version, OS/architecture, base product versus required toolboxes/packages, expected inputs/outputs, numerical tolerances, and whether execution is authorized.
  2. Inventory statically. Scan .m files, opaque artifacts, project paths, required products, and MAT headers before any runtime loads them.
  3. Choose code form. Prefer functions with an arguments block for automation. Use scripts only for controlled orchestration and live scripts for reviewed interactive narratives.
  4. Make semantics explicit. Record shapes, classes, units, missing-value rules, indexing, implicit expansion, RNG algorithm/seed, tolerances, and output formats.
  5. Test without hidden state. Keep fixtures synthetic, paths project-local, graphics deterministic, and tests independent of base-workspace residue.
  6. Plan execution. Generate an argv plan, review startup/path effects and licenses, and launch only after explicit approval outside these helpers.
  7. Capture provenance. Hash named inputs/code and record release, products, RNG policy, tolerances, and command plan without dumping the environment.
Raw lines 73 to 92
Involves a person after explicit approval :89
93## Language and data checklist

Language and data checklist

Raw lines 93 to 94
95### Scripts, functions, and live scripts
97- Scripts share the caller/base workspace and leave variables behind.
98 Functions have local workspaces and explicit inputs/outputs.
99- Live scripts (`.mlx`) mix code and rich output but are not plain-text
100 review artifacts. Export reviewed code to `.m` for static inspection.
101- Avoid `clear all`, broad `addpath(genpath(...))`, dependence on `pwd`, global
102 variables, and silent name shadowing. Use project roots and `fullfile`.
103- Validate sizes, classes, and values in `arguments` blocks. Remember that
104 type declarations can convert inputs and size declarations can reshape or
105 expand compatible inputs; validators check without converting.
106- A main function file should match the main function name. Local functions
107 are private to the file; since R2024a they can appear anywhere in a script
108 outside conditional contexts.
110```matlab
111function y = scaleSignal(x, options)
112arguments
113 x (:,1) double {mustBeFinite}
114 options.Scale (1,1) double {mustBeFinite, mustBeNonzero} = 1
115end
116y = x .* options.Scale;
117end
118```
120Read [programming](references/programming.md).

Scripts, functions, and live scripts

  • Scripts share the caller/base workspace and leave variables behind. Functions have local workspaces and explicit inputs/outputs.
  • Live scripts (.mlx) mix code and rich output but are not plain-text review artifacts. Export reviewed code to .m for static inspection.
  • Avoid clear all, broad addpath(genpath(...)), dependence on pwd, global variables, and silent name shadowing. Use project roots and fullfile.
  • Validate sizes, classes, and values in arguments blocks. Remember that type declarations can convert inputs and size declarations can reshape or expand compatible inputs; validators check without converting.
  • A main function file should match the main function name. Local functions are private to the file; since R2024a they can appear anywhere in a script outside conditional contexts.
function y = scaleSignal(x, options)
arguments
    x (:,1) double {mustBeFinite}
    options.Scale (1,1) double {mustBeFinite, mustBeNonzero} = 1
end
y = x .* options.Scale;
end

Read programming.

Raw lines 95 to 121
Reads a file references/programming.md :120
122### Arrays, indexing, and numerics
124- MATLAB uses 1-based, column-major indexing. `A(i,j)`, `A(k)`, `A(:,j)`,
125 `A{...}`, and `A.(name)` have different semantics.
126- `*`, `/`, `\`, and `^` are matrix operations; dotted forms are
127 element-wise. Use `A\b`, not `inv(A)*b`.
128- After a linear solve, inspect conditioning/rank and a scale-aware residual;
129 backslash can continue after a singularity warning, and a small residual alone
130 does not establish an accurate solution. For underdetermined systems, state
131 whether minimum norm is required (`lsqminnorm`), rather than assuming `A\b`
132 returns it. See the [mldivide contract](https://www.mathworks.com/help/matlab/ref/double.mldivide.html).
133- Since R2016b, compatible dimensions expand implicitly. Assert intended shape
134 before operations that could accidentally form an outer result.
135- Preallocate when output size is known, but do not vectorize at the cost of
136 huge temporaries or unreadable code. Measure with `timeit` or the profiler.
137- Compare floating-point results with domain-chosen absolute and relative
138 tolerances, not blanket `==` or a magic multiple of `eps`.
139- Pin both random algorithm and seed. Use named `RandStream` substreams for
140 independent parallel work; do not use time-based `rng("shuffle")` for a
141 reproducibility claim.

Arrays, indexing, and numerics

  • MATLAB uses 1-based, column-major indexing. A(i,j), A(k), A(:,j), A{...}, and A.(name) have different semantics.
  • *, /, \, and ^ are matrix operations; dotted forms are element-wise. Use A\b, not inv(A)*b.
  • After a linear solve, inspect conditioning/rank and a scale-aware residual; backslash can continue after a singularity warning, and a small residual alone does not establish an accurate solution. For underdetermined systems, state whether minimum norm is required (lsqminnorm), rather than assuming A\b returns it. See the mldivide contract.
  • Since R2016b, compatible dimensions expand implicitly. Assert intended shape before operations that could accidentally form an outer result.
  • Preallocate when output size is known, but do not vectorize at the cost of huge temporaries or unreadable code. Measure with timeit or the profiler.
  • Compare floating-point results with domain-chosen absolute and relative tolerances, not blanket == or a magic multiple of eps.
  • Pin both random algorithm and seed. Use named RandStream substreams for independent parallel work; do not use time-based rng("shuffle") for a reproducibility claim.

Read arrays and mathematics.

Raw lines 122 to 145
Reads a file references/mathematics.md :144
146### Tables, timetables, and missing values
148- A `table` has named, equal-height variables that may have different types.
149 `T(rows,vars)` returns a table; `T{rows,vars}` extracts contents; `T.Var`
150 selects one variable.
151- A `timetable` additionally has row times. Sort, validate time zones and
152 uniqueness, then use `retime`/`synchronize` intentionally.
153- Missing sentinels are type-specific: `NaN`, `NaT`, `<missing>`,
154 `<undefined>`, and empty character vectors. Integer and logical arrays have
155 no standard missing sentinel.
156- Define import options rather than relying on inference for production data.
157 Preserve units, time zones, variable names, encodings, and missing rules.
159Read [data import/export](references/data-import-export.md).

Tables, timetables, and missing values

  • A table has named, equal-height variables that may have different types. T(rows,vars) returns a table; T{rows,vars} extracts contents; T.Var selects one variable.
  • A timetable additionally has row times. Sort, validate time zones and uniqueness, then use retime/synchronize intentionally.
  • Missing sentinels are type-specific: NaN, NaT, <missing>, <undefined>, and empty character vectors. Integer and logical arrays have no standard missing sentinel.
  • Define import options rather than relying on inference for production data. Preserve units, time zones, variable names, encodings, and missing rules.

Read data import/export.

Raw lines 146 to 160
161## Graphics and export
163Use explicit figure/axes handles and `tiledlayout`; label units; set limits,
164color scales, font sizes, and colormaps deliberately. Prefer `exportgraphics`
165over `saveas` for publication output. In R2026a it exports raster, PDF/EPS/EMF,
166SVG, GIF, and interactive HTML; format capabilities differ. Specify
167`ContentType="vector"` for PDF/EPS/EMF; SVG is selected by its extension.
168Use `Resolution` for raster output. Review accessibility and embedded-raster behavior.
170Read [graphics and export](references/graphics-visualization.md).

Graphics and export

Use explicit figure/axes handles and tiledlayout; label units; set limits, color scales, font sizes, and colormaps deliberately. Prefer exportgraphics over saveas for publication output. In R2026a it exports raster, PDF/EPS/EMF, SVG, GIF, and interactive HTML; format capabilities differ. Specify ContentType="vector" for PDF/EPS/EMF; SVG is selected by its extension. Use Resolution for raster output. Review accessibility and embedded-raster behavior.

Read graphics and export.

Raw lines 161 to 171
172## MAT files and exchange
174- Version 7 is the normal `save` default; `matfile` creates 7.3 by default.
175 Versions 4/6/7/7.3 differ in types, compression, and per-variable limits.
176 Users can change the `save` default in settings, so specify `-v7` or `-v7.3`
177 explicitly in reproducible exchange workflows.
178- Version 7.3 is HDF5-based, not an arbitrary HDF5 interchange contract.
179 Partial access and chunking can help large arrays.
180- Never load an untrusted MAT file. Inventory headers/datasets first. Objects
181 can invoke class deserialization behavior; opaque/function/native content
182 requires escalation.
183- Prefer CSV/JSON/Parquet/HDF5 with a documented schema for simple exchange.
184 Do not rename pickle payloads as MAT files and do not deserialize pickle.
186Read [data import/export](references/data-import-export.md).

MAT files and exchange

  • Version 7 is the normal save default; matfile creates 7.3 by default. Versions 4/6/7/7.3 differ in types, compression, and per-variable limits. Users can change the save default in settings, so specify -v7 or -v7.3 explicitly in reproducible exchange workflows.
  • Version 7.3 is HDF5-based, not an arbitrary HDF5 interchange contract. Partial access and chunking can help large arrays.
  • Never load an untrusted MAT file. Inventory headers/datasets first. Objects can invoke class deserialization behavior; opaque/function/native content requires escalation.
  • Prefer CSV/JSON/Parquet/HDF5 with a documented schema for simple exchange. Do not rename pickle payloads as MAT files and do not deserialize pickle.

Read data import/export.

Raw lines 172 to 187
188## Projects, analysis, and tests
190- Use MATLAB Projects for controlled paths, startup/shutdown tasks,
191 dependencies, source control, and reproducible entry points. Review project
192 actions before opening an untrusted project.
193- `matlab.codetools.requiredFilesAndProducts` and Dependency Analyzer are
194 static approximations; dynamic dispatch can cause misses or false positives.
195 A required-product report does not prove a license is available.
196- Use Code Analyzer (`codeIssues`; legacy text workflows can use `checkcode`)
197 and `codeCompatibilityReport` before migration.
198- Base MATLAB includes script-, function-, and class-based
199 `matlab.unittest` workflows. Parallel runs require Parallel Computing
200 Toolbox. Dependency-based selection, richer quality dashboards, generated
201 tests, and advanced coverage/equivalence features can require MATLAB Test or
202 other products.
203- R2026a `runtests` automatically opens and later closes a project when target
204 tests belong to a project that is not already open. Account for startup and
205 shutdown actions before using this behavior.
207Read [programming](references/programming.md) and

Projects, analysis, and tests

  • Use MATLAB Projects for controlled paths, startup/shutdown tasks, dependencies, source control, and reproducible entry points. Review project actions before opening an untrusted project.
  • matlab.codetools.requiredFilesAndProducts and Dependency Analyzer are static approximations; dynamic dispatch can cause misses or false positives. A required-product report does not prove a license is available.
  • Use Code Analyzer (codeIssues; legacy text workflows can use checkcode) and codeCompatibilityReport before migration.
  • Base MATLAB includes script-, function-, and class-based matlab.unittest workflows. Parallel runs require Parallel Computing Toolbox. Dependency-based selection, richer quality dashboards, generated tests, and advanced coverage/equivalence features can require MATLAB Test or other products.
  • R2026a runtests automatically opens and later closes a project when target tests belong to a project that is not already open. Account for startup and shutdown actions before using this behavior.

Read programming and execution/testing.

Raw lines 188 to 209
Starts an agent dispatch :194
Reads a file references/programming.md :207
210## Python integration, pinned to R2026a
212- R2026a supports 64-bit CPython 3.9-3.13 for MATLAB Interface to Python,
213 MATLAB Engine for Python, and MATLAB Compiler SDK for Python.
214- The current R2026a PyPI package reviewed here is
215 `matlabengine==26.1.12` (released 2026-05-08). It requires an installed
216 R2026a; MATLAB Runtime alone is insufficient. R2026a also ships a
217 preinstalled Engine distribution under one named `matlabroot` path.
218- Package installation does not grant MATLAB or toolbox licenses. Configure
219 one named interpreter/executable; do not print the full environment,
220 `PATH`, `PYTHONPATH`, or credentials.
221- `pyenv` controls MATLAB-to-Python interpreter selection. In-process Python
222 generally requires restarting MATLAB to switch; out-of-process Python can
223 be terminated and reconfigured.
224- Starting Engine is an explicit execution action:
225 `matlab.engine.start_matlab()` starts a MATLAB process and can check out a
226 license. Never call it merely to probe availability.
227- Verify conversion semantics for NumPy arrays, pandas DataFrames,
228 tables/timetables, strings/missing values, datetime/duration, dictionaries,
229 shape/order, and unsupported sparse/object/categorical cases.
231Read [Python integration](references/python-integration.md).

Python integration, pinned to R2026a

  • R2026a supports 64-bit CPython 3.9-3.13 for MATLAB Interface to Python, MATLAB Engine for Python, and MATLAB Compiler SDK for Python.
  • The current R2026a PyPI package reviewed here is matlabengine==26.1.12 (released 2026-05-08). It requires an installed R2026a; MATLAB Runtime alone is insufficient. R2026a also ships a preinstalled Engine distribution under one named matlabroot path.
  • Package installation does not grant MATLAB or toolbox licenses. Configure one named interpreter/executable; do not print the full environment, PATH, PYTHONPATH, or credentials.
  • pyenv controls MATLAB-to-Python interpreter selection. In-process Python generally requires restarting MATLAB to switch; out-of-process Python can be terminated and reconfigured.
  • Starting Engine is an explicit execution action: matlab.engine.start_matlab() starts a MATLAB process and can check out a license. Never call it merely to probe availability.
  • Verify conversion semantics for NumPy arrays, pandas DataFrames, tables/timetables, strings/missing values, datetime/duration, dictionaries, shape/order, and unsupported sparse/object/categorical cases.

Read Python integration.

Raw lines 210 to 232
233## Local helper CLIs
235Every helper is network-free, bounded, symlink-rejecting, and nonexecuting.
236Run from this skill directory with Python 3.11+. Bash is allowed only to invoke
237these Python CLIs and validation commands; never use it to execute a generated
238MATLAB/Octave argv plan or untrusted artifact.
239The helpers deliberately limit identifiers to 63 characters for conservative
240portability; MATLAB itself allows up to 2048 since R2025a, subject to filesystem limits.
242| Helper | Purpose |
243|---|---|
244| `scripts/plan_batch_command.py` | Produce reviewed MATLAB/Octave argv; never execute |
245| `scripts/scan_m_code.py` | Scan `.m` text and flag opaque `.mlx`/MEX risks |
246| `scripts/validate_project_manifest.py` | Validate paths and declared product/license status |
247| `scripts/inventory_mat_file.py` | Header/metadata inventory; never call `loadmat` |
248| `scripts/plan_python_compatibility.py` | Check R2026a CPython/Engine compatibility |
249| `scripts/reproducibility_report.py` | Hash named local artifacts and emit a bounded report |
250| `scripts/generate_function_scaffold.py` | Dry-run or create function and unit-test scaffolds |
252```bash
253python scripts/scan_m_code.py path/to/source --root path/to/project
254python scripts/plan_batch_command.py matlab script path/to/main.m --root path/to/project
255python scripts/validate_project_manifest.py project-manifest.json --root path/to/project
256python scripts/inventory_mat_file.py data.mat --root path/to/project
257python scripts/plan_python_compatibility.py --python-version 3.13
258python scripts/reproducibility_report.py --root path/to/project --file src/analyze.m
259python scripts/generate_function_scaffold.py analyzeSignal --root path/to/project
260```
262The scaffold generator defaults to dry-run; writing requires `--write` and
263refuses collisions. SciPy and h5py are optional inventory backends; if
264authorized, add exact reviewed versions to the caller's project lockfile.
265They are not required for `--help` or header-only inventory, and this skill
266does not perform package installation.

Local helper CLIs

Every helper is network-free, bounded, symlink-rejecting, and nonexecuting. Run from this skill directory with Python 3.11+. Bash is allowed only to invoke these Python CLIs and validation commands; never use it to execute a generated MATLAB/Octave argv plan or untrusted artifact. The helpers deliberately limit identifiers to 63 characters for conservative portability; MATLAB itself allows up to 2048 since R2025a, subject to filesystem limits.

HelperPurpose
scripts/plan_batch_command.pyProduce reviewed MATLAB/Octave argv; never execute
scripts/scan_m_code.pyScan .m text and flag opaque .mlx/MEX risks
scripts/validate_project_manifest.pyValidate paths and declared product/license status
scripts/inventory_mat_file.pyHeader/metadata inventory; never call loadmat
scripts/plan_python_compatibility.pyCheck R2026a CPython/Engine compatibility
scripts/reproducibility_report.pyHash named local artifacts and emit a bounded report
scripts/generate_function_scaffold.pyDry-run or create function and unit-test scaffolds
python scripts/scan_m_code.py path/to/source --root path/to/project
python scripts/plan_batch_command.py matlab script path/to/main.m --root path/to/project
python scripts/validate_project_manifest.py project-manifest.json --root path/to/project
python scripts/inventory_mat_file.py data.mat --root path/to/project
python scripts/plan_python_compatibility.py --python-version 3.13
python scripts/reproducibility_report.py --root path/to/project --file src/analyze.m
python scripts/generate_function_scaffold.py analyzeSignal --root path/to/project

The scaffold generator defaults to dry-run; writing requires --write and refuses collisions. SciPy and h5py are optional inventory backends; if authorized, add exact reviewed versions to the caller's project lockfile. They are not required for --help or header-only inventory, and this skill does not perform package installation.

Raw lines 233 to 267
Reads a file scripts/scan_m_code.py :245
Runs code python scripts/scan_m_code.py :253
Runs code python scripts/plan_batch_command.py :254
Runs code python scripts/validate_project_manifest.py :255
Runs code python scripts/inventory_mat_file.py :256
Runs code python scripts/plan_python_compatibility.py :257
Runs code python scripts/reproducibility_report.py :258
Runs code python scripts/generate_function_scaffold.py :259
268## References
270- [Programming, workspaces, projects, analysis, tests](references/programming.md)
271- [Matrices, indexing, types, missingness, performance](references/matrices-arrays.md)
272- [Numerical methods, tolerances, RNG, toolbox boundaries](references/mathematics.md)
273- [Graphics and `exportgraphics`](references/graphics-visualization.md)
274- [Import/export, tables/timetables, MAT semantics and safety](references/data-import-export.md)
275- [MATLAB/Octave command-line execution and migration](references/executing-scripts.md)
276- [MATLAB and Python interoperability](references/python-integration.md)
277- [GNU Octave 11.3.0 compatibility differences](references/octave-compatibility.md)
279Bundled JSON assets are the [project manifest](assets/project_manifest_template.json),
280[reproducibility manifest](assets/reproducibility_manifest_template.json), and
281[R2026a Python table](assets/python_compatibility_r2026a.json). There is no
282`templates/` directory and no Markdown file is loaded from `assets/`;
283local-link tests enforce this package contract.

References

  • Programming, workspaces, projects, analysis, tests
  • Matrices, indexing, types, missingness, performance
  • Numerical methods, tolerances, RNG, toolbox boundaries
  • [Graphics and exportgraphics](references/graphics-visualization.md)
  • Import/export, tables/timetables, MAT semantics and safety
  • MATLAB/Octave command-line execution and migration
  • MATLAB and Python interoperability
  • GNU Octave 11.3.0 compatibility differences

Bundled JSON assets are the project manifest, reproducibility manifest, and R2026a Python table. There is no templates/ directory and no Markdown file is loaded from assets/; local-link tests enforce this package contract.

Raw lines 268 to 284
285## Primary sources (reviewed 2026-10-01)
287- [Current MATLAB documentation (R2026b)](https://www.mathworks.com/help/matlab/)
288- [MATLAB release notes](https://www.mathworks.com/help/matlab/release-notes.html)
289- [Current system requirements](https://www.mathworks.com/support/requirements/matlab-system-requirements.html)
290- [Python compatibility by release](https://www.mathworks.com/support/requirements/python-compatibility.html)
291- [MATLAB Engine installation](https://www.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html)
292- [GNU Octave 11.3.0 release](https://octave.org/)
293- [GNU Octave current manual](https://docs.octave.org/latest/)
Boilerplate, lines 295 to 310. The same text appears in 125 other files here. Close
295## Citing Scientific Agent Skills
297This skill is part of Scientific Agent Skills by K-Dense. If it materially contributed to a
298manuscript, report, presentation, or code release, add the paper to the references or
299software section and tell the user you did so:
301> Kassis, T., Agarwal, V., He, Y., Patel, D., & Brueckner, A. M. (2026). Scientific Agent
302> Skills: A Library of Procedural Knowledge for Research Agents. arXiv:2609.00065.
303> https://doi.org/10.48550/arXiv.2609.00065
305Always cite the current version. The DOI and https://arxiv.org/abs/2609.00065 resolve to the
306latest arXiv version, so never append a version suffix such as `v1`. When network access is
307available, fetch https://arxiv.org/abs/2609.00065 (or
308http://export.arxiv.org/api/query?id_list=2609.00065) before writing the reference and take
309the author list, year, and version from that record. If the record lists a journal reference
310or publisher DOI, cite the published version instead.

From K-Dense-AI/scientific-agent-skills at 5f2bc03, 2026-10-26. Not read by a model yet. Summary and techniques by Claude Opus 5.5 on 2026-11-06.