Agent skill · Backend & API

roadrunner-build-scenario-from-osc

Build a RoadRunner Scenario programmatically from an OpenSCENARIO 1.x (.xosc) file using the `roadrunner-scenario-authoring` skill. Use when the user wants to recreate a scenario from a .xosc file, interpret an OpenSCENARIO file and build it programmatically, reconstruct a .xosc as a RoadRunner scenario, generate a MATLAB script from a .xosc file, or convert an OpenSCENARIO file to MATLAB code. Do NOT use when the user says "import" a .xosc file — that means they want RoadRunner's built-in importScenario API, not programmatic reconstruction. Handles position translation (LanePosition and RoadP

matlabgithub.com/matlabGitHub ↗
claude-codecodexcopilotNOASSERTION
Install
npx skills add matlab/matlab-agentic-toolkit --skill roadrunner-build-scenario-from-osc --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 4
SKILL.md size: 20 KB
Bundled scripts: none
Version: 1.0
Declared author: MathWorks
Path: skills-catalog/automotive/roadrunner-build-scenario-from-osc/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 868
Language: MATLAB

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Build RoadRunner Scenario from OpenSCENARIO Interpret an OpenSCENARIO 1.x (.xosc) file and recreate the scenario in RoadRunner using the `roadrunner-scenario-authoring` skill. Translates positions, maps constructs, preserves relative references, and builds correct phase logic. ## When to Use - User has a .xosc file and wants to recreate it in RoadRunner - User wants to programmatically build a scenario from OpenSCENARIO - User says "build this .xosc in RoadRunner" or "recreate this scenario" - User has an OpenSCENARIO file from a partner or standards body (e.g., Euro NCAP, ALKS) - User wants to generate a MATLAB script from a .xosc file - User says "convert this xosc to matlab" or "recreate with a matlab script" ## When NOT to Use - User says "import" a .xosc file — they want `importScenario(rrApp, xoscPath)`, not this skill. Simply call the API directly. - User wants to use RoadRunner's built-in `importScenario` (let them — it works for simple cases) - User wants to create a scenario from scratch **without** a .xosc file (use `roadrunner-scenario-authoring`) - User wants to export a scenario TO OpenSCENARIO (use `roadrunner-export-scenario`) ## Critical Rules 1. **Never fabricat

What's inside
Steps it walks through
  1. When to Use
  2. When NOT to Use
  3. Critical Rules
  4. Workflow
  5. Step 1: Analyze the .xosc and Produce a Scenario Description
  6. Step 2: Build the Scenario via Dependent Skills
  7. References
  8. Common Mistakes
  9. Conventions
Ships with 3 files
  • manifest.yaml
  • references/openscenario-mapping.md
  • scripts/xoscPositionToWorld.p
More from matlab-agentic-toolkit
All skills →
About this skill
What does the roadrunner-build-scenario-from-osc skill do?

Build a RoadRunner Scenario programmatically from an OpenSCENARIO 1.x (.xosc) file using the `roadrunner-scenario-authoring` skill. Use when the user wants to recreate a scenario from a .xosc file, interpret an OpenSCENARIO file and build it programmatically, reconstruct a .xosc as a RoadRunner scenario, generate a MATLAB script from a .xosc file, or convert an OpenSCENARIO file to MATLAB code. Do NOT use when the user says "import" a .xosc file — that means they want RoadRunner's built-in importScenario API, not programmatic reconstruction. Handles position translation (LanePosition and RoadP

How do I install it?

Run `npx skills add matlab/matlab-agentic-toolkit --skill roadrunner-build-scenario-from-osc --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going