Glitchless Setup
Published by glitchless-gg in game-dev-skills
What this skill does
Add Glitchless observability to a game (Three.js or React Three Fiber, Phaser 3 or 4, Babylon.js, PlayCanvas, Unity 6.3+, Godot 4.5+, Unreal Engine 5.8 or GameMaker 2024.2+). Frame-time percentiles, hitch attribution, errors, gameplay events, level heatmaps, and tools that let coding agents measure the running game. Use when the user wants telemetry, analytics, performance monitoring or "observability" in a game, or asks to add Glitchless.
Add Glitchless Setup to your agent
Review the source and files first. When you are ready, copy the prompt instruction or use the CLI command supported by your environment.
Install with a prompt
Paste this into a compatible coding agent:
add this skill "glitchless-setup" from https://github.com/glitchless-gg/game-dev-skillsInstall with the CLI
Run this command in a controlled environment after reviewing the repository:
npx skills add https://github.com/glitchless-gg/game-dev-skills --skill glitchless-setupSkill instructions
Instrument a game with Glitchless
Goal: after this skill, every play session reports how the game felt (frame times, hitches and their causes), what broke (errors, crashes) and what the player did (levels, deaths, pickups, positions), and you (the agent) have a way to measure the running game before and after a change.
0. Find the engine, and the settings
| You find | Engine | Follow |
|---|---|---|
three or @react-three/fiber in package.json | Three.js | references/threejs.md |
phaser in package.json, or a <script> that loads Phaser | Phaser 3.60+ or 4 | references/phaser.md |
@babylonjs/core or babylonjs in package.json, or a <script> that loads Babylon.js | Babylon.js 5+ | references/babylon.md |
playcanvas in package.json, a PlayCanvas Editor project (scripts using pc.createScript or pc.Script), or a <script> that loads PlayCanvas | PlayCanvas 2.x | references/playcanvas.md |
ProjectSettings/ProjectVersion.txt and Packages/manifest.json | Unity 6.3+ | references/unity.md |
project.godot | Godot 4.5+ | the Godot addon's README: godot/addons/glitchless/README.md in the Glitchless repo (~/.glitchless/godot/addons/glitchless/README.md if it's cloned there), then references/godot.md for bug reports |
a *.uproject file | Unreal Engine 5.8 (5.7 untested) | references/unreal.md |
a *.yyp file | GameMaker 2024.2+ | references/gamemaker.md |
Read only the file for this game's engine: each one walks through reading the game, installing, levels and events, bots and measuring, and checking it works. Apply these settings first.
Settings, for every engine:
- Intake URL and client token. If the user gave you them (a hosted Glitchless server prints both, for example
Send telemetry to https://api.example.com with client token gl_pub_…), use those. Otherwise usehttp://localhost:7777andgl_pub_dev, a local server. On Glitchless Cloud with no token yet, sign the MCP server in (glitchless_sign_in, ornpx -y glitchless-mcp login; the user approves a code) and callglitchless_create_game: it returns the game's client token and intake URL. The client token is public and write-only, so it may live in the game's source. A secret or workspace key (gl_sk_…,gl_ws_…) never goes in the game. - Privacy. Keep the default anonymous mode: no player ID, coarse device facts, no positions. Ask the user
before choosing another mode, since the game's privacy policy and store answers must then say so (each SDK's
PRIVACY.md lists every field and has the wording). If they want to know whether players come back (retention:
D1, D7, D30), offer install mode: it adds only a random player ID kept on the device (
privacy: 'install'; Godot"privacy": "install"; UnityPrivacy = Privacy.Install; UnrealPrivacy=Install). Anonymous mode can't count returning players. Full mode adds a stored player ID, device detail and positions. - Bots. Sessions from autoplay bots and tests must be marked synthetic, so they stay out of player numbers.
- Testers. On iOS the Godot, Unity and Unreal SDKs tell a TestFlight install from an App Store one themselves
(
distributionin the device fields) and mark its sessionstester, out of player numbers, even though a TestFlight build is a release build that reportsprod. Don't pass a session type that would undo this. On Android, Google Play's testing tracks can't be told apart on the device: if the developer ships test builds there, give the testing-track build its own env (beta) from a build flag. - Version. Find where the game's version lives and pass it; bump it on every release so Glitchless can compare versions.
Every engine: the game's own metrics, and its board
Games differ: a puzzle game cares about solve time and hints, a mobile game about opens, modes, the paywall and purchases, a platformer about where players die. Glitchless doesn't assume a genre, so this part is yours.
-
Find the moments this game's designer would want counted, and send each with
track: one event name per moment, plus one word or a few attributes about it. Never anything about the player.- Three.js or Phaser:
glitchless.track('play', { mode: 'endless' }) - Godot:
Glitchless.track("play", "endless")(one word becomes the attributewhat) or a dictionary - Unity:
Glitchless.Track("play", "endless");or aDictionary<string, object> - Unreal:
FGlitchless::Track(TEXT("play"), TEXT("endless"));(the attributewhat) or aTMapof attributes and one of numbers; in Blueprint, Track Event (What) or Track Event - GameMaker:
glitchless_track("play", "endless");(the attributewhat) or a struct
Good candidates: the game opening (with the edition, free or full), a mode or run starting, a run ending and how, shop and paywall views and where they were opened, purchases started and finished, hints, choices that matter (difficulty), shares and rating prompts. Levels, stages and puzzles go through levelStart, levelComplete and levelFail, not
track. Attributes are strings, numbers or booleans, at most 12 per event.Purchases have one convention in every engine, so boards can add them up into revenue: a
purchaseevent when the store confirms it, withamount(a number in the currency's units: 4.99, not 499),currency(the ISO code the store charged in) anditem. A game has one currency on its boards; purchases in another are listed as left out, not added in. Never send receipts, order ids or payment details. A free test purchase (TestFlight, Xcode, a Play licence tester) is not revenue: the engine SDKs addsandbox: trueto purchases in a TestFlight or development install on iOS by themselves, and where the game's billing library says a purchase is a sandbox one (RevenueCat'sisSandbox, on Android too) passsandbox: trueyourself. Boards count those purchases but never add them into revenue.- Web games (Three.js, Phaser, Babylon.js, PlayCanvas):
glitchless.track('purchase', { amount: 4.99, currency: 'USD', item: 'gems_500' }) - Godot:
Glitchless.track("purchase", {"amount": 4.99, "currency": "USD", "item": "gems_500"}) - Unity:
Glitchless.Track("purchase", new Dictionary<string, object> { ["amount"] = 4.99, ["currency"] = "USD", ["item"] = "gems_500" }); - Unreal:
FGlitchless::Track(TEXT("purchase"), {{TEXT("currency"), TEXT("USD")}, {TEXT("item"), TEXT("gems_500")}}, {{TEXT("amount"), 4.99}});(in Blueprint, Track Event withamountin Numbers)
- Three.js or Phaser:
-
Once events arrive, design the game's own dashboard: follow the
glitchless-dashboardskill (next to this one), which turns the developer's questions into collectors, panels and pages and saves them with theglitchless_set_dashboardMCP tool.
Report
Tell the user what you wired (with file:line), the gauges you chose and why, the events you track and the board you designed, the agent tools or measure commands you set up, and anything you weren't sure about.
Files included
- references/babylon.md
- references/gamemaker.md
- references/godot.md
- references/phaser.md
- references/playcanvas.md
- references/threejs.md
- references/unity.md
- references/unreal.md
- SKILL.md

