Vehicle Dynamics
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.
Install
npx skills add UCSB-NLP-Chang/Skill-Usage --skill vehicle-dynamicsgit clone --depth 1 https://github.com/UCSB-NLP-Chang/Skill-Usage.git /tmp/Skill-Usage
mkdir -p ~/.claude/skills
cp -r /tmp/Skill-Usage/tasks/adaptive-cruise-control/environment/skills/vehicle-dynamics ~/.claude/skills/vehicle-dynamicsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# 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:Details
- Skill name
vehicle-dynamics- Repository
- UCSB-NLP-Chang/Skill-Usage
- Path
tasks/adaptive-cruise-control/environment/skills/vehicle-dynamics/SKILL.md- Repo updated
- 8 April 2026
FAQ
What does the Vehicle Dynamics skill do?
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.
How do I install the Vehicle Dynamics skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill vehicle-dynamics. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Vehicle Dynamics popular?
It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.
Related skills
Pubchem Database
49UCSB-NLP-Chang/Skill-Usage
Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.
Pymatgen
49UCSB-NLP-Chang/Skill-Usage
Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.
Rdkit
49UCSB-NLP-Chang/Skill-Usage
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
Alerting Strategy
48sethdford/claude-skills
SLO-based alerting, threshold tuning, incident escalation, runbooks, and on-call management.
Usgs Data Download
49UCSB-NLP-Chang/Skill-Usage
Download water level data from USGS using the dataretrieval package. Use when accessing real-time or historical streamflow data, downloading gage height or discharge measurements, or working with USGS station IDs.
Algorithm Analysis
48sethdford/claude-skills
Big O notation, time/space complexity analysis, and choosing efficient algorithms.
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.