Agent Skillsmatlab/matlab-agentic-toolkit › matlab-list-products

matlab-list-products

GitHub

用于查询指定MATLAB安装路径下已安装的产品、工具箱和支持包。支持通过路径或版本号自动解析环境,读取配置并返回结果,适用于验证安装内容或检查特定组件是否存在。

skills-catalog/matlab-core/matlab-list-products/SKILL.md matlab/matlab-agentic-toolkit

Trigger Scenarios

用户询问当前MATLAB安装了哪些产品或工具箱 用户希望验证某个特定产品是否已安装 用户提供路径并要求列出MATLAB安装内容

Install

npx skills add matlab/matlab-agentic-toolkit --skill matlab-list-products -g -y
More Options

Non-standard path

npx skills add https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/matlab-core/matlab-list-products -g -y

Use without installing

npx skills use matlab/matlab-agentic-toolkit@matlab-list-products

指定 Agent (Claude Code)

npx skills add matlab/matlab-agentic-toolkit --skill matlab-list-products -a claude-code -g -y

安装 repo 全部 skill

npx skills add matlab/matlab-agentic-toolkit --all -g -y

预览 repo 内 skill

npx skills add matlab/matlab-agentic-toolkit --list

SKILL.md

Frontmatter
{
    "name": "matlab-list-products",
    "license": "https:\/\/www.mathworks.com\/content\/dam\/mathworks\/license\/pmrl\/license.md",
    "metadata": {
        "author": "MathWorks",
        "version": "1.0"
    },
    "description": "Show all installed MATLAB products and support packages for a given MATLAB installation folder. Use when listing, checking, or verifying what products or support packages are in a MATLAB installation."
}

Show Installed MATLAB Products

Use this skill when asked to show, list, or check what MATLAB products or support packages are installed in a given MATLAB installation.

$ARGUMENTS

When to Use

  • User asks what products, toolboxes, or support packages are installed in a MATLAB installation
  • User wants to verify a specific product is installed
  • User asks to list or check their MATLAB installation contents
  • User provides a matlabroot path or release name and wants to see what's there

When NOT to Use

  • User wants to install new products (use matlab-install-products instead)
  • User wants to check MATLAB license status or activation (different workflow)
  • User wants to manage or update Add-Ons from within MATLAB
  • User asks about MATLAB version/release info only (use ver or version in MATLAB)

Input

The user may provide a matlabroot path or a release name, and optionally a platform. Resolve the matlabroot as follows:

  • Path provided (e.g. C:\Program Files\MATLAB\R2025a, /usr/local/MATLAB/R2025a, /Applications/MATLAB_R2025a.app): use it as-is. Infer the platform from the path format (backslash / drive letter -> Windows; /Applications/MATLAB_ prefix -> macOS; other Unix path -> Linux).
  • Release name provided (e.g. R2025a, or shorthand like 25a): expand shorthand to full form (25a -> R2025a, 26a -> R2026a, etc.) and construct the default path for the detected or specified platform:
    • Windows: C:\Program Files\MATLAB\<release>
    • Linux: /usr/local/MATLAB/<release>
    • macOS: /Applications/MATLAB_<release>.app
  • Nothing provided: ask the user for the release name and, if ambiguous, the platform before proceeding.

If the platform cannot be inferred from the path, assume Windows.

Protocol

Important: Execute all steps below silently. Do not narrate, describe, or show progress to the user. Output only the final formatted result from Step 6.

Step 1 -- Extract release name

Take the last component of the matlabroot path as the release name. Strip any trailing .app suffix for macOS paths.

Examples:

  • C:\Program Files\MATLAB\R2025a -> release = R2025a
  • /usr/local/MATLAB/R2025a -> release = R2025a
  • /Applications/MATLAB_R2025a.app -> release = R2025a

Fallback: If the last path component does not match R20\d{2}[ab] (e.g. custom installs like L:\prod25b), read {matlabroot}/VersionInfo.xml and extract the release from the <release> element. If that file is missing, ask the user for the release name.

Step 2 -- Read installed products from matlabroot

Read the file (use forward slashes on Linux/macOS, backslashes on Windows):

{matlabroot}/appdata/prodcontents.json

This is a single-line JSON object. Parse it as JSON and extract the keys — these are the installed product names (e.g. "MATLAB 25.1 win64", "MATLAB 25.1 glnxa64", "MATLAB 25.1 maca64"). The values (XML paths) are not needed.

Step 3 -- Read installed support packages

Derive the support package root based on platform:

  • Windows: C:\ProgramData\MATLAB\SupportPackages\{release}
  • Linux: /usr/local/MATLAB/SupportPackages/{release}
  • macOS: ~/Library/Application Support/MathWorks/MATLAB/SupportPackages/{release}

Read the file:

{supportpkgroot}/appdata/prodcontents.json

If the file does not exist, note that no support packages are installed and skip this section.

Step 4 -- Clean up product names

Each key in prodcontents.json looks like "MATLAB 25.1 win64" or "MATLAB Support Package for USB Webcams 25.1.0 win64".

Strip the trailing version number and platform token to get a clean display name:

  • Remove the version suffix: one or two numeric segments followed by an optional third (e.g. 25.1, 25.1.0, 25.2)
  • Remove the platform token: win64, glnxa64, maci64, maca64, or common
  • Trim any trailing whitespace

Examples:

