/phaser4-gamedev:phaser-release runs instead · from phaser4-gamedev
Guides releasing a Phaser game to players: readiness checks, production build verification, mobile testing, security hardening, and post-launch updates.
This skill never runs in Claude Code
It ships in phaser4-gamedev at skills/, but /phaser4-gamedev:phaser-release (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Getting the build onto a host is the easy part, and skills/phaser-build/ already covers
it. This skill covers the rest: deciding whether the game is ready, presenting it so
people play it, and running the loop after launch.
The most common release mistake is not a broken build. It is releasing something that works, presenting it badly, and concluding the game was the problem.
Do not begin release preparation until all of these pass. Each one has ended a launch.
# 1. Compiles
npx tsc --noEmit
# 2. Runs — as a production build, which is what players get
node "${CLAUDE_PLUGIN_ROOT}/skills/phaser-playtest/scripts/playtest.mjs" \
--project . --mode build
# 3. Every scenario still passes — against the minified bundle
node "${CLAUDE_PLUGIN_ROOT}/skills/phaser-playtest/scripts/playtest.mjs" \
--project . --mode build --scenario playtest
# (steps 1–3 are `npm run verify` in projects created by /phaser-new)
# 4. Holds up on mobile if you claim mobile support
node "${CLAUDE_PLUGIN_ROOT}/skills/phaser-playtest/scripts/playtest.mjs" \
--project . --mode build --device iphone
# 5. No leak across a long session
node "${CLAUDE_PLUGIN_ROOT}/skills/phaser-playtest/scripts/playtest.mjs" \
--project . --scenario playtest/long-session.mjs --heap
# 6. Nothing secret, nothing vulnerable, CSP in place
bash "${CLAUDE_PLUGIN_ROOT}/skills/phaser-build/scripts/validate-project.sh" .
npm audit --omit=dev --audit-level=high
# 7. Package a clean build — the playtest build carries a test hook
npm run build
--mode build is the one that matters. Dev mode hides exactly the failures that only
players see: a wrong base path in vite.config.ts that 404s every asset on itch.io,
assets referenced from src/ that never reached dist/, minification breaking code that
depends on .name, and tree-shaking dropping a scene that is only referenced
dynamically. A game that is perfect in dev and broken in build is the single most common
launch-day failure. Build mode is also where the Content-Security-Policy is active, so a
blocked request shows up there as a console error — and fails the run.
Security for a static game is short but non-negotiable: no secrets in VITE_*
variables, no source maps, a CSP, pinned CI actions, and the server — never the client —
as the authority for anything competitive. See
skills/phaser-build/references/production-hardening.md.
| Check | Why it matters |
|---|---|
| Play it start to finish yourself | You will find something. You always do. |
| Someone else plays it without instructions | The tutorial gap only appears with a real stranger |
| Audio balance on speakers and headphones | Mixes made on one are usually wrong on the other |
| Every settings toggle actually works | Broken settings read as a broken game |
| Save survives a page reload | And a browser restart, and a version bump |
| It works on a real phone | Emulation is not Safari |
The stranger test is the highest-value item on this list. Watch, and do not help — every moment you want to explain something is a design problem you can still fix.
Set a version and put it in the game:
// Read from package.json at build time; never hand-maintain two copies.
const config: Phaser.Types.Core.GameConfig = {
gameVersion: __APP_VERSION__, // define in vite.config.ts
// ...
};
// vite.config.ts
import pkg from './package.json';
export default defineConfig({
define: { __APP_VERSION__: JSON.stringify(pkg.version) },
});
Display it somewhere unobtrusive — a corner of the title screen. When a bug report says "it happens on the latest version", you need to know what they were actually running, and a version they can read off the screen is the difference between a useful report and a guess.
Semantic-ish versioning for games:
| Bump | When |
|---|---|
0.1.0 → 0.2.0 | New content or features |
0.2.0 → 0.2.1 | Fixes |
0.x → 1.0.0 | The game is complete as designed |
Version your save format separately, and from the first release:
interface SaveData { version: number; /* ... */ }
Retrofitting this after players have saves is a migration you cannot test against data
you do not have. See skills/phaser-saveload/.
For most web games the page does more for the play count than any single feature. It is not marketing fluff; it is where people decide.
node "${CLAUDE_PLUGIN_ROOT}/skills/phaser-playtest/scripts/playtest.mjs" \
--project . --scenario playtest/showcase.mjs --video --mode build
A scenario that plays the most visually interesting 10 seconds gives you a clean, repeatable capture with no cursor and no fumbled input — and it re-records itself in one command every time the art changes.
dist/, not the folder. index.html must be at the zip root.base: './' in vite.config.ts — an absolute base 404s every asset.Deployment mechanics for itch.io, GitHub Pages, Netlify/Vercel and Capacitor are in
skills/phaser-build/SKILL.md.
Set up the feedback path before you announce. A comment thread nobody is reading, or a Discord that does not exist yet, loses you the first day of reports — which are the most valuable ones you will get, because they come from the least invested players.
Add an in-game way to report:
if (this.input.keyboard) {
this.input.keyboard.on('keydown-F8', () => {
const state = { version: __APP_VERSION__, scene: this.scene.key, /* ... */ };
navigator.clipboard?.writeText(JSON.stringify(state));
});
}
A key that copies the current game state turns a paragraph of prose into something you can
paste straight into a playtest eval step. It costs ten lines and it changes what your
bug reports are worth.
Watch, in this order:
Have a rollback ready. Keep the previous build. If launch day goes wrong, restoring in two minutes beats debugging under pressure in front of an audience.
Release is the start of the interesting part. Feedback arrives, and the loop that turns it into a better game is:
/phaser-feedback # triage, reproduce, fix, verify, reply
Each reproduced bug leaves behind a playtest/repro-*.mjs scenario, which becomes part of
the gate for the next release. Over a few releases that suite encodes what real players
actually did to your game — which no amount of unit testing produces. See
skills/phaser-feedback/.
Ship fixes fast and visibly. A game that gets a fix within a day of a report reads as cared-for, and that reputation determines whether anyone bothers reporting the next one.
For each patch:
fixed null deref in ShopScene. See
skills/phaser-feedback/references/response-templates.md.A game is finished when the remaining items are improvements rather than problems. There is always more polish available. Two useful signals:
Stop, write the postmortem, and start the next one. An unfinished game teaches far less than a finished one, and a game polished past the point of complaints is a game not being made.
references/release-checklist.md — The full gate as a checklist, per platform, plus
the pre-launch, launch-day and post-launch sequences.references/store-presence.md — Store page craft: capture, screenshots,
descriptions, tags, and the platform-specific requirements for itch.io, Newgrounds,
Poki, and mobile stores.skills/phaser-build/ — deployment mechanics and per-host configurationskills/phaser-feedback/ — the post-launch loopskills/phaser-playtest/ — the gate this skill depends onskills/phaser-mobile/ — mobile and store packaging specificsskills/phaser-saveload/ — save versioning, which must exist before the first releaseWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
phaser, game-release, itch-io, launch-checklist, production-build
npx claudepluginhub yakoub-ai/phaser4-gamedev --plugin phaser4-gamedev26 skills in this plugin
/phaser-analyzeThis skill should be used when the user asks to "analyze my game", "review my Phaser project", "audit project health", "find bottlenecks", "refactor my game", "improve my code", "optimize my project", "what's wrong with my game", "code review Phaser", or "assess architecture"./phaser-animationThis skill should be used when the user asks to "create animation", "animate sprite", "add tweens", "sprite animation not playing", "character animations", "easing", "tween timeline", "idle animation", "walk animation", "fade in", "fade out", or "scale animation"./phaser-architectThis skill should be used when the user asks to design a Phaser 4 game, plan game architecture, structure scenes, organize game state, define scene flow, choose module boundaries, or review/refactor an existing Phaser project architecture before implementation./phaser-asset-advisorThis skill should be used when the user asks about Phaser 4 asset loading, sprite sheets, texture atlases, image optimization, preloader scenes, loading bars, tile map assets, audio formats, bitmap fonts, free game assets, generated placeholder assets, asset organization, or asset pipeline performance./phaser-audioThis skill should be used when the user asks to "add sound", "play music", "audio not working", "add background music", "sound effects", "mute button", "audio sprite", "game audio", "play sound effect", or "music won't play"./phaser-brainstormThis skill should be used when the user asks to "brainstorm a game idea", "help me come up with a game", "I want to make a game but don't know what", "is this game idea any good", "what should I build", "refine my game concept", "scope this idea down", "what genre fits", "help me pick a game to build", "turn this idea into something buildable", or arrives with a vague concept that needs shaping before a GDD can be written.Other plugins' skills for the same job