شعار Roadrunner Core

Roadrunner Core

مؤسسةشائع
matlab
roadrunner-core

Foundation skill for all RoadRunner workflows: MATLAB path setup, connection, project/scene/scenario lifecycle, world settings, handle management, status, and close. Use when connecting to RoadRunner, managing projects/scenes/scenarios, setting world origin, checking status, closing RoadRunner, or when any downstream RoadRunner skill needs initialization.

نظرة عامة

الناشرmatlab
المستودعmatlab-agentic-toolkit
اسم المهارةroadrunner-core
النجوم
1.2K
التفريعات
138
الملفات المرفقة
3
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 3

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها matlab على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Roadrunner Core في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/automotive/roadrunner-core
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/matlab/matlab-agentic-toolkit.git /tmp/matlab-agentic-toolkit
mkdir -p .claude/skills
cp -r /tmp/matlab-agentic-toolkit/skills-catalog/automotive/roadrunner-core .claude/skills/roadrunner-core
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Roadrunner Core في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Roadrunner Core تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Roadrunner Core بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

RoadRunner Core

Foundation skill for all RoadRunner agent workflows. Manages the RoadRunner connection, project/scene/scenario lifecycle, and handle management from MATLAB. Produces the rrApp handle used by all downstream RoadRunner skills.

Execution: all MATLAB code runs via evaluate_matlab_code MCP tool. Never matlab -batch.

When to Use

  • Connecting to or launching RoadRunner from MATLAB
  • Creating, opening, or saving projects, scenes, or scenarios
  • Setting world origin or scene extents
  • Checking RoadRunner status
  • Closing RoadRunner safely
  • Any downstream RoadRunner skill needs rrApp initialization

