Agent skill

Vehicle Dynamics

by benchflow-ai in benchflow-ai/skillsbench

A skill your agent uses when simulating vehicle motion, calculating safe following distances, time-to-collision, speed/position updates, or implementing vehicle state machines for cruise control…

Apache-2.0Auto-check passed

Install Vehicle Dynamics

skills CLI
$ npx skills add benchflow-ai/skillsbench --skill vehicle-dynamics -a claude-code

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

GitHub CLI
$ gh skill install benchflow-ai/skillsbench vehicle-dynamics --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/benchflow-ai/skillsbench.git skills-src && mkdir -p .claude/skills && cp -r skills-src/tasks/adaptive-cruise-control/environment/skills/vehicle-dynamics .claude/skills/vehicle-dynamics && 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
vehicle-dynamics
GitHub stars
1.8k
Token cost
~566 tokens
SKILL.md length
57 words
Files
1
Skills in repo
189
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when simulating vehicle motion, calculating safe following distances, time-to-collision, speed/position updates, or implementing vehicle state machines for cruise control…

  • Simulating vehicle motion
  • SKILL.md covers Basic Kinematic Model, Safe Following Distance, Time-to-Collision (TTC) and Acceleration Limits, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Calculating safe following distances

What it does

Vehicle Dynamics is an agent skill from benchflow-ai/skillsbench. Use this skill when simulating vehicle motion, calculating safe following distances, time-to-collision, speed/position updates, or implementing vehicle state machines for cruise control modes.

Its SKILL.md is about 570 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: SkillsBench evaluates how well skills work and how effective agents are at using them. The licence is Apache-2.0.

When your agent uses it

  • Simulating vehicle motion
  • Calculating safe following distances
  • Time-to-collision
  • Speed/position updates

Example prompts

  • “/vehicle-dynamics”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 9a1f4dd. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are 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

Vehicle Dynamics loads about 566 tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 57 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~52
When it runs · the whole SKILL.md, loaded when a task matches
~566

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from benchflow-ai/skillsbench at commit 9a1f4dd, republished under its Apache-2.0 licence (© benchflow-ai). 57 words, ~566 tokens.

