matlab-project

Set up MATLAB Projects and manage files, paths, and health checks.

18|4|Updated Jul 20, 2023
One-click install
npx skills add https://github.com/simulink/blog --skill matlab-project
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-project
Source: https://github.com/simulink/blog/tree/main/2026_04_27_MBSE_GenAI/matlab-mbse-skills/skills/matlab-project
Command: npx skills add https://github.com/simulink/blog --skill matlab-project

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use this skill for any work involving a MATLAB Project (.prj) — creating a new project, tracking files, managing the project path, configuring Simulink cache and code-generation folders, running project health checks, or writing build scripts that keep the project in sync with the file system. Trigger phrases include "set up a MATLAB project", "create a .prj", "track this file in the project", "project health check", or writing build scripts that keep the project in sync with the file system. This skill is the generic foundation; domain-specific skills (e.g. mbse-workflow) build on it.

Core Features & Use Cases

  • Domain-agnostic helpers like setupProject, registerWithProject and conventions for idempotent build scripts, tracking, and path management.
  • Ability for domain-specific skills to reuse and override living-doc templates (plan.md and decisions.md) and living-doc behavior.
  • Supports structured living documentation (plan.md, decisions.md) at project root and template overrides.

Quick Start

Run setupProject with a projectName, projectFolder, and derivedSubfolders to initialize a MATLAB Project and integrate with Simulink cache/codegen directories.

Frequently Asked Questions about matlab-project

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a MATLAB project and manage its file paths?

Initialize a MATLAB project by running setupProject with a projectName, projectFolder, and derivedSubfolders to configure the .prj file and manage its file paths. This registers files and integrates Simulink cache and codegen directories.

What is a MATLAB project health check and when do I need to run one?

A MATLAB project health check verifies that your project files, paths, and dependencies are correctly configured and synchronized with the file system. Run health checks during MBSE workflows to detect path issues or missing files before executing build scripts.

How do I write idempotent build scripts for a MATLAB .prj file?

Write idempotent build scripts for a MATLAB .prj by following the functional conventions defined by the project skill, ensuring repeated executions keep the project in sync with the file system without duplicating path entries or file tracking modifications.

Can I track new files and configure Simulink cache folders in an existing MATLAB project?

Yes, you can track new files and configure Simulink cache folders in an existing MATLAB project using the registerWithProject helper. This enables ongoing path management and codegen folder setup without recreating the project from scratch.

Does this MATLAB project setup skill support structured living documentation?

Yes, the MATLAB project setup skill supports structured living documentation by maintaining plan.md and decisions.md files at the project root. Domain-specific skills can reuse and override these living-doc templates and behaviors.

Why are my MATLAB project paths not updating when I add files to the folder?

MATLAB project paths may not update if build scripts are not idempotent or if files are not explicitly tracked via registerWithProject. Running a project health check verifies synchronization between the file system and the project path configuration.