Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add fcsouza/agent-skills --skill gameplay-analyticsgit clone --depth 1 https://github.com/fcsouza/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/fcsouza/agent-skills/gameplay-analytics)<a href="https://agentmods.dev/skills/fcsouza/agent-skills/gameplay-analytics"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/gameplay-analytics/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/gameplay-analytics"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/gameplay-analytics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00078 | $0.01846 |
| Opus 5.5 | $0.00031 | $0.00738 |
| Sonnet 5.5 | $0.00016 | $0.00369 |
| Haiku 4.5 | $0.00008 | $0.00185 |
Grade A, and why
gameplay-analytics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Gameplay Analytics
Events go from the game server into a Redis list, a single worker drains the list into PostgreSQL in batches, and retention and funnels run as SQL over the stored tables.
Rules
- Name events
noun_verb, snake_case, past tense for finished actions:level_completed,item_purchased,match_ended. Keep a finite catalog intemplates/event-catalog.md; an event not in the catalog does not ship. - Every event carries
userId,sessionId,createdAt,version,platform. The client fills them. It drops events tracked before a session starts instead of filing them under a fake session id. - Never block gameplay on analytics.
track()returns at once and never throws. A Redis outage loses events, not frames. - Buffer in Redis, insert in batches.
track()does LPUSH. One worker per Redis key runsflush(), which reads the oldest batch from the list tail, inserts it, then trims it. The insert skips ids that already exist, so a crash between insert and trim replays safely. Two flushers on one key insert the same batch twice and trim twice, losing events. - Track sessions explicitly: start, heartbeat, end. Do not infer sessions from gaps between events. Players crash and lose network without sending
end, so runcloseIdleSessions(db, idleMs)on a schedule withidleMsset to a few heartbeat intervals. - Retention is cohort-based. A cohort is the UTC day of a player's first session. D is the share of a cohort with a session on exactly cohort day + N. Report a cohort only after its day N has ended. "Players active yesterday" is DAU, not retention.
- Funnels are ordered. A player counts at step K only after doing step K-1. Choose the key on purpose:
session_idfor flows that must finish in one sitting (tutorial, first match),user_idfor flows across sessions (install to first purchase). The query is intemplates/retention-dashboard.md. - Store UTC, compute days in UTC. Use
(now() AT TIME ZONE 'UTC')::datefor today.CURRENT_DATEfollows the connection's time zone. - Keep analytics tables apart from gameplay tables. They are append-only, large and read by different queries.
- Tag experiments on the event, do not fork code paths for analytics. Put
experimentIdandvariantinpropertiesand group by them in SQL.
What ships with it
6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +5 lines 67844e9779fd
- 19d ago Changed · -123 lines · +15 tokens per session a7e3f3050f18
- 3mo ago First seen · 212 lines · 63 tokens per session scan A abbafdf1f896
gameplay-analytics is a skill published in the GitHub repository fcsouza/agent-skills (29 stars, last pushed today), licensed MIT. It adds 78 tokens to every session and 1,846 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
gameplay-analytics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gameplay-analyticsfcsouza/agent-skills | Skill | 29 | today | MIT | A | 78 | Claude Code |
| playtest-reportDonchitos/Claude-Code-Game-Studios | Skill | 42k | 24d ago | MIT | A | 20 | Claude Code |
| godot-signals-groupsgamedev-skills/awesome-gamedev-agent-skills | Skill | 13k | 3d ago | Apache-2.0 | A | 93 | Claude Code |
| scenario-unreal-gameplayscenario-labs/skills | Skill | 4.7k | yesterday | MIT | A | 121 | Claude Code |
| texture-workflowarjun988/blender-skills | Skill | 5.8k | 27d ago | MIT | A | 41 | Claude Code |
| motionOpenDCAI/GameFactory-3A | Skill | 1.6k | yesterday | Apache-2.0 | A | 0 | Claude Code, Codex |
| gamedev-shadersericrisco/rsc-harness | Skill | 707 | yesterday | MIT | A | 102 | Claude Code, Codex |