/summer:summer-analyticsfrom Summer Engine
Sends fire-and-forget game events to Summer analytics from client or authority without blocking gameplay. Useful for tracking player actions and server-side events in multiplayer games.
Ships in Summer Engine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Summer analytics stores named events, such as level_completed or
coin_collected, for the creator to query in Studio. There are two ways in:
| Captured from | Call | What it means |
|---|---|---|
| The player's client | Summer.client.analytics.capture(name, properties) | An untrusted observation from that player's device. Summer attaches the player, game and build; you never pass ids. |
| The authority | Summer.authority.analytics.capture(name, properties) | An observation about this World's runtime. It describes the server, not a player or a match. |
Analytics is for looking at your game, never for running it:
unavailable result may already have stored the event, and capturing again records a second event.Where it works: hosted only. Under Local Play both calls complete with
ok == false and code unavailable, and nothing is stored. Also print each
event while testing, so you can check it in the logs.
Name events after things that happened, in the past tense:
match_started, coin_collected, tutorial_step_completed.
^[A-Za-z][A-Za-z0-9_.:-]{0,63}$.summer..coin_7_collected). Put them in properties: {"coin": 7}.
Dictionary:
email, password, phone, address, ip_address and *_token are rejected at any depth, as is anything starting with $summer_.Capture authoritative facts on the authority, where the game decided them. Capture interface facts on the client: menu opened, tutorial step shown, settings changed.
Authority, in authority/main.gd:
## Fire-and-forget: gameplay never waits on analytics, and a failure is
## logged once, never retried (a retry would count the event twice).
var _analytics_warned := false
func _track(event: String, properties: Dictionary = {}) -> void:
print("ANALYTICS ", event, " ", JSON.stringify(properties))
var capture := Summer.authority.analytics.capture(event, properties)
var result: SummerResult = await capture.get_result_or_completed_signal()
if not result.ok and not _analytics_warned:
_analytics_warned = true
push_warning("analytics unavailable: %s" % result.code)
Client, in client/main.gd, the same shape with the client facade:
var _analytics_warned := false
func _track(event: String, properties: Dictionary = {}) -> void:
print("ANALYTICS ", event, " ", JSON.stringify(properties))
var capture := Summer.client.analytics.capture(event, properties)
var result: SummerResult = await capture.get_result_or_completed_signal()
if not result.ok and not _analytics_warned:
_analytics_warned = true
push_warning("analytics unavailable: %s" % result.code)
Call _track(...) as a statement and do not await it, so the caller
continues immediately. For example, in the authority's _collect, after the
coin is applied:
_track("coin_collected", {"coin": coin, "players": seat_of.size()})
On the client, after a menu choice:
_track("menu_opened", {"from": "pause"})
analytics.summary (hosted, after summer login) returns the
game's top custom events next to its store page views, launches and play
time; the grow-analytics skill says how to read them. In Studio:
studio.open with target game, params gameId (your game's id) and
section: "analytics". Events show up after a short delay.
| Code | Meaning | What to do |
|---|---|---|
unavailable | No analytics service here (Local Play, an old Host), or a lost answer | Nothing. Do not capture again. |
capacity_exceeded | More than 32 captures are pending | Capture less often; batch counts into one event |
analytics_storage_limit_exceeded | The game's analytics quota is used up | Stop capturing this event type; final for now |
not_configured | An older Supervisor without authority analytics | Nothing |
Every failure is final: none of them asks you to capture again.
_track(...) call; no gameplay code awaits it.unavailable.| Don't | Do | Why |
|---|---|---|
await _track(...) in gameplay code | Call it and move on | A slow or failing capture would stall the game |
Capture again after unavailable | Log once and drop it | It may already be stored; a second capture double-counts |
coin_%d_collected names | coin_collected with {"coin": 7} | New names are rate-limited; values belong in properties |
| Trust client events for rewards or rankings | Decide on the authority; capture there too | Client events are untrusted observations |
| Put emails, ids or tokens in properties | Summer attaches player and game identity itself | Blocked names are rejected; personal data must not be collected |
| Make gameplay depend on analytics working | Treat it as optional | It is unavailable locally and may be unavailable hosted |
Start names with summer. | Your own names | That namespace is reserved |
multiplayer — where the client and the authority runmultiplayer-state — the authority's Command handlers, where most events happensummer-match-results — results and ratings, which Summer records itselfNo Summer MCP tools in this session? Run each one as a command; when summer --version is missing or below 4.0, use npx -y summer-engine@latest in place of summer. Fields are flags in kebab-case (--scene-path res://main.tscn) or one --input '<json>', and summer ops describe <op> prints the exact input. The summer-cli skill has the rest.
| In this skill | Command |
|---|---|
analytics.summary | summer analytics summary |
summer_get_diagnostics | summer engine get-diagnostics |
summer_get_script_errors | summer engine get-script-errors |
summer_play | summer engine play |
summer_stop | summer engine stop |
studio.open | summer studio open |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub summerengine/summer --plugin summer123 skills in this plugin
/3d-lightingLight a 3D scene: sun, omni and spot lights, WorldEnvironment, sky, shadows and ambient./adaptive-musicWire music stems to game state: combat, explore, boss and tension crossfades on a shared bus./agent-playtestingPlaytest by driving the live game: deterministic launch, frame-stamped probes, scripted or recorded input./ambient-bedGenerate a long looping location ambience (forest, dungeon, city, cave) on the Ambient bus.Other plugins' skills for the same job