Claude Code skill for tracking event latency in Happy Simulator
Add end-to-end latency measurement to a discrete-event simulation with an explicit creation timestamp and a terminal tracker.
中文Install in Claude Code
Use Claude Code in a working local happy-simulator checkout and prepare a single-event discrete-event simulation.
- Review `.claude/skills/happy-sim-add-instrumentation/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/happy-sim-add-instrumentation/` in your project and save the reviewed file as `.claude/skills/happy-sim-add-instrumentation/SKILL.md`.
- Start Claude Code from that project's root, then select `/happy-sim-add-instrumentation` in the slash menu.
Example task
Create a local simulated event at time 0.0 and deliver it to the terminal at time 2.0. Use LatencyTracker at the terminal and inspect its statistic after the run.
`LatencyTracker` · `created_at = 0.0` · `finish_time = 2.0` · `p50()`What to check
In the single-sample run, `p50() = 2.0` seconds. The difference between the creation and terminal timestamps can be checked directly.
Original SKILL.md on GitHub · Updated
Frequently asked question
Do I need the visual extras to check one event?
Terminal latency statistics are enough for this example. Check that the timestamp and terminal tracker are wired before adding charts.