Logo: Simulink Author Classic Autosar Swc

Simulink Author Classic Autosar Swc

OrganisatiounBeléift
matlab
simulink-author-classic-autosar-swc

Use this skill when authoring, reworking, or validating a Classic AUTOSAR software component (SWC) in Simulink, including autosar.api mappings, runnables, timing events, sender-receiver ports, client-server operations, IRVs, BSW service callers, and component ARXML updates.

Iwwersiicht

Editeurmatlab
Repositorysimulink-agentic-toolkit
Skill-Nummsimulink-author-classic-autosar-swc
Stären
1.2K
Forks
112
Matgeliwwert Dateien
10
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 10 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    matlab huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Simulink Author Classic Autosar Swc an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/code-generation/simulink-author-classic-autosar-swc
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/matlab/simulink-agentic-toolkit.git /tmp/simulink-agentic-toolkit
mkdir -p .claude/skills
cp -r /tmp/simulink-agentic-toolkit/skills-catalog/code-generation/simulink-author-classic-autosar-swc .claude/skills/simulink-author-classic-autosar-swc
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Simulink Author Classic Autosar Swc an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Simulink Author Classic Autosar Swc automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Simulink Author Classic Autosar Swc net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Author Classic AUTOSAR SWCs in Simulink

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.

When to Use

Use this skill for a Classic AUTOSAR SWC when the work involves:

  • Creating or extending an AUTOSAR-mapped Simulink component model.
  • Configuring runnables, generated symbols, timing events, init behavior, or sender-receiver data access.
  • Mapping root ports, client-server operations, BSW service calls, or inter-runnable variables (IRVs).
  • Repairing an existing component mapping without losing its intended interfaces, events, or customizations.
  • Importing or updating a component model from changed ARXML.
  • Checking generated component ARXML or C code for requested interfaces, symbols, events, or memory placement.

When Not to Use

  • Do not use this skill for Adaptive AUTOSAR, ara::com, service discovery, SOME/IP, or Adaptive service interfaces.
  • Do not use this skill for non-AUTOSAR code-interface configuration, including coder.mapping.* storage classes and code mappings or Embedded Coder dictionary Data/Service Interface setup. Use simulink-configure-code-interfaces for those tasks.
  • Do not use this skill to author an AUTOSAR composition, a System Composer model, or an architecture-level interface topology.
  • Do not use this skill for generic Simulink editing that has no Classic AUTOSAR SWC mapping or code-generation concern.

Start With the Current Component

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:

  1. Check the model release. If it was saved by a newer Simulink release, report the compatibility constraint instead of diagnosing its AUTOSAR mapping.
  2. Check whether the model already has AUTOSAR properties, root-port mappings, runnables, and events.
  3. Make the narrowest change that satisfies the request, then inspect the changed mapping and validate the component when validation is relevant.

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.

Protect Existing Mappings

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.

Configure Runnables and Events

Choose the execution style before changing an event:

  • Use an atomic subsystem and timing events for periodic rate-based behavior.
  • Use function-call subsystems and an export-function execution domain for explicit runnable entry points.
  • Keep initialization behavior separate from periodic behavior. Do not rename or retime an initialization runnable unless the request explicitly changes startup behavior.

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.

Map Component Ports

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.

Map Operations, Services, and IRVs

Choose the communication category before adding blocks:

NeedUse
Data between componentsSender-receiver ports.
Operation on another SWCFunction Caller mapped to a client port and operation.
Custom OEM serviceFunction Caller with an underscore-style Port_Operation(...) prototype.
Standard Dem, FiM, or NvM serviceThe corresponding AUTOSAR Blockset library caller.
Data between runnables in one SWCAn 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.

Update Component ARXML and Check Artifacts

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.


Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Simulink Author Classic Autosar Swc?

Use this skill when authoring, reworking, or validating a Classic AUTOSAR software component (SWC) in Simulink, including autosar.api mappings, runnables, timing events, sender-receiver ports, client-server operations, IRVs, BSW service callers, and component ARXML updates.

Firwat Simulink Author Classic Autosar Swc op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Simulink Author Classic Autosar Swc besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Simulink Author Classic Autosar Swc an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/code-generation/simulink-author-classic-autosar-swc an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Simulink Author Classic Autosar Swc benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Simulink Author Classic Autosar Swc benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Simulink Author Classic Autosar Swc domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Simulink Author Classic Autosar Swc gratis?

matlab huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