Summer Analyticsのロゴ

Summer Analytics

組織
SummerEngine
summer-analytics

Send game events to Summer analytics from the authority or client: fire-and-forget, never blocking gameplay.

概要

公開者SummerEngine
リポジトリsummer
スキル名summer-analytics
スター
91
フォーク
8
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    SummerEngineがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Summer Analytics」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/SummerEngine/summer/tree/main/library/skills/summer-analytics
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SummerEngine/summer.git /tmp/summer
mkdir -p .claude/skills
cp -r /tmp/summer/library/skills/summer-analytics .claude/skills/summer-analytics
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSummer Analyticsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSummer Analyticsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Summer Analyticsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

/summer-analytics — game events you read in Grow

Overview

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 fromCallWhat it means
The player's clientSummer.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 authoritySummer.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:

  • Capture returns immediately.
  • Gameplay never waits for capture and never depends on its result.
  • Capture is never retried. An 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.

Steps

1. Choose a small set of events

Name events after things that happened, in the past tense: match_started, coin_collected, tutorial_step_completed.

  • Names:
    • 1 to 64 characters, matching ^[A-Za-z][A-Za-z0-9_.:-]{0,63}$.
    • Case-sensitive, and never starting with summer..
  • Never put changing values in names (coin_7_collected). Put them in properties: {"coin": 7}.
    • New event names are rate-limited per player and per game per day.
    • Known names keep working after that limit.
  • Properties are a JSON Dictionary:
    • at most 64 scalar values;
    • nesting at most 4 deep;
    • property names up to 128 bytes;
    • one event at most 16 KiB.
  • Never send personal data or secrets. Names such as 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.

2. Add a fire-and-forget helper

Authority, in authority/main.gd:

gdscript
## 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:

gdscript
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)

3. Call it without awaiting

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:

gdscript
	_track("coin_collected", {"coin": coin, "players": seat_of.size()})

On the client, after a menu choice:

gdscript
	_track("menu_opened", {"from": "pause"})

4. Read the results

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.

Result codes

CodeMeaningWhat to do
unavailableNo analytics service here (Local Play, an old Host), or a lost answerNothing. Do not capture again.
capacity_exceededMore than 32 captures are pendingCapture less often; batch counts into one event
analytics_storage_limit_exceededThe game's analytics quota is used upStop capturing this event type; final for now
not_configuredAn older Supervisor without authority analyticsNothing

Every failure is final: none of them asks you to capture again.

Checklist

  • Every capture is a plain _track(...) call; no gameplay code awaits it.
  • Event names are fixed strings; values live in properties.
  • No personal data, tokens or free-typed player text in properties.
  • Authority-decided facts (won, collected, bought) are captured on the authority.
  • Under Local Play the game plays normally while captures report unavailable.

Common mistakes

Don'tDoWhy
await _track(...) in gameplay codeCall it and move onA slow or failing capture would stall the game
Capture again after unavailableLog once and drop itIt may already be stored; a second capture double-counts
coin_%d_collected namescoin_collected with {"coin": 7}New names are rate-limited; values belong in properties
Trust client events for rewards or rankingsDecide on the authority; capture there tooClient events are untrusted observations
Put emails, ids or tokens in propertiesSummer attaches player and game identity itselfBlocked names are rejected; personal data must not be collected
Make gameplay depend on analytics workingTreat it as optionalIt is unavailable locally and may be unavailable hosted
Start names with summer.Your own namesThat namespace is reserved

See also

  • multiplayer — where the client and the authority run
  • multiplayer-state — the authority's Command handlers, where most events happen
  • summer-match-results — results and ratings, which Summer records itself

From a shell

No 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 skillCommand
analytics.summarysummer analytics summary
summer_get_diagnosticssummer engine get-diagnostics
summer_get_script_errorssummer engine get-script-errors
summer_playsummer engine play
summer_stopsummer engine stop
studio.opensummer studio open

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Summer Analytics」では何ができますか?

Send game events to Summer analytics from the authority or client: fire-and-forget, never blocking gameplay.

TypingMindでSummer Analyticsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Summer Analyticsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSummer Analyticsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/SummerEngine/summer/tree/main/library/skills/summer-analyticsを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Summer Analyticsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Summer Analyticsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSummer Analyticsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Summer Analytics」は無料ですか?

はい。SummerEngineがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