preparing-the-race
/preparing-the-race
Use when the simulator receives a validated plan from the planner and must initialize the race: parsing the plan, spawning runner agents, starting the telemetry collector, and firing the start gun. Triggered once per simulation, before the first tick.
- Author
- googlecloudplatform ↗
- Repository
- race-condition ↗
- Licence
- Apache-2.0
- Last repository change
- 26.07.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.07.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: tools.py
What it does and when to use it
Use when the simulator receives a validated plan from the planner and must initialize the race: parsing the plan, spawning runner agents, starting the telemetry collector, and firing the start gun. Triggered once per simulation, before the first tick.
Original author description
Use when the simulator receives a validated plan from the planner and must initialize the race: parsing the plan, spawning runner agents, starting the telemetry collector, and firing the start gun. Triggered once per simulation, before the first tick.
How it works
- Workflow
- Tools
SKILL.md preview
--- name: preparing-the-race description: > Use when the simulator receives a validated plan from the planner and must initialize the race: parsing the plan, spawning runner agents, starting the telemetry collector, and firing the start gun. Triggered once per simulation, before the first tick. license: Apache-2.0 --- # Preparing the Race This skill initializes the simulation after a validated plan arrives from the planner. ## Workflow Each numbered step is a **separate model response**. The skill toolset guards against multi-step responses with an error. ``` Pre-Race Progress: - [ ] Response 1: prepare_simulation (alone) - [ ] Response 2: spawn_runners + start_race_collector (parallel) - [ ] Response 3: fire_start_gun ``` **Why separate responses:** `prepare_simulation` sets state (`simulation_ready`, `runner_count`, `simulation_id`) that the other tools read. The skill guard rejects parallel calls that would race with that state write. ### Response 1: Parse the plan Call only `prepare_simulation` with the JSON plan from the planner. The tool extracts the route, computes tick parameters, and stores configuration in session state. ### Response 2: Spawn runners + start collector (parallel) Call `spawn_runners` and `start_race_collector` together in the same response. The two tools are independent: spawning runners and subscribing to broadcasts have no data dependency, so they execute simultaneously for faster startup. ### Response 3: Fire the start gun Call `fire_start_gun` to broadcast the START_GUN event to all spawned runner agents. ## Tools - `prepare_simulation(plan_json, tool_context, duration_seconds=120, tick_interval_seconds=10, total_race_hours=6.0)`: Parse the plan JSON, compute max_ticks, and store simulation config in state. - `spawn_runners(count, tool_context)`: HTTP POST to the gateway spawn API to create runner agent sessions. - `start_race_collector(tool_context)`: Start a RaceCollector subscribed to gateway:broadcast for runner telemetry. - `fire_start_gun(tool_context)`: Broadcast a START_GUN RunnerEvent to all spawned runner agents via Redis. - `call_agent(agent_name, message, tool_context)`: Delegate inter-agent communication via the shared A2A utility.
Files in this package (2)
- SKILL.md 2 KB
- tools.py 18 KB
Versions
The database has no other skills named preparing-the-race.
Database snapshot: 13.11.2026 · package version 4e6cd4c408ff (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 90advancing-race-ticks
Use when the simulator's loop agent advances the race by one tick: broadcasting state to runners, draining the telemetry buffer, computing traffic conditions, and checking for race completion. Triggered every iteration of the LoopAgent.