game-client

game-client is a skill for Claude Code from fcsouza/agent-skills. It costs 147 tokens per session (3,858 once invoked), scanned A, original, MIT.

A guide to building the part of a game that runs in a web browser. It covers drawing, game loops, keyboard and touch input, audio, asset loading, canvas sizing, and several browser game libraries, including React Three Fiber.

In plain words
What is it for?
Use it to build or review a TypeScript browser client using Canvas, WebGL, Phaser, PixiJS, Three.js, or React Three Fiber.
Why use it?
It helps keep browser-specific display and input work separate from server-owned game state. It also addresses common problems such as hidden tabs, lost graphics contexts, and uncleaned assets.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the game-dev plugin — 39 skills shipped together

Good fit Use it to build or review a TypeScript browser client using Canvas, WebGL, Phaser, PixiJS, Three.js, or React Three Fiber.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fcsouza/agent-skills/game-client
Install

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.

Any agent
npx skills add fcsouza/agent-skills --skill game-client
Clone the repo
git clone --depth 1 https://github.com/fcsouza/agent-skills

Made for: Claude Code.

Or install game-dev, the plugin that ships this one along with the rest of its 39 skills.

Wrote 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.

agentmods badge for game-client

README.md
[![agentmods](https://agentmods.dev/badge/skills/fcsouza/agent-skills/game-client/github.svg)](https://agentmods.dev/skills/fcsouza/agent-skills/game-client)
Your own site
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/game-client"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/game-client/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.

agentmods 80×15 button for game-client

Your own site · 80×15
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/game-client"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/game-client.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,858 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00147 $0.03858
Opus 5.5 $0.00059 $0.01543
Sonnet 5.5 $0.00029 $0.00772
Haiku 4.5 $0.00015 $0.00386

Measured 19d ago against content hash f4e91d37db9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

game-client 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 19d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (boilerplate/audio-unlock.ts, boilerplate/canvas-size.ts, boilerplate/input-manager.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/game-client/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Game Client

The client draws the world and collects input. In a multiplayer game the server owns the state (game-backend-architecture) and game-state-sync owns prediction, reconciliation and interpolation. This skill owns everything between those and the screen.

Checked against phaser 4.2.1, pixi.js 8.23.0, three 0.187.0 and @react-three/fiber 9.8.2 (bun pm view <pkg> version, 2026-11-14). An agent trained on an older major writes code that no longer runs; each stack's reference file lists those traps.

Choose the stack

The "what it is" column uses each project's own words. The "fits" and "avoid" columns are this skill's rule.

Stack What it is Fits when Avoid when
Plain web (Canvas 2D, WebGL2, WebGPU) Browser APIs; you write the loop, input, loader and batcher Few sprites, a custom renderer, a tool, a tight bundle You find yourself writing a sprite batcher or scene graph
Phaser 4 "A fast, free, and fun open source HTML5 game framework" with scenes, a loader, Arcade and Matter physics, input, cameras, tilemaps, tweens A 2D game where you want the engine to own scenes, input and physics You need 3D (v4 removed Mesh and Plane), or only a renderer under your own loop
PixiJS 8 "Just a rendering engine" for 2D; sound, UI and layout are add-ons A 2D game where you own the structure and want a fast batched renderer You want scenes, physics and gamepad input built in
Three.js "An easy-to-use, lightweight, cross-browser, general-purpose 3D library" 3D with many server entities updated every snapshot A 2D game
React Three Fiber "A React renderer for three.js" 3D inside an existing React app, mostly long-lived objects Entities that spawn and despawn every snapshot (mounting compiles materials)

Load one reference file for the chosen stack and skip the others.

Set up with Bun and TypeScript

  • Plain web: bun ./index.html serves and bundles the page with hot reloading; bun build ./index.html --outdir=dist builds it. Details in references/web.md.
  • Phaser and PixiJS: scaffold with bun create @phaserjs/game@latest or bun create pixi.js my-app --template bundler-vite. Their templates bundle with Vite; keep Vite and use Bun as package manager and runtime. No vendor source covers Bun's own bundler, so this is this skill's rule.
  • Three.js: install three and @types/three at the same version. R3F: add @react-three/fiber and match React's major (fiber 9 needs React 19).
  • TypeScript: browser code needs "DOM" in lib. Bun's recommended tsconfig lists only "ESNext". Give the client its own tsconfig so server code does not see DOM globals (this skill's rule).

Read the full file on GitHub · 146 lines

Files

What ships with it

9 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.

Changes

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.

  1. 19d ago First seen · 146 lines · 147 tokens per session scan A f4e91d37db9b

Subscribe to this mod's changes

game-client is a skill published in the GitHub repository fcsouza/agent-skills (29 stars, last pushed today), licensed MIT. It adds 147 tokens to every session and 3,858 once invoked, about $0.0006 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-11-15.

Related

game-client compared with skills from other repositories

game-client next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
game-clientfcsouza/agent-skillsSkill29todayMITA147Claude Code
react-three-fibervercel-labs/json-renderSkill20ktodayApache-2.0A54Claude Code, Codex
distributekyh/vibedgamesSkill62todayMITA58Claude Code, Codex
react-three-fiber-gameopenai/pluginsSkill8.5k15d agononeA47Codex
phaser-2d-gameopenai/pluginsSkill8.5k15d agononeA48Codex
audiokyh/vibedgamesSkill62todayMITA93Claude Code, Codex
vg-setupkyh/vibedgamesSkill62todayMITA48Claude Code, Codex