phaser-coder
Installation
SKILL.md
Phaser 4 Coder
Use this skill for TypeScript-first Phaser 4 implementation work.
Workflow
- Read existing code before editing. Inspect
src/main.ts, scene files, related objects/managers, shared constants, and asset keys. - Match existing naming, folder structure, scene key conventions, and state management patterns.
- Use Phaser 4 APIs only. Avoid removed Phaser 3 APIs such as
Phaser.Geom.Point,Phaser.Math.PI2,Phaser.Structs, and deprecated texture generation patterns. - Prefer typed constants/enums for scene keys, registry keys, event names, asset keys, and animation keys.
- Write complete runnable code. Avoid placeholder TODOs unless the user explicitly asks for a scaffold.
- After non-trivial edits, run
npx tsc --noEmitwhen the project has TypeScript configured.