When NOT to Use

  • RoadRunner is not installed — this skill requires a working RoadRunner installation; it cannot install the product
  • MATLAB version below R2022a — the roadrunner class and related APIs are not available in earlier releases
  • rrApp already exists and is valid — re-running rrCoreInitialize is safe (it's idempotent) but unnecessary; prefer checking exist('rrApp','var') first to avoid the overhead
  • User has not provided installation or project paths when first-time setup is needed — ask the user first, do not guess paths
  • RoadRunner is intentionally closed — do not reconnect or relaunch without explicit user permission

1. How the Agent Uses This Skill

First-time setup (once per machine — two-tier resolution)

rrCoreInitialize handles setup automatically using a two-tier approach:

TierConditionWhat happens
1Settings valid + roadrunner class on pathSetup skipped — already configured
2Agent has installFolder and projectPath variablesProgrammatic setup: addpath, savepath, writes MATLAB settings. No GUI.

Just run rrCoreInitialize. The script automatically:

  1. Connects to a running instance (roadrunner.connect())
  2. If that fails, launches a new instance (roadrunner()) using saved settings
  3. If not configured, errors with PathsRequired — then ask the user for installFolder and projectPath, set them, and re-run

Once setup succeeds, it persists forever (across MATLAB sessions). Never needed again.

No GUI dialogs. This skill never calls roadrunnerSetup. All configuration is done programmatically.

First call in a session

  1. Add the skill scripts to the MATLAB path (required before rrCoreInitialize can be found):
    matlab
    addpath("<absolute-path-to-this-skill>/scripts");
    Replace <absolute-path-to-this-skill> with the actual filesystem path to this skill's directory (the folder containing this SKILL.md file).
  2. Run rrCoreInitialize → it handles everything: connects to a running instance, or launches one using saved settings, or errors with a clear message if not configured.
  3. If it errors with PathsRequired → ask the user for installFolder and projectPath, set them as variables, re-run rrCoreInitialize.
  4. Proceed with the user's request.

Subsequent calls

  1. Check exist('rrApp','var') — if missing, re-run rrCoreInitialize
  2. Look up the operation in the Decision Logic table (Section 3)
  3. Copy the exact pattern from scripts/rrCoreCommands.m under the matching %% heading
  4. Substitute placeholders with actual values
  5. Execute via evaluate_matlab_code

Key principle

Never improvise API calls. Before every RoadRunner operation, read the matching %% section from rrCoreCommands.m and reproduce it exactly. Do not guess function names, argument syntax, or parameter orders from memory. This prevents hallucinated function names, missing guard rails, and forgotten handle invalidation.

If you are unsure of the correct syntax for any operation, stop and read the pattern file before attempting the call.


2. Files

FileRole
scripts/rrCoreInitialize.mRuns directly. Bootstraps path + connection + validation.
scripts/rrCoreCommands.mPattern reference. Agent reads %% section, substitutes placeholders, executes.

Deployment

On first use, the agent ensures the RoadRunner API is on the MATLAB path (one-time savepath). The scripts in this skill are pattern references — the agent reads them and reproduces the patterns via evaluate_matlab_code.


3. Decision Logic

User IntentPattern (%% section)Placeholders to substitute
Connect / initializeINIT—
Connect without launchingCONNECT_ONLY— (errors if no instance running)
Create a new projectNEW_PROJECT or NEW_PROJECT_WITH_ASSETSprojectPath — ask user whether to include base assets (asset library). Always rrCoreInitialize first (RoadRunner must be running with any project before newProject can be called).
Open an existing projectOPEN_PROJECTprojectPath
Save the projectSAVE_PROJECT—
Create a new sceneNEW_SCENE—
Open a sceneOPEN_SCENEsceneName — if not found, use LIST_SCENES and present options
List available scenesLIST_SCENES—
Save the sceneSAVE_SCENE or SAVE_SCENE_ASAsk user: "Save in place, or save with a new name?" If new name → use SAVE_SCENE_AS with sceneName
Create a new scenarioNEW_SCENARIO—
Open a scenarioOPEN_SCENARIOscenarioName — if not found, use LIST_SCENARIOS and present options
List available scenariosLIST_SCENARIOS—
Save the scenarioSAVE_SCENARIO—
Set world originCHANGE_WORLD_ORIGINlat, lon
Set scene center and extentsCHANGE_SCENE_BOUNDSx, y, w, h
Set scene center onlyCHANGE_SCENE_CENTERx, y
Set scene extents onlyCHANGE_SCENE_EXTENTSw, h
Clear world projectionCLEAR_WORLD_PROJECTION—
Check statusSTATUS—
Close RoadRunnerCLOSE—

Available From: changeWorldSettings requires R2023b or later. All other operations are available from R2022a.

Launch (handled by rrCoreInitialize)

After first-time setup, rrCoreInitialize automatically launches RoadRunner using saved defaults if no instance is running. Manual launch is only needed for non-default modes:

matlab
rrApp = roadrunner(ProjectFolder=projectPath, InstallationFolder=installFolder);
ModeAdd this argument
Headless (no UI)NoDisplay=true
No desktop + graphicsNoDesktop=true
Custom portsPorts=[apiPort, cosimPort]

Manual launch still requires explicit user permission.


4. Placeholders

These are the variable names used in rrCoreCommands.m. The agent substitutes them with actual values before executing.

PlaceholderTypeExample
SKILL_SCRIPTS_DIRstring(absolute path to this skill's scripts/ folder)
rrApproadrunner(from rrCoreInitialize, never reassigned)
projectPathstring"D:/Projects/HighwayProject"
sceneNamestring"FourWaySignal.rrscene"
scenarioNamestring"CutInScenario"
latdouble42.3021
londouble-71.3747
x, ydouble1445, 1237
w, hdouble160, 465
installFolderstring"C:/Program Files/RoadRunner R2026a"

5. Handle Management

This skill produces rrApp via rrCoreInitialize. Operations that change state (NEW_SCENE, OPEN_SCENE, NEW_SCENARIO, OPEN_SCENARIO, OPEN_PROJECT, CLOSE) include clear statements to remove stale handles.


6. Path Setup

RoadRunner API path is added to MATLAB's saved path on first use. No config files or environment variables needed.

The agent runs savepath after adding the API path — this persists across MATLAB sessions. If the user upgrades RoadRunner, the agent detects the failure (roadrunner class missing or version mismatch) and asks for the new installation folder.


7. Critical Rules

  1. Always rrCoreInitialize first — never call RoadRunner APIs without a validated rrApp
  2. Never launch without permission — ask the user before roadrunner(ProjectFolder=...)
  3. One rrApp per session — never create a second connection
  4. Read the pattern before every call — open rrCoreCommands.m, find the %% section, reproduce it exactly. Do not guess syntax from memory.
  5. Never auto-save — NEW_SCENE, NEW_SCENARIO, and CLOSE patterns detect unsaved changes but do NOT save automatically. Always ask the user whether to save, save-as, or discard. Saving with the same name overwrites the original and can break backwards compatibility if the file was created with an older version.
  6. Verify version after connect — check rrApp.Version and report it. If the user requested a specific version, warn if it doesn't match.
  7. Ask before save — when saving is needed (new scene/scenario, close, or explicit save request), ask the user whether to save in place, save with a new name, or discard changes
  8. List on not-found — if openScene or openScenario fails because the name doesn't exist, list available scenes/scenarios using dir and present options to the user
  9. Relative scene paths resolve to <project>/Scenes/
  10. Unicode not supported in paths
  11. Handle invalidation is automatic — patterns include clear statements
  12. All execution via MCP — never matlab -batch
  13. close(rrApp) terminates RoadRunner entirely — the process exits. After close, roadrunner.connect() will fail. A fresh roadrunner() launch is required to reconnect.
  14. Scene is NOT restored on relaunch — after close + relaunch, RoadRunner opens the project but shows a blank scene. The agent must explicitly reopen the desired scene.

8. Anti-Patterns

  • Do not launch RoadRunner without user permission
  • Do not call roadrunner(ProjectFolder=...) when already connected — this launches a duplicate instance
  • Do not pass two arguments to roadrunner.connect(port, port) — use single port
  • Do not call any function on a closed/invalid rrApp
  • Do not skip clear statements from the patterns
  • Do not invent function calls not present in rrCoreCommands.m (e.g., no save(rrApp), no saveSceneAs, no switchScenario, no Latitude=lat)
  • Do not hardcode installation paths — use the resolution chain in rrCoreInitialize
  • Do not save a scene without asking the user — saveScene(rrApp, name) silently overwrites existing files
  • Do not confuse "close MATLAB" with "close RoadRunner" — they are independent processes
  • Do not assume scene is restored after relaunch — it is not; always reopen explicitly

9. Project Structure

<RoadRunner Project>/
├── Assets/              3D models, materials, textures
├── Scenes/              .rrscene files
├── Scenarios/           .rrscenario files
├── Exports/             Exported output
├── Project/             Project metadata
└── Scripts/             User scripts (optional)

10. API Behavior Notes

Project

  • newProject creates any missing parent folders
  • The folder name becomes the project name
  • If openProject targets an already-open project, a new blank scene is still created

Scene

  • Relative paths resolve to <project>/Scenes/
  • .rrscene extension is optional — RoadRunner appends it if missing
  • If the scene belongs to a different project, RoadRunner switches to that project
  • If modified assets exist during save, the project is also saved
  • saveScene(rrApp, name) silently overwrites if the name already exists — no confirmation
  • saveScene(rrApp) on an unnamed (new) scene errors — must provide a name
  • Subfolder paths work (e.g., "Scenarios/subfolder/Name")

Scenario

  • newScenario, openScenario, saveScenario available since R2022a
  • Opening a new scene automatically closes the active scenario
  • Scenarios can be opened even on a blank (unsaved) scene

World Settings

ParameterTypeDescription
WorldOrigin[lat lon]Geospatial world origin
SceneCenter[x y]Center of scene workspace
SceneExtents[w h]Scene workspace dimensions
ClearWorldProjectionlogicalClear current projection

Available since R2023b.

Status Properties

matlab
rrStatus = status(rrApp);
rrStatus.Project.Filename         % Current project path
rrStatus.Project.UnsavedChanges   % true/false
rrStatus.Scene.Filename           % Current scene path
rrStatus.Scene.UnsavedChanges     % true/false
rrStatus.Scenario.Filename        % Current scenario path
rrStatus.Scenario.UnsavedChanges  % true/false
PropertyDescription
rrApp.InstallationFolderRoadRunner install path
rrApp.VersionVersion string
rrApp.NoDisplayConsole mode flag
rrApp.NoDesktopNo-desktop mode flag

Close

  • close(rrApp) does NOT prompt to save — always save before closing
  • Deletes the associated roadrunner object — do not reuse the variable after closing
  • Terminates the RoadRunner process entirely — it is not just a disconnect
  • After close, roadrunner.connect() will fail (nothing to connect to)
  • On relaunch via roadrunner(), the project is restored but the scene is NOT — a blank scene appears
  • Port validation enforces range 1024–65535

Connection

matlab
rrApp = roadrunner.connect();           % Default port 35707
rrApp = roadrunner.connect(portNumber); % Explicit port
ModeSyntaxUse case
GUI (default)roadrunner(ProjectFolder=...)Interactive use
Headlessroadrunner(ProjectFolder=..., NoDisplay=true)Batch/CI, no UI
No desktop + graphicsroadrunner(ProjectFolder=..., NoDesktop=true)Export needing render
Custom portsroadrunner(ProjectFolder=..., Ports=[apiPort, cosimPort])Multi-instance

Copyright 2026 The MathWorks, Inc.


الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Roadrunner Core؟

Foundation skill for all RoadRunner workflows: MATLAB path setup, connection, project/scene/scenario lifecycle, world settings, handle management, status, and close. Use when connecting to RoadRunner, managing projects/scenes/scenarios, setting world origin, checking status, closing RoadRunner, or when any downstream RoadRunner skill needs initialization.

لماذا تستخدم Roadrunner Core على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Roadrunner Core عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Roadrunner Core في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/automotive/roadrunner-core. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Roadrunner Core؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Roadrunner Core؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Roadrunner Core معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Roadrunner Core مجانية؟

نشرها matlab على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