Raw key Display name
MATLAB 25.1 win64 MATLAB
Simulink 25.1 win64 Simulink
Datafeed Toolbox 25.1 win64 Datafeed Toolbox
Motor Control Blockset 25.1 win64 Motor Control Blockset
MATLAB Documentation 25.1.0 win64 MATLAB Documentation
MATLAB Support Package for USB Webcams 25.1.0 win64 MATLAB Support Package for USB Webcams

Step 5 -- Sort products

Sort the cleaned product names using MATLABabetical order:

  1. MATLAB
  2. MATLAB Copilot
  3. Simulink
  4. Simulink Copilot
  5. All remaining products in standard alphabetical order

Any of the four anchor products that are not installed are simply omitted. Products not in the anchor list are sorted alphabetically after them.

Sort support packages in standard alphabetical order.

Step 6 -- Display results

Show the release name as a heading, the installation folder, then two separate tables.

Use this exact format:


{Release Name}

Installed at: {matlabroot} Support packages at: {supportpkgroot}

Products

Installed Products
MATLAB
Simulink
...

Support Packages

Installed Support Packages
MATLAB Support Package for USB Webcams
...

If no support packages are installed, show the heading and a single line: No support packages installed.

Key Functions and Patterns

Pattern Purpose
{matlabroot}/appdata/prodcontents.json JSON file listing installed products (keys = product names)
{supportpkgroot}/appdata/prodcontents.json JSON file listing installed support packages
MATLABabetical sort MATLAB, MATLAB Copilot, Simulink, Simulink Copilot first, then alphabetical
Version/platform stripping Remove trailing 25.1 win64 etc. from raw keys

Copyright 2026 The MathWorks, Inc.


Version History

  • 2026.08.13 Current 2026-08-16 07:18

    优化了发布版本号的解析逻辑,增强了对非标准安装路径的兼容性,并改进了平台检测规则。

  • 2026.07.16 2026-07-24 16:19

Same Skill Collection

skills-catalog/ai-and-statistics/matlab-create-experiment/SKILL.md
skills-catalog/ai-and-statistics/matlab-use-machine-learning-apps/SKILL.md
skills-catalog/automotive/roadrunner-asset-mapping/SKILL.md
skills-catalog/automotive/roadrunner-convert-lanelet2-to-rrhd/SKILL.md
skills-catalog/automotive/roadrunner-core/SKILL.md
skills-catalog/automotive/roadrunner-import-scene/SKILL.md
skills-catalog/automotive/roadrunner-rrhd-authoring/SKILL.md
skills-catalog/automotive/roadrunner-scenario-authoring/SKILL.md
skills-catalog/code-generation/matlab-deploy-embedded-code/SKILL.md
skills-catalog/code-generation/matlab-optimize-gpu-codegen/SKILL.md
skills-catalog/code-generation/matlab-review-fi-code/SKILL.md
skills-catalog/code-generation/matlab-review-fi-object-code/SKILL.md
skills-catalog/computational-biology/matlab-build-simbiology-model/SKILL.md
skills-catalog/computational-biology/matlab-fit-simbiology-model/SKILL.md
skills-catalog/computational-biology/matlab-simulate-simbiology-model/SKILL.md
skills-catalog/computational-finance/matlab-access-datafeed/SKILL.md
skills-catalog/computational-finance/matlab-use-spreadsheet-link/SKILL.md
skills-catalog/control-systems/matlab-extract-battery-features/SKILL.md
skills-catalog/control-systems/matlab-extract-rotating-machinery-features/SKILL.md
skills-catalog/control-systems/matlab-identify-linear-system/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-display-image/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-display-volume/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-model-optics/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-point-cloud-file-io/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-point-cloud-registration/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-process-large-images/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-read-write-point-cloud-file/SKILL.md
skills-catalog/image-processing-and-computer-vision/matlab-register-point-clouds/SKILL.md
skills-catalog/math-and-optimization/matlab-solve-optimization/SKILL.md
skills-catalog/matlab-core/matlab-create-live-script/SKILL.md
skills-catalog/matlab-core/matlab-debug-code/SKILL.md
skills-catalog/matlab-core/matlab-debugging/SKILL.md
skills-catalog/matlab-core/matlab-install-products/SKILL.md
skills-catalog/matlab-core/matlab-read-doc/SKILL.md
skills-catalog/matlab-core/matlab-read-documentation/SKILL.md
skills-catalog/matlab-core/matlab-review-code/SKILL.md
skills-catalog/matlab-core/matlab-testing/SKILL.md
skills-catalog/matlab-core/matlab-write-test/SKILL.md
skills-catalog/matlab-data-import-and-analysis/matlab-analyze-data/SKILL.md
skills-catalog/matlab-data-import-and-analysis/matlab-import-export-data/SKILL.md
skills-catalog/matlab-environment-and-settings/matlab-migrate-settings/SKILL.md
skills-catalog/matlab-external-language-interfaces/matlab-call-python/SKILL.md
skills-catalog/matlab-software-development/matlab-analyze-dependencies/SKILL.md
skills-catalog/matlab-software-development/matlab-assess-toolbox/SKILL.md
skills-catalog/matlab-software-development/matlab-build-toolbox/SKILL.md
skills-catalog/matlab-software-development/matlab-create-buildfile/SKILL.md
skills-catalog/matlab-software-development/matlab-create-project/SKILL.md
skills-catalog/matlab-software-development/matlab-define-toolbox-api/SKILL.md
skills-catalog/matlab-software-development/matlab-document-toolbox/SKILL.md

Metadata

Files
0
Version
2026.08.13
Hash
4289f7f4
Indexed
2026-07-24 16:19

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 10:52
浙ICP备14020137号-1 $Гость$