Glitchless Setup: Install, Source and Security

Glitchless Setup

Published by glitchless-gg in game-dev-skills

Review recommended1 installs

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-skills

Install 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-setup

Skill 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 findEngineFollow
three or @react-three/fiber in package.jsonThree.jsreferences/threejs.md
phaser in package.json, or a <script> that loads PhaserPhaser 3.60+ or 4references/phaser.md
@babylonjs/core or babylonjs in package.json, or a <script> that loads Babylon.jsBabylon.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 PlayCanvasPlayCanvas 2.xreferences/playcanvas.md
ProjectSettings/ProjectVersion.txt and Packages/manifest.jsonUnity 6.3+references/unity.md
project.godotGodot 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 fileUnreal Engine 5.8 (5.7 untested)references/unreal.md
a *.yyp fileGameMaker 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 use http://localhost:7777 and gl_pub_dev, a local server. On Glitchless Cloud with no token yet, sign the MCP server in (glitchless_sign_in, or npx -y glitchless-mcp login; the user approves a code) and call glitchless_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"; Unity Privacy = Privacy.Install; Unreal Privacy=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 (distribution in the device fields) and mark its sessions tester, out of player numbers, even though a TestFlight build is a release build that reports prod. 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.

  1. 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 attribute what) or a dictionary
    • Unity: Glitchless.Track("play", "endless"); or a Dictionary<string, object>
    • Unreal: FGlitchless::Track(TEXT("play"), TEXT("endless")); (the attribute what) or a TMap of attributes and one of numbers; in Blueprint, Track Event (What) or Track Event
    • GameMaker: glitchless_track("play", "endless"); (the attribute what) 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 purchase event when the store confirms it, with amount (a number in the currency's units: 4.99, not 499), currency (the ISO code the store charged in) and item. 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 add sandbox: true to 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's isSandbox, on Android too) pass sandbox: true yourself. 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 with amount in Numbers)
  2. Once events arrive, design the game's own dashboard: follow the glitchless-dashboard skill (next to this one), which turns the developer's questions into collectors, panels and pages and saves them with the glitchless_set_dashboard MCP 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