Agent skill

Control Physics Traffic

by VectorSpaceLab in VectorSpaceLab/AREX-Skill

A skill your agent uses when an AlpaSim task concerns vehicle state, controller or MPC selection, ground-mesh physics, CATK traffic sessions, handover behavior, or backend/data requirements for…

Apache-2.0Auto-check passedBackend & APIs

Install Control Physics Traffic

skills CLI
$ npx skills add VectorSpaceLab/AREX-Skill --skill control-physics-traffic -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install VectorSpaceLab/AREX-Skill control-physics-traffic --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/VectorSpaceLab/AREX-Skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/repositories/repo-skills/alpasim/sub-skills/control-physics-traffic .claude/skills/control-physics-traffic && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
control-physics-traffic
GitHub stars
328
Token cost
~2.2k tokens
SKILL.md length
1,017 words
Files
6 (incl. scripts, references)
Skills in repo
157
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when an AlpaSim task concerns vehicle state, controller or MPC selection, ground-mesh physics, CATK traffic sessions, handover behavior, or backend/data requirements for…

  • Works in 5 steps: Identify the service being changed or… → Run the bundled, read-only probe before… → For a controller-only CPU smoke test,… → …
  • An AlpaSim task concerns vehicle state
  • SKILL.md covers Start with a capability and…, Choose and use the controller, Apply ground constraints and Run a CATK traffic session, plus 1 more section
  • Runs Python scripts from its folder; calls python

What it does

