- name
SKILL.md
Tệp skill vẫn nằm trong kho mã của nhà phát hành.
Dán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add matlab/simulink-agentic-toolkit --skill managing-simulink-projects -a cursor -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add matlab/simulink-agentic-toolkit --skill managing-simulink-projects -a claude-code -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add matlab/simulink-agentic-toolkit --skill managing-simulink-projects -a codex -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add matlab/simulink-agentic-toolkit --skill managing-simulink-projects -a grok -yGửi tin nhắn đã sao chép trong cuộc trò chuyện Grok Bot. Bot sẽ lấy tệp SKILL.md này từ GitHub và thêm vào bộ skill mà mọi Bot của bạn dùng chung.
Install this skill: https://github.com/matlab/simulink-agentic-toolkit/tree/HEAD/skills-catalog/model-based-design-core/managing-simulink-projectsTừ nhà phát hành
MATLAB projects coordinate Simulink workflows — they manage the MATLAB path (which Simulink uses to resolve model references, data dictionaries, and requirements), track file membership for source control, and provide label-based automation for selecting targets in CI/CD pipelines.
building-simulink-modelstesting-simulink-modelsgenerate-requirement-draftssimulating-simulink-modelsFour principles that prevent the most common failures:
Registration ≠ path. addFile registers a file with the project for source control tracking. addPath puts a folder on the MATLAB path so Simulink can resolve artifacts by filename. These are independent operations — you almost always need both.
Filename-only resolution. Data dictionaries (set_param(...,'DataDictionary',...), addDataSource), model references, and requirements all resolve via MATLAB path using filename only — never full paths. The containing folder must be on the project path.
addPath is not recursive. Each subfolder containing resolvable artifacts needs its own addPath call.
Single-project constraint. Only one project can be open at a time. Creating or opening a new project silently closes the current one (running its shutdown scripts). currentProject throws an error when no project is open — it does not return empty.
Always:
addPath(proj, folder) for every folder containing dictionaries, referenced models, requirements, or profilesaddDataSource, set_param(...,'DataDictionary',...), and slreq.createLinkSimulinkCacheFolder and SimulinkCodeGenFolder: proj.SimulinkCacheFolder = fullfile(proj.RootFolder, 'work')updateDependencies(proj) before querying proj.Dependencies.graphml extension for DependencyCacheFile.gitignore for excluding derived files from source control.slmx link-store files with the project (guarded by isfile check)Ask First:
removeFile then disk delete)Never:
proj.IgnoredFilePatterns — throws "Feature not supported" for all project types from createProjectcat.Labels — the correct property is cat.LabelDefinitions'string' as a label DataType — valid types are 'none', 'char', 'double', 'integer', 'logical'findFile (singular) for label queries in R2024a+ — use findFiles (plural). ONLY use findFile with R2023a/bclear all in startup scripts — it wipes the proj variableRun after every project modification:
results = runChecks(proj);
updateDependencies(proj);
deps = proj.Dependencies; % digraph
If runChecks reports issues, inspect which folders are missing from the project path — this is the root cause of most failures.
Copyright 2026 The MathWorks, Inc.
>-
---name: managing-simulink-projectsdescription: >----# skills-catalog/model-based-design-core/managing-simulink-projects/SKILL.mdCâu hỏi thường gặp
Tải skills-catalog/model-based-design-core/managing-simulink-projects/SKILL.md từ nhà phát hành, hoặc sao chép đường dẫn và mở kho mã. PlugMCP chỉ liệt kê skill và không lưu trữ tệp này.
Nhà phát hành duy trì nó tại https://github.com/matlab/simulink-agentic-toolkit.
Claude, Cursor, Codex và Grok Build có thể đọc tệp SKILL.md mà bạn thêm từ kho mã của nhà phát hành. Grok Bot cài đặt skill khi bạn gửi liên kết thư mục GitHub của skill trong cuộc trò chuyện.