Authoring AUTOSAR Classic software components with the Simulink Agentic Toolkit
Today I am happy to welcome guest blogger Noé Barthes to introduce a new skill recently added to the Simulink Agentic Toolkit.

Introduction
As an Advanced Support Engineer at MathWorks, I spend most of my time helping customers work through AUTOSAR modeling challenges. That experience led me to explore a simple question:
Could AI make AUTOSAR software component authoring feel more natural and intuitive?
The answer is: Yes!
To make that happen, I created a skill that has been added to the Simulink Agentic Toolkit in release v2026.09.d.
In this blog post I use this skill to demonstrate how it can start with an AUTOSAR ARXML description and functional requirements, and produce Simulink models that generate compliant AUTOSAR code.
Set up Simulink Agentic Toolkit
If your installation of the Simulink Agentic Toolkit is a bit outdated, make sure to update it, you can find instructions here. When running the installer, make sure that the "Code Generation" group is selected. Once this is done, verify in your coding agent that the skill simulink-author-classic-autosar-swc is enabled. Here is what this looks like for me in Codex:

Starting from ARXML
For this example, I start with an ARXML file that defines the component’s ports, interfaces, data types, runnables, and events. The AUTOSAR Blockset lets me use arxml.importer and its createComponentAsModel method to create a skeleton Simulink model.
However, in today's world, an AI agent with the right skills can make your life much easier. Instead of researching and invoking those APIs manually, I can simply ask my agent:
> Create a Simulink model from CentralDoorLocking_SWC.arxml
The Simulink Agentic Toolkit connects the agent to Simulink via the MATLAB MCP server, and the simulink-author-classic-autosar-swc skill guides the agent to use the appropriate APIs and best practices for authoring an AUTOSAR Classic software component.
After a simple prompt like the one above, the agent creates the following skeleton model:

Adding an algorithm
Now that we have a skeleton model, it's time to look into implementing the actual algorithm. As usual, we can start with a set of requirements:

I asked:
> Look at Door_Lock_System_Requirements.md and propose a plan to implement those requirements in CentralDoorLocking_SWC.slx
The coding agent leveraged the agentic toolkit Model-Based Design specification skill and got to work.

It quickly produced the requested plan that I could review and iterate on before starting the implementation.

After I approved the plan, the agent implemented the door-locking algorithm.

To validate that the algorithm meets the requirements, the agent generated a test harness and a MATLAB test class that tests 19 scenarios.

After running the tests, the agent even generated a validation report:

Model refinement
The agent has given me a good starting point, but a first draft is rarely the final implementation. Let's ask something new:
> Make the key-fob distance configurable. I want to be able to parameterize the distance for the key fob to get triggered. I want a shared parameter for that instead of a constant.
Thanks to the skill, the agent knows immediately what to do:

I can confirm that the distance threshold is now a Simulink.Parameter in the model workspace.

It is mapped to AUTOSAR SharedParameter in the Code Mappings editor.

The agent also added two new tests to our test suite to validate this new feature.

What's next?
I could keep asking more. For this example project, here are two requests I could make:
- Preserve the door-lock state when the ECU is turned off. Implement using a Non Volatile Memory using initialize and terminate function.
- Create software address methods for the two runnables: CODE_TRIGGERED for the triggered runnable and CODE_SLOW for the periodic runnable.
The skill guides the agent toward appropriate AUTOSAR APIs and blocks. I can then review the proposed changes and validate the resulting model.
The agent knows how AUTOSAR vocabulary corresponds to Simulink implementation and will help you pick up the right choice directly from your requirements.
Now it’s your turn
Try Simulink Agentic Toolkit with one of your own AUTOSAR projects and see what you can build.


Comments
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.