Download SKILL.mdSave it as .claude/skills/vehicle-dynamics/SKILL.md (or your agent's skills folder).
name
vehicle-dynamics
description
Use this skill when simulating vehicle motion, calculating safe following distances, time-to-collision, speed/position updates, or implementing vehicle state machines for cruise control modes.

Vehicle Dynamics Simulation

Basic Kinematic Model

For vehicle simulations, use discrete-time kinematic equations.

Speed Update:

python
new_speed = current_speed + acceleration * dt
new_speed = max(0, new_speed)  # Speed cannot be negative

Position Update:

python
new_position = current_position + speed * dt

Distance Between Vehicles:

python
# When following another vehicle
relative_speed = ego_speed - lead_speed
new_distance = current_distance - relative_speed * dt

Safe Following Distance

The time headway model calculates safe following distance:

python
def safe_following_distance(speed, time_headway, min_distance):
    """
    Calculate safe distance based on current speed.

    Args:
        speed: Current vehicle speed (m/s)
        time_headway: Time gap to maintain (seconds)
        min_distance: Minimum distance at standstill (meters)
    """
    return speed * time_headway + min_distance

Time-to-Collision (TTC)

TTC estimates time until collision at current velocities:

python
def time_to_collision(distance, ego_speed, lead_speed):
    """
    Calculate time to collision.

    Returns None if not approaching (ego slower than lead).
    """
    relative_speed = ego_speed - lead_speed

    if relative_speed <= 0:
        return None  # Not approaching

    return distance / relative_speed

Acceleration Limits

Real vehicles have physical constraints:

python
def clamp_acceleration(accel, max_accel, max_decel):
    """Constrain acceleration to physical limits."""
    return max(max_decel, min(accel, max_accel))

State Machine Pattern

Vehicle control often uses mode-based logic:

python
def determine_mode(lead_present, ttc, ttc_threshold):
    """
    Determine operating mode based on conditions.

    Returns one of: 'cruise', 'follow', 'emergency'
    """
    if not lead_present:
        return 'cruise'

    if ttc is not None and ttc < ttc_threshold:
        return 'emergency'

    return 'follow'

© benchflow-ai, 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

Just SKILL.md in tasks/adaptive-cruise-control/environment/skills/vehicle-dynamics of benchflow-ai/skillsbench.

Open the folder on GitHubat commit 9a1f4dd

Compare with similar skills

Vehicle Dynamics 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.

Vehicle Dynamics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Vehicle Dynamics this skillbenchflow-ai/skillsbench1.8k—~566Automated safety check: PassApache-2.0
Emilkowalski Motionnexu-io/open-design100k—~644Automated safety check: PassApache-2.0
HyperFrames Motion Doctrineheygen-com/hyperframes59k1 repos~3kAutomated safety check: PassApache-2.0
Motion Foundationsaffaan-m/ECC276k1 repos~2.4kAutomated safety check: PassMIT
Motion Patternsaffaan-m/ECC276k1 repos~3.3kAutomated safety check: PassMIT
HyperFrames Motion Graphicsheygen-com/hyperframes59k3 repos~4kAutomated safety check: PassApache-2.0

Similar skills

  • Emilkowalski Motion

    nexu-io/open-design

    Motion-design follow-up skill inspired by Emil Kowalski's animation guidance.

    100k GitHub stars~644 tokensUpdated today
    Frontend & DesignAuto-check passed
  • HyperFrames Motion Doctrine

    heygen-com/hyperframes

    Sets the motion rules for HyperFrames videos so scenes read as one continuous camera move, covering exit-to-entry vectors, seams, idle motion and sustained motion.

    59k GitHub starsUsed in 1 repo~3k tokens
    Media & CreativeAuto-check passed
  • Motion Foundations

    affaan-m/ECC

    Motion tokens, spring presets, performance rules, device adaptation, accessibility enforcement, and SSR safety for React / Next.js using motion/react.

    276k GitHub starsUsed in 1 repo~2.4k tokens
    Frontend & DesignAuto-check passed
  • Motion Patterns

    affaan-m/ECC

    Production-ready animation patterns for React / Next.js — button, modal, toast, stagger, page transitions, exit animations, scroll, and layout — built on motion-foundations tokens and springs.

    276k GitHub starsUsed in 1 repo~3.3k tokens
    Auto-check passed
  • HyperFrames Motion Graphics

    heygen-com/hyperframes

    Builds short, unnarrated motion graphics such as kinetic type, stat count-ups, logo stings, lower thirds, animated maps and tweets, rendered to MP4 or a transparent overlay.

    59k GitHub starsUsed in 3 repos~4k tokens
    Media & CreativeAuto-check passed
  • Motion Advanced

    affaan-m/ECC

    Advanced motion patterns for React / Next.js — drag & drop, gestures, text animations, SVG path drawing, custom hooks, imperative sequences (useAnimate), loaders, and the full API decision tree.

    276k GitHub starsUsed in 1 repo~4.7k tokens
    Auto-check passed

More from benchflow-ai/skillsbench

All 189 skills in this repo
  • Lean4 Memories

    benchflow-ai/skillsbench

    This skill should be used when working on Lean 4 formalization projects to maintain persistent memory of successful proof patterns, failed approaches, project conventions, and user preferences…

    1.8k GitHub stars~3.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Senior Data Engineer

    benchflow-ai/skillsbench

    World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, real-time streaming, and data infrastructure.

    1.8k GitHub stars~5.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Ac Branch Pi Model

    benchflow-ai/skillsbench

    AC branch pi-model power flow equations (P/Q and |S|) with transformer tap ratio and phase shift, matching acopf-math-model.md and MATPOWER branch fields.

    1.8k GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Civ6lib

    benchflow-ai/skillsbench

    Civilization 6 district mechanics library. An agent skill from benchflow-ai/skillsbench.

    1.8k GitHub stars~1.7k tokensUpdated 2 mo ago
    Auto-check passed
  • D3 Visualization

    benchflow-ai/skillsbench

    Build deterministic, verifiable data visualizations with D3.js (v6).

    1.8k GitHub stars~1.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Dc Power Flow

    benchflow-ai/skillsbench

    DC power flow analysis for power systems. An agent skill from benchflow-ai/skillsbench.

    1.8k GitHub stars~717 tokensUpdated 2 mo ago
    Auto-check passed

Questions about Vehicle Dynamics

What does Vehicle Dynamics do?

A skill your agent uses when simulating vehicle motion, calculating safe following distances, time-to-collision, speed/position updates, or implementing vehicle state machines for cruise control…. Vehicle Dynamics is an agent skill from benchflow-ai/skillsbench. Use this skill when simulating vehicle motion, calculating safe following distances, time-to-collision, speed/position updates, or implementing vehicle state machines for cruise control modes.

When should I use Vehicle Dynamics?

Vehicle Dynamics fits situations like: simulating vehicle motion; calculating safe following distances; time-to-collision; speed/position updates.

How do I install Vehicle Dynamics in Claude Code?

Run `npx skills add benchflow-ai/skillsbench --skill vehicle-dynamics -a claude-code`. Or copy the skill folder (tasks/adaptive-cruise-control/environment/skills/vehicle-dynamics in benchflow-ai/skillsbench) into .claude/skills/vehicle-dynamics in your project. Claude Code loads it when a task matches its description.

How do I install Vehicle Dynamics in Codex?

Run `npx skills add benchflow-ai/skillsbench --skill vehicle-dynamics -a codex`. Or copy the skill folder (tasks/adaptive-cruise-control/environment/skills/vehicle-dynamics in benchflow-ai/skillsbench) into .agents/skills/vehicle-dynamics in your project. Codex loads it when a task matches its description.

Can I use Vehicle Dynamics 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 benchflow-ai/skillsbench --skill vehicle-dynamics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vehicle-dynamics, .gemini/skills/vehicle-dynamics, .github/skills/vehicle-dynamics and .opencode/skills/vehicle-dynamics in your project.

What does Vehicle Dynamics need to run?

SKILL.md names no scripts, command-line tools or credentials: Vehicle Dynamics is instructions for the agent only. Our summary lists: Python 3.

Does Vehicle Dynamics 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 Vehicle Dynamics 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. Review the folder before installing.

What licence does Vehicle Dynamics use?

Vehicle Dynamics is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Vehicle Dynamics use?

About 566 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Vehicle Dynamics?

Skills that share tags, products or a category with Vehicle Dynamics: Emilkowalski Motion (nexu-io/open-design, 100k stars), HyperFrames Motion Doctrine (heygen-com/hyperframes, 59k stars), Motion Foundations (affaan-m/ECC, 276k stars) and Motion Patterns (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Vehicle Dynamics?

benchflow-ai (a GitHub organization) maintains it in benchflow-ai/skillsbench, which has 1,834 GitHub stars. The repository holds 189 skills in this directory. The repository was last updated on July 23, 2026.

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