- name
SKILL.md
Файл навыка остаётся в репозитории издателя.
Вставьте скопированную команду в терминал. Она установит этот SKILL.md в выбранного агента.
npx skills add matlab/simulink-agentic-toolkit --skill simulink-customize-a2l -a cursor -yВставьте скопированную команду в терминал. Она установит этот SKILL.md в выбранного агента.
npx skills add matlab/simulink-agentic-toolkit --skill simulink-customize-a2l -a claude-code -yВставьте скопированную команду в терминал. Она установит этот SKILL.md в выбранного агента.
npx skills add matlab/simulink-agentic-toolkit --skill simulink-customize-a2l -a codex -yВставьте скопированную команду в терминал. Она установит этот SKILL.md в выбранного агента.
npx skills add matlab/simulink-agentic-toolkit --skill simulink-customize-a2l -a grok -yОтправьте скопированное сообщение в чат Grok Bot. Бот загрузит этот SKILL.md с GitHub и добавит его к навыкам, общим для всех ваших ботов.
Install this skill: https://github.com/matlab/simulink-agentic-toolkit/tree/HEAD/skills-catalog/code-generation/simulink-customize-a2lОт издателя
Customize A2L (ASAP2) files generated from Simulink models using the coder.asap2 and coder.mapping APIs, avoiding silent errors and undocumented pitfalls.
CustomEcuDescriptions to coder.asap2.exporta2lfile)coder.asap2.export directly with name-value options. No getEcuDescriptions needed.getEcuDescriptions → customize → export workflow.% === Path A: Config-only (no element changes) ===
load_system(modelName);
slbuild(modelName);
coder.asap2.export(modelName, SupportStructureElements=false, IncludeDefaultEventList=false);
% === Path B: Element customization ===
load_system(modelName);
slbuild(modelName);
% 1. Create ECU descriptions — pass ALL configuration options here
descObj = coder.asap2.getEcuDescriptions(modelName, ...
SupportStructureElements=false, ...
IncludeDefaultEventList=false);
% 2. Customize elements
add(descObj, newElement);
set(descObj, 'ElementType', 'Name', Prop=value);
info = get(descObj, 'ElementType', 'Name');
names = find(descObj, 'ElementType');
delete(descObj, 'ElementType', 'Name');
% 3. Export — MUST pass descObj back or all customizations are silently lost
coder.asap2.export(modelName, CustomEcuDescriptions=descObj);
Critical: When using Path B, omitting CustomEcuDescriptions=descObj in the export call silently discards all customizations with no error.
Critical: When using Path B, construction-time options (SupportStructureElements, etc.) CANNOT be passed to export alongside CustomEcuDescriptions — they must be passed to getEcuDescriptions.
See references/object-properties.md for mandatory fields, valid types, and creation order for each coder.asap2.* class.
Match the user's task to the correct reference for detailed guidance:
If the user's release is too old, inform them. Do not attempt workarounds — the APIs do not exist on older releases.
These cause silent failures or incorrect calibration data. Always check before generating code:
fileread after export — use contains for additions, ~contains for deletions/exclusionsgetEcuDescriptions() construction timeForceShared=true for STD→COM_AXIS (never build AXIS_PTS manually for this)delete(descObj, 'ElementType', 'Name') to remove auto-created placeholders — this is the only recovery from the auto-creation trap caused by set() on a reference name before the referenced object existscoder.mapping.api over coder.asap2 when settings should persist with the modelCopyright 2026 The MathWorks, Inc.
>
---name: simulink-customize-a2ldescription: >---# skills-catalog/code-generation/simulink-customize-a2l/SKILL.mdFAQ
Скачайте skills-catalog/code-generation/simulink-customize-a2l/SKILL.md у издателя или скопируйте путь и откройте репозиторий. PlugMCP только показывает навык в каталоге и не хранит файл.
Издатель хранит его в https://github.com/matlab/simulink-agentic-toolkit.
Claude, Cursor, Codex и Grok Build могут читать SKILL.md, который вы добавляете из репозитория издателя. Grok Bot устанавливает его, когда вы отправляете в чат ссылку на папку навыка на GitHub.
Must pass at getEcuDescriptions() — cannot set after construction or pass to export with CustomEcuDescriptions |
references/construction-time-properties.md |
Must be string array: ["A","B"] |
Skipping slbuild after setInport/setOutport | Export silently produces stale A2L with old settings | Always slbuild after code mapping changes before export |
Hardcoding EcuAddress = '0x0000' | Calibration tools cannot resolve the address at import time | Use '@ECU_Address@<elementName>@' for linker resolution |
| Leaving mandatory fields unset on new objects | Blank fields produce invalid A2L — calibration tools reject the file | See references/object-properties.md for required fields per class |
| Creating VarCriterion/VarCharacteristic without supporting CHARACTERISTICs | VARIANT_CODING references characteristics that don't exist — calibration tool rejects the file | Create selection CHARACTERISTIC (with TAB_VERB CompuMethod) and variant-dependent CHARACTERISTIC (with RecordLayout) BEFORE VarCriterion/VarCharacteristic. See references/variant-coding-guidance.md |