matlab-project

Set up and maintain MATLAB Project (.prj) structures with paths, tracked files, and health checks.

162|31|Updated Oct 25, 2025
One-click install
npx skills add https://github.com/matlab/agent-skills-playground --skill matlab-project-matlab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-project
Source: https://github.com/matlab/agent-skills-playground/tree/main/demos/mbse-with-agentic-ai/skills/matlab-project
Command: npx skills add https://github.com/matlab/agent-skills-playground --skill matlab-project-matlab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes MATLAB Project (.prj) setup so an agent can reliably manage paths, tracked artifacts, derived output locations, and repeatable build-script workflows without leaving the project in an inconsistent state.

Core Features & Use Cases

  • Project creation with conventions: Create a .prj and define tracked subfolders plus derived (untracked) output folders like Simulink cache and code-generation targets.
  • Safe file lifecycle management: Track files as they are created, add shortcuts for key artifacts, and remove tracked files before deleting them to avoid failing health checks.
  • Idempotent build-script patterns: Delete-and-recreate tracked artifacts, clear transient state, register artifacts at the end of scripts, and run end-to-end project checks via buildAll-style orchestration.
  • Living documentation for context: Add plan.md and decisions.md templates to preserve scope, milestones, and non-obvious rationale for future readers.

Quick Start

Ask the agent to set up a MATLAB project with a .prj file for MySystem, tracking requirements/architecture/analysis/verification/scripts while placing Simulink cache and codegen outputs into derived folders, then generate buildAll-style scripts that register artifacts and run project health checks.

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 with consistent paths and tracked files?

To set up a MATLAB project, use setupProject and registerWithProject helpers to define a .prj file, register tracked subfolders, and enforce path registration rules for consistent project structure.

What is an idempotent build script in MATLAB and how does it work?

An idempotent MATLAB build script deletes and recreates tracked artifacts, clears transient state, and registers artifacts at the end to ensure repeatable project regeneration without leaving inconsistent states.

How do I manage Simulink cache and codegen output folders in a MATLAB project?

Manage Simulink cache and codegen outputs by defining them as derived, untracked folders within the .prj structure, keeping them separate from tracked source files during project setup.

Why does my MATLAB project health check fail after deleting a file?

MATLAB project health checks fail when tracked files are deleted without prior removal from the project, leaving dangling references that compromise deterministic project integrity validation.

Can I automate MATLAB project integrity validation for build scripts?

Yes, automate validation by running runChecks within buildAll-style orchestration scripts to perform deterministic project integrity validation after idempotent artifact generation.

Do I need specific folder conventions for requirements and architecture in MATLAB projects?

Yes, standard MATLAB project conventions track subfolders like requirements, architecture, analysis, verification, and scripts, while placing derived outputs into separate untracked locations.