Creates, extends, repairs, and validates Classic AUTOSAR software components (SWCs) in Simulink, including runnables, timing events, ports, IRVs, BSW service callers, and ARXML updates.
Ships in code-generation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill to create, extend, repair, and validate one Classic AUTOSAR Application Software Component (SWC). Keep the work focused on the component model, its AUTOSAR mappings, and its generated component artifacts.
Use this skill for a Classic AUTOSAR SWC when the work involves:
ara::com, service discovery,
SOME/IP, or Adaptive service interfaces.coder.mapping.* storage classes and code mappings or Embedded
Coder dictionary Data/Service Interface setup. Use
simulink-configure-code-interfaces for those tasks.Answer a request for an API pattern or a modeling decision directly when it does not require a model change. For a model change, inspect the supplied component before modifying it:
Use model_overview or model_read for model structure, model_query_params
for block and configuration values, and model_edit for ordinary diagram
changes. Use model_read_diagnostics after an update, compilation, simulation,
or build when Diagnostic Viewer output matters. Use evaluate_matlab_code for
AUTOSAR APIs that are not exposed as model tools, including autosar.api
mapping, property-tree operations, and focused AUTOSAR diagnostics.
Use matlab-read-documentation before giving an exact API form that is
release-sensitive, ambiguous, or absent from this skill and its references.
Treat autosar.api.create(modelName, "init") as destructive on an existing
mapped model. It removes existing interfaces, mappings, and metadata. Before
calling it, state that consequence and ask: "This reset removes existing
interfaces, mappings, and metadata. Do you want me to proceed?" Wait for
explicit confirmation.
Likewise, before deleting AUTOSAR content and recreating it, explain the specific loss and obtain affirmative confirmation. A generic repair request is not permission to reset a component.
For a new model, configure SystemTargetFile as autosar.tlc and create a
default mapping only after the model structure is ready. For an existing
mapping, inspect and edit it in place. Use "incremental" only to map newly
added Simulink elements without resetting the existing AUTOSAR state. Read
property-tree-mutation-rules.md
for the mapping-detection pattern and safe use of "default" and
"incremental" when deciding whether to create or extend a mapping.
autosar.api.validateModel(modelName) throws when it detects a configuration
error. A successful validation does not prove that generated defaults still
represent the requested interface or event behavior; inspect the affected
ports, mappings, and events as well.
Choose the execution style before changing an event:
For an existing multi-rate SWC, query the Runnable and TimingEvent objects
before renaming or retiming them. When changing both a runnable short name and
its generated C symbol, set lowercase symbol on the current runnable path
before changing Name; renaming changes the property-tree path.
Use the generic internal-behavior events collection for data-triggered
runnables. For DataSendCompletedEvent, first determine the
installed-release source-property form with matlab-read-documentation; do
not guess a property name.
Read property-tree-categories.md
for valid find categories and
property-tree-mutation-rules.md
for safe property-tree edits and runnable rename ordering.
Model inter-component data with sender-receiver ports. Root Inport and
Outport mappings normally use ImplicitReceive and ImplicitSend; choose
explicit access only when the requested behavior requires it.
Use In Bus Element and Out Bus Element ports when a component port carries
multiple data elements. Name blocks as PortName.ElementName so the intended
AUTOSAR port and element are unambiguous. Query Bus Element mappings through
the AUTOSAR sender/receiver ports and validation rather than relying only on
getInport or getOutport.
Do not change a rate-based ImplicitSend mapping merely to obtain a
conditional Rte_Write. Preserve the model and explain that this behavior has
Export-Function and ExplicitSend prerequisites.
Read swc-port-mapping.md for Bus Element port rules and mapping API behavior. Read conditional-write-prereqs.md before implementing conditional writes.
Choose the communication category before adding blocks:
| Need | Use |
|---|---|
| Data between components | Sender-receiver ports. |
| Operation on another SWC | Function Caller mapped to a client port and operation. |
| Custom OEM service | Function Caller with an underscore-style Port_Operation(...) prototype. |
| Standard Dem, FiM, or NvM service | The corresponding AUTOSAR Blockset library caller. |
| Data between runnables in one SWC | An IRV mapping on the intended data-transfer line or Rate Transition block. |
For a peer SWC operation, retain a dot-style Port.Operation(...) caller
prototype and map the qualified caller to the client port and operation. For
a custom OEM service, define the client-server operation arguments to match
the caller signature before mapping it.
Use a Dem, FiM, or NvM library caller instead of hand-authoring a Function Caller for that BSW service. After changing a BSW caller, run
autosar.api.syncModel(modelName) before validation. For Dem
SetEventStatus, use the Dem_EventStatusType supplied by the Diagnostic
Monitor Caller; do not create a project Dem_EventStatusType.m class. Feed
an NvM write from a Data Store Read.
For an existing IRV transfer, identify the current mapping with
getDataTransfer and retarget or rename its IRV instead of adding a duplicate.
Pass a named data-transfer line or a Rate Transition full path to
mapDataTransfer, never a numeric line handle.
Read client-server-and-irv-patterns.md for operation and IRV mapping mechanics. Read bsw-library-callers.md for Dem, FiM, and NvM caller rules.
For changed supplier ARXML, use updateModel when the Simulink component
structure must change and updateAUTOSARProperties when only AUTOSAR metadata
must refresh. Preserve the supplier source. Do not treat a textual difference
between generated component ARXML and an unchanged supplier package as a
round-trip failure.
Read variants-and-arxml-roundtrip.md for component import, variant selection, and preservation rules.
Generate code or ARXML only when the user requests artifacts or artifact
evidence. Inspect all generated *.arxml files when checking ports, events,
or memory placement, and inspect generated C separately for runnable symbols
and RTE calls. Read
verify-generated-artifacts.md for
artifact locations and attribute-tolerant checks.
For SwAddrMethod placement, distinguish runnable code, runnable-owned
internal data, and IRV data. Read
swaddrmethod-memory-placement.md
for the required mapping arguments and generated-artifact evidence.
Copyright 2026 The MathWorks, Inc.
manifest.yaml (opens in a new tab)references/bsw-library-callers.md (opens in a new tab)references/client-server-and-irv-patterns.md (opens in a new tab)references/conditional-write-prereqs.md (opens in a new tab)references/property-tree-categories.md (opens in a new tab)references/property-tree-mutation-rules.md (opens in a new tab)references/swaddrmethod-memory-placement.md (opens in a new tab)references/swc-port-mapping.md (opens in a new tab)references/variants-and-arxml-roundtrip.md (opens in a new tab)references/verify-generated-artifacts.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/code-generation:simulink-author-classic-autosar-swcfrom code-generation
npx claudepluginhub matlab/simulink-agentic-toolkit --plugin code-generation8 skills in this plugin
/simulink-configure-code-interfacesUse the skill to control and verify the code interface configuration of your model — how Simulink® model elements are represented in the generated C or C++ code. This includes — (1) specifying names, types (storage classes), and placement of variables that represent model elements (for example, making a model parameter tunable as a global extern variable); (2) specifying names, types, and placement of functions that represent model algorithms; (3) selecting the deployment type (Component, Subcomponent, or Automatic); (4) selecting the interface configuration type (data or service interface); (5) linking a shared Embedded Coder dictionary to a model; (6) creating Embedded Coder dictionary entries and setting their properties; (7) for service interface configuration — specifying service interface definitions, including sender, receiver, client, and server services. Items 1 and 2 can be set per element or as a category-wide default. Item 1 applies to GRT and ERT models; the rest to ERT models only./simulink-configure-model-for-code-generationConfigure Simulink models for Embedded Coder (ERT), Simulink Coder (GRT rapid-prototyping), or AUTOSAR code generation. Use when the user asks to generate embedded C or C++ code, run a full build of a model, produce a code generation report, configure a model for production/ECU deployment or rapid-prototyping code, target ARM or x86 hardware, apply a MISRA C/C++ code-generation profile (ERT/AUTOSAR only, not GRT), or set up GRT, ERT, AUTOSAR, or shared-library targets. Handles target selection, hardware mapping, model hierarchy propagation, and optional support-flag introspection. Do NOT use for GRT shared-library variants (grt_malloc.tlc), DDS, or ROS. Do NOT use for Simulink Real-Time/Speedgoat targets (simulink-configure-real-time-model), Classic AUTOSAR component mapping/ports/runnables/ARXML authoring (simulink-author-classic-autosar-swc), auditing a model against MISRA guidelines (checking-model-compliance), or iterative optimization of existing generated code (simulink-optimizing-embedded-code).
/simulink-customize-a2lCustomize A2L (ASAP2) files generated from Simulink models using coder.asap2 and coder.mapping APIs. Use this skill when adding COMPU_METHODs, creating GROUPs, converting STD_AXIS to COM_AXIS, adding BIT_OPERATIONs, creating VARIANT_CODING, excluding measurements or struct elements, removing DEFAULT_EVENT_LIST, or any A2L customization for calibration tool compatibility (INCA, CANape). Also use when the user mentions ASAP2, ECU calibration data, A2L export.
/simulink-optimizing-embedded-codeRoutes Embedded Coder workflows for Simulink models. Use when asked to optimize or improve generated code, reduce code metrics, author Code Replacement Libraries, or improve Embedded Coder output. Targets: execution time, memory (RAM, ROM, stack), code size, MISRA compliance. Works iteratively with measurement, gating, and rollback. Triggers: optimize generated code, reduce runtime, shrink code size, improve code efficiency, reduce memory, speed up generated code, MISRA compliance, author CRL. CAUTION: Do NOT optimize generated code without this skill — the gating and rollback workflow is essential./simulink-single-precision-conversionConverts a double-precision Simulink system or subsystem to single precision using DataTypeWorkflow.Single (Fixed-Point Designer). The single conversion replaces all user-specified double-precision data types, as well as output data types that compile to double precision, with single-precision data types. Use this skill when converting Simulink systems to single precision, reducing memory usage of a Simulink system, optimizing for embedded targets. Do NOT use for standalone MATLAB .m code single conversion./slci-compatibility-analysisUse when you need to verify a Simulink model is compatible with SLCI code inspection, or to apply fixes for identified incompatibilities. Checks model configuration, identifies incompatibilities, and explains why each constraint is required for verification. Also invoked by slci-inspection-incompatibility-analysis to fix constraints and obtain compatibility results. Trigger keywords: checkCompatibility, SLCI compatibility, code inspection readiness, Model Advisor compatibility report.
Other plugins' skills for the same job