Skip to content

zyfgi/carsim-guide-skill

carsim-guide

Verified

Operate and automate CarSim simulations from an agent, including safe output and parameter discovery, named Run Control execution contexts, structured overrides, isolated batch sweeps, dataset dependency inspection, control-mode selection, result validation, diagnostics, and version-aware CLI/Simulink/VS API routing. Use for executing, configuring, exploring, or debugging CarSim. Do not use for vehicle-dynamics theory alone, generic dataframe work, or unrelated simulators.

FileKindSize
SKILL.mdskill md6.3 KB
examples/batches/friction_sweep.yamlconfig159 B
examples/batches/mass_friction_grid.yamlconfig198 B
examples/discovery/dataset_tree.pyscript693 B
examples/discovery/find_output.pyscript715 B
examples/discovery/find_parameter.pyscript761 B
examples/scenarios/basic_cruise.yamlconfig380 B
examples/scenarios/friction_change.yamlconfig379 B
examples/scenarios/steering_maneuver.yamlconfig377 B
examples/scenarios/tire_force_output.yamlconfig437 B
examples/scenarios/vehicle_override.yamlconfig376 B
examples/simulink_cosim.pyscript5.5 KB
examples/torque_vectoring.pyscript5.6 KB
references/advanced-controls.mdmarkdown4.0 KB
references/batch-workflows.mdmarkdown1.6 KB
references/compatibility.mdmarkdown1.4 KB
references/control-modes.mdmarkdown1.0 KB
references/database-exploration.mdmarkdown7.4 KB
references/dataset-syntax.mdmarkdown6.6 KB
references/outputs-and-units.mdmarkdown2.1 KB
references/parameter-discovery.mdmarkdown1.4 KB
references/parameters.mdmarkdown3.3 KB
references/python-interface.mdmarkdown7.9 KB
references/run-validation.mdmarkdown2.2 KB
references/scenarios.mdmarkdown3.3 KB
references/simulink-cosim.mdmarkdown4.0 KB
references/troubleshooting.mdmarkdown1.4 KB
references/version-compatibility.mdmarkdown811 B
references/vs-c-api.mdmarkdown3.3 KB
scripts/base_registry.pyscript4.7 KB
scripts/batch_runner.pyscript7.1 KB
scripts/carsim_batch.pyscript23.4 KB
scripts/carsim_errors.pyscript2.2 KB
scripts/control_modes.pyscript1.8 KB
scripts/cosim_model.mother4.7 KB
scripts/database_tools.pyscript16.5 KB
scripts/diagnose_run.pyscript444 B
scripts/diagnostics.pyscript6.9 KB
scripts/discovery_query.pyscript1.0 KB
scripts/dump_dll_exports.pyscript1.9 KB
scripts/output_registry.pyscript8.9 KB
scripts/override_registry.pyscript2.9 KB
scripts/parameter_discovery.pyscript8.6 KB
scripts/parameters.pyscript10.0 KB
scripts/result_contract.pyscript548 B
scripts/scenario_runner.pyscript11.3 KB
scripts/scenario_schema.pyscript4.0 KB
scripts/setup_paths.pyscript11.2 KB
scripts/tv_cosim.mother8.5 KB
scripts/validate_run.pyscript6.1 KB
scripts/version_compatibility.pyscript2.0 KB

references/run-validation.md

View on GitHub
# Run validation (core)

Two complementary layers, both core capabilities. Neither invents physics
adequacy: they prove the run executed as configured.

## Compile-time checks (before the solver)

`scenario_runner.verify_compiled` inspects the generated files and reports
structured errors: `TSTEP` (override.par) must equal `EXT_MODEL_STEP`
(simfile.sim); `DLLFILE` must pin the 64-bit solver; `PRODUCT_VER` must match
the pinned base version; the `WRT_` output list must be non-empty; the base
snapshot hash must still match the registry binding.

## Post-run checks

`validate_run.check_run(...) -> RunValidationResult(passed, issues, metrics)`
never raises. Issues carry `severity` (error / warning), a stable `code` and a
message:

- **errors** (fail the run): missing/empty `run.csv` or `run_echo.par`, stale
  artifacts (mtime before run start), missing requested channels, non-numeric
  or NaN/inf values, wrong sample count, time grid not strictly increasing on
  the requested dt through TSTOP, echo parameter absent or mismatched,
  movement threshold not met (when configured), solver stdout lacking
  `Termination at simulation time`.
- **warnings** (pass with a note): `run_log.txt` absent (dataset provenance
  not recorded).

`metrics` reports samples, final time, echoed parameter values and the
movement threshold. `validate_run(...)` is the compatibility wrapper: it
raises `ValueError` on the first error and returns the legacy metrics dict.

Echo validation uses exact `KEYWORD value` matches in `run_echo.par`
(rel 1e-6). It covers scalar keywords that echo line-by-line; keywords that
cannot be reliably extracted are reported as absent rather than assumed OK.
For table overrides, inspect the complete echoed table block and confirm the
result behavior. `SPEED_TARGET_TABLE` is a verified structured path; other
table families require confirmation in the target Run Control.

```python
from validate_run import check_run
result = check_run(run_dir, simulation, ["Vx", "AVz"], started_at=t0,
                   expected_parameters={"M_SU": 1250.0},
                   minimum_speed_mps=1.0, solver_stdout=stdout)
if not result.passed:
    for issue in result.errors():
        print(issue.code, issue.message)
```
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 323kUpdated Claude CodeCodexVerifiedInstall