Control Physics Traffic is an agent skill from VectorSpaceLab/AREX-Skill. Use when an AlpaSim task concerns vehicle state, controller or MPC selection, ground-mesh physics, CATK traffic sessions, handover behavior, or backend/data requirements for these services.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/backend-compatibility.md`, `references/controller-api.md` and `references/physics-and-traffic.md`).

It sits in Backend & APIs. It works with gRPC. The repository describes itself as: A Skill Library for Automated Machine Learning. The licence is Apache-2.0.

When your agent uses it

  • An AlpaSim task concerns vehicle state
  • Ground-mesh physics
  • CATK traffic sessions
  • Handover behavior

Example prompts

  • “/control-physics-traffic”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Identify the service being changed or queried. Record the simulation time
  2. Run the bundled, read-only probe before debugging imports or optional
  3. For a controller-only CPU smoke test, use the package's focused tests or
  4. For physics, use a small valid PLY ground mesh and positive AABB dimensions.
  5. For CATK, verify the scene directory contains .usdz files and that the

What it can do on your machine

Read from SKILL.md and the folder at commit ac3fe1a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Control Physics Traffic loads about 2.2k tokens when it runs, and up to ~8.1k if it reads all its reference files. Until then it costs about 53 tokens; SKILL.md has 1,017 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from VectorSpaceLab/AREX-Skill at commit ac3fe1a, republished under its Apache-2.0 licence (© VectorSpaceLab). 1,017 words, ~2,153 tokens.

Download SKILL.mdSave it as .claude/skills/control-physics-traffic/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
control-physics-traffic
description
Use when an AlpaSim task concerns vehicle state, controller or MPC selection, ground-mesh physics, CATK traffic sessions, handover behavior, or backend/data requirements for these services.
disable-model-invocation
true
metadata.disco-role
operating
license
Apache 2.0

Control, physics, and traffic

Use this sub-skill for the three simulation components that close the motion loop:

  • Controller: planar dynamic-bicycle vehicle state, linear/nonlinear MPC, trajectory tracking, and the controller gRPC session.
  • Physics: Warp ground-mesh intersection that corrects vehicle/object poses; it is not a collision engine or a replacement for vehicle dynamics.
  • Traffic: the CATK-backed traffic gRPC service, including session history, logged replay, handover, prediction batching, and failure statuses.

Do not use this sub-skill to compose a wizard deployment, choose a driver policy, or edit protobufs. Route those to simulation-wizard, drivers-and-plugins, or grpc-and-developer-tools, respectively. Use runtime-services for the runtime's event loop and service orchestration, and evaluation-and-logs for post-run logs and metrics.

Start with a capability and backend check

  1. Identify the service being changed or queried. Record the simulation time unit, coordinate frame, scene identifier, and whether the request is replay or closed-loop inference.

  2. Run the bundled, read-only probe before debugging imports or optional backends:

    Read backend compatibility, then run the bundled backend checker before debugging imports or optional backends:

    bash
    python scripts/check_backend.py
    python scripts/check_backend.py --usdz-folder /data/scenes \
        --model-config /models/catk/config.yaml \
        --checkpoint /models/catk/latest.ckpt \
        --token-dir /models/tokens

    The second form only inspects supplied paths; it never downloads or changes them. Treat warnings about CUDA, PyG extensions, USDZ, or model assets as capability limits, not as proof of a working CATK service.

  3. For a controller-only CPU smoke test, use the package's focused tests or instantiate LinearMPC with an 8-element state and a time-stamped Trajectory. For a nonlinear smoke test, ensure do_mpc and CasADi are importable before the first compute_control call.

  4. For physics, use a small valid PLY ground mesh and positive AABB dimensions. PhysicsBackend constructs Warp mesh data and launches CUDA kernels during update_pose; a successful Python import is not a physics execution test.

  5. For CATK, verify the scene directory contains .usdz files and that the model config, checkpoint, token directory, CUDA device, and matching PyG compiled extensions are all available. Never substitute a static traffic trajectory for a failed post-handover prediction.

See backend compatibility before installing optional packages and troubleshooting when a check fails.

Choose and use the controller

  1. Represent the current vehicle state in the documented order [x, y, yaw, vx_cg, vy_cg, yaw_rate, steering, accel]. The position and yaw are for the rig origin in the temporary inertial frame; vx_cg and vy_cg are body-frame CG velocities. Do not silently treat rig-frame lateral speed as CG lateral speed.
  2. Use linear MPC (mpc_implementation: linear) as the normal fast choice. It linearizes the bicycle model about the current state and solves an OSQP QP. Use nonlinear MPC for aggressive maneuvers or tight turns when the slower do_mpc/CasADi/IPOPT solve is acceptable. This is a modeling trade-off, not a claim that nonlinear is always more stable.
  3. Keep n_horizon and dt_mpc consistent with the trajectory sampling. The defaults are 20 steps and 0.1 seconds. Tracking cost begins at gains.idx_start_penalty (default 10), while actuator regularization applies to command changes.
  4. In a service session, call start_session before the first run, provide a non-empty planned trajectory, advance to a strictly later future_time_us, and close the session exactly once. The first run lazily constructs the system and creates a CSV controller log.
  5. Set coerce_dynamic_state when current ground-truth dynamic state should replace the model's velocity, yaw rate, and acceleration before solving. The system converts rig-frame velocity to CG-frame velocity and preserves the integrated pose origin.

The exact dataclasses, solver bounds, frame conversion, service invariants, and standalone server flags are in controller API.

Show full SKILL.md (470 more words)Show less

Apply ground constraints

  1. Give the physics service a scene artifact glob ending in .usdz and select a scene whose ground mesh is available. The command shape is:

    bash
    physics_server --artifact-glob '/data/artifacts/*.usdz' \
        --host 0.0.0.0 --port 8080 --cache-size 16

    --use-ground-mesh, --visualize, and the cache size affect artifact/backend loading; visualization is optional and may require extra packages.

  2. For every pose, physics samples the bottom of the AABB, casts ±Z rays into the Warp mesh, fits a plane, and applies bounded translation/rotation corrections. It deliberately preserves predicted X/Y after correction and returns a status for each pose.

  3. Handle SUCCESSFUL_UPDATE, INSUFFICIENT_POINTS_FITPLANE, HIGH_TRANSLATION, and HIGH_ROTATION as distinct observations. Repeated high corrections are usually a scene, AABB, timestamp, or upstream pose problem; do not hide them by retrying indefinitely.

Physics does not model collisions, full vehicle dynamics, or arbitrary lateral motion. See physics and traffic.

Run a CATK traffic session

  1. Start the service only after its Hydra config resolves. A documented local shape is:

    bash
    catk_trafficsim_server \
        --config-path=/path/to/config-dir \
        --config-name=server.yaml \
        server.port=6200 \
        catk.loader.usdz_folder=/data/scenes

    The model paths and timing settings belong in the resolved config. The wizard normally writes this config for a container deployment; do not make a second deployment recipe here.

  2. start_session requires a session UUID, scene ID, at least one logged object trajectory including EGO, and a positive handover_time_us. The service builds a fixed history window (num_history_steps, default 16) sampled at time_step (default 0.1 s).

  3. At or before handover, simulate resamples logged trajectories and returns replay. After handover, it resamples the latest history, fills the ego future from the request/update, runs CATK, and merges predicted agent trajectories. Requests are serialized per session but different sessions may reach the inference batcher concurrently.

  4. Respect the configured prediction_steps (default 5). A request beyond the fixed prediction horizon is INVALID_ARGUMENT; missing usable map/model predictions after handover are FAILED_PRECONDITION. An unexpected model exception is INTERNAL. These statuses are actionable distinctions.

  5. Close sessions and retry only after fixing the reported scene, trajectory, horizon, map, model, or backend issue. There is no valid CPU/static fallback for CATK's required post-handover prediction path.

Use physics and traffic for the request sequence, config fields, batching semantics, and status mapping.

Verification and handoff

  • Run parser/help checks for the bundled script and server commands without starting a daemon or downloading assets.
  • Run controller system, linear-MPC, nonlinear-MPC, physics-utils, and traffic service/batching tests according to their backend markers. Keep CATK integration tests skipped unless CUDA, matching PyG extensions, USDZ scenes, and model weights are all present.
  • Test the difficult cases in the review artifact: aggressive-turn controller selection and a CATK FAILED_PRECONDITION after handover. The expected answer must name the validation signal and must not invent a fallback.
  • If a service contract or protobuf message is the issue, hand off rather than duplicating generic message definitions. Record unresolved backend/data gaps explicitly in the verification report.

© VectorSpaceLab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in skills/repositories/repo-skills/alpasim/sub-skills/control-physics-traffic of VectorSpaceLab/AREX-Skill.

  • SKILL.md
  • references/backend-compatibility.md
  • references/controller-api.md
  • references/physics-and-traffic.md
  • references/troubleshooting.md
  • scripts/check_backend.py

Open the folder on GitHubat commit ac3fe1a

Compare with similar skills

Control Physics Traffic next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Control Physics Traffic compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Control Physics Traffic this skillVectorSpaceLab/AREX-Skill328—~2.2kAutomated safety check: PassApache-2.0
Use Yaakmountain-loop/yaak19k—~1.9kAutomated safety check: PassMIT
Golang Proantoniopaya22/go-rest-template1723 repos~1.2kAutomated safety check: PassMIT
Debug Grpc ConnectionGetBindu/Bindu10k—~1.2kAutomated safety check: PassCustom licence
Aspnet Corefanslead/ReverseProxy.Store1632 repos~1.4kAutomated safety check: PassApache-2.0
Regenerate Grpc StubsGetBindu/Bindu10k—~810Automated safety check: PassCustom licence

Similar skills

  • Use Yaak

    mountain-loop/yaak

    A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…

    19k GitHub stars~1.9k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Golang Pro

    antoniopaya22/go-rest-template

    Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with…

    172 GitHub starsUsed in 3 repos~1.2k tokens
    Backend & APIsAuto-check passed
  • Debug Grpc Connection

    GetBindu/Bindu

    Diagnose gRPC connection issues between the Bindu core and a language SDK.

    10k GitHub stars~1.2k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Aspnet Core

    fanslead/ReverseProxy.Store

    Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development.

    163 GitHub starsUsed in 2 repos~1.4k tokens
    Backend & APIsAuto-check passed
  • Regenerate Grpc Stubs

    GetBindu/Bindu

    Regenerate Python + TypeScript gRPC stubs after editing proto files.

    10k GitHub stars~810 tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Spider King

    aoyunyang/spider-king-skill

    Pure-web protocol reverse skill: turn hostile browser clients into browser-free Python collectors.

    507 GitHub stars~7.3k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed

More from VectorSpaceLab/AREX-Skill

All 157 skills in this repo
  • Agent Lightning

    VectorSpaceLab/AREX-Skill

    Use this repo skill for Agent Lightning package tasks: authoring trainable agents, tracing rewards and spans, running LightningStore/Trainer loops, using agl CLI services, choosing examples, and…

    328 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Agent Tools

    VectorSpaceLab/AREX-Skill

    A skill your agent uses when configuring LiteLLM for MCP tools, A2A agents, Claude Code/Cursor agent gateway traffic, MCP auth/OAuth, tool permissions, semantic filtering, or agent-specific proxy…

    328 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents And Awel

    VectorSpaceLab/AREX-Skill

    Build and debug DB-GPT agents, tools, skills, teams, and AWEL workflows, including deterministic local DAG runs and HTTP-trigger topology without assuming an LLM, credential, or external service.

    328 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents And Middleware

    VectorSpaceLab/AREX-Skill

    Work on the actively maintained LangChain v1 agent package: initchatmodel, createagent, structured output, tools, middleware, embeddings initialization, provider routing, and agent runtime…

    328 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents Workflows

    VectorSpaceLab/AREX-Skill

    A skill your agent uses for giskard.agents async chat workflows, tools, prompt templates, structured outputs, retries, rate limiting, embeddings, and optional LiteLLM backend.

    328 GitHub stars~500 tokensUpdated 1 mo ago
    Auto-check passed
  • Alphafold3

    VectorSpaceLab/AREX-Skill

    A skill your agent uses for AlphaFold 3 input preparation, prediction command planning, output interpretation, and Python API inspection.

    328 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Control Physics Traffic

What does Control Physics Traffic do?

A skill your agent uses when an AlpaSim task concerns vehicle state, controller or MPC selection, ground-mesh physics, CATK traffic sessions, handover behavior, or backend/data requirements for…. Control Physics Traffic is an agent skill from VectorSpaceLab/AREX-Skill. Use when an AlpaSim task concerns vehicle state, controller or MPC selection, ground-mesh physics, CATK traffic sessions, handover behavior, or backend/data requirements for these services.

When should I use Control Physics Traffic?

Control Physics Traffic fits situations like: an AlpaSim task concerns vehicle state; ground-mesh physics; CATK traffic sessions; handover behavior.

How do I install Control Physics Traffic in Claude Code?

Run `npx skills add VectorSpaceLab/AREX-Skill --skill control-physics-traffic -a claude-code`. Or copy the skill folder (skills/repositories/repo-skills/alpasim/sub-skills/control-physics-traffic in VectorSpaceLab/AREX-Skill) into .claude/skills/control-physics-traffic in your project. Claude Code loads it when a task matches its description.

How do I install Control Physics Traffic in Codex?

Run `npx skills add VectorSpaceLab/AREX-Skill --skill control-physics-traffic -a codex`. Or copy the skill folder (skills/repositories/repo-skills/alpasim/sub-skills/control-physics-traffic in VectorSpaceLab/AREX-Skill) into .agents/skills/control-physics-traffic in your project. Codex loads it when a task matches its description.

Can I use Control Physics Traffic in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add VectorSpaceLab/AREX-Skill --skill control-physics-traffic -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/control-physics-traffic, .gemini/skills/control-physics-traffic, .github/skills/control-physics-traffic and .opencode/skills/control-physics-traffic in your project.

What does Control Physics Traffic need to run?

Going by SKILL.md and its folder, Control Physics Traffic needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Control Physics Traffic access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Control Physics Traffic safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Control Physics Traffic use?

Control Physics Traffic is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Control Physics Traffic use?

About 2.2k tokens (SKILL.md is roughly 8.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.9k tokens, read only when the agent opens those files.

What are the alternatives to Control Physics Traffic?

Skills that share tags, products or a category with Control Physics Traffic: Use Yaak (mountain-loop/yaak, 19k stars), Golang Pro (antoniopaya22/go-rest-template, 172 stars), Debug Grpc Connection (GetBindu/Bindu, 10k stars) and Aspnet Core (fanslead/ReverseProxy.Store, 163 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Control Physics Traffic?

VectorSpaceLab (a GitHub organization) maintains it in VectorSpaceLab/AREX-Skill, which has 328 GitHub stars. The repository holds 157 skills in this directory. The repository was last updated on September 3, 2026.

Source: VectorSpaceLab/AREX-Skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.