skills/phaser-coder/SKILL.md
Write, review, debug, or explain Phaser 3 code: game config, scenes, sprites, Arcade or Matter physics, tilemaps, animations, audio, input, cameras, tweens, particles, groups, and performance. Auto-triages Quick tasks like one feature, API question, or bug fix, and Deep tasks like full game scaffolds, multi-scene architecture, physics-heavy gameplay, or performance audits. MUST use for any Phaser request: creating a game, loading assets, physics, sprites, input, tilemaps, collisions, scene management, Phaser.Game, Phaser.Scene, this.physics, this.anims, preload/create/update, or help with a Phaser game. Target Phaser 3.60+ unless Phaser 2/CE is explicitly requested.
npx skillsauth add cuozg/oh-my-skills phaser-coderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Phaser 3 game development specialist. Target v3.60+ APIs (latest stable v3.90). Never suggest Phaser 2/CE patterns unless asked about migration.
Quick — Single-file: one feature, one API question, one bug fix.
Deep — Multi-system: full scaffold, multi-scene architecture, physics-heavy gameplay, performance audit.
new Phaser.Game({ type: Phaser.AUTO, width, height, scene, physics })init() → preload() → create() → update(time, delta) — delta is ms since last framethis in scenes — this.add, this.physics, this.input, this.cameras, this.tweens, this.anims, this.time, this.soundpreload() or via this.load.start()this.physics.add.sprite() for physics-enabled sprites; set collideWorldBounds, setBounce, setVelocity after creationthis.physics.add.collider() for physical; this.physics.add.overlap() for detectionthis.physics.add.group() for physics; this.add.group() for display-onlythis.anims.create({key, frames, frameRate, repeat}); play via sprite.anims.play('key')this.make.tilemap({key}) → addTilesetImage() → createLayer(layerName, tileset)this.cameras.main.startFollow(player), setBounds(), setZoom()this.input.keyboard.createCursorKeys(), this.input.keyboard.addKey('W'), pointer via this.input.on('pointerdown', cb)this.scene.start() replaces; this.scene.launch() runs parallelthis.tweens.add({ targets, props, duration, ease, yoyo, repeat })| File | Load when... |
|------|-------------|
| references/game-config-and-scenes.md | Game setup, scene lifecycle, multi-scene |
| references/sprites-and-images.md | Sprites, atlases, animation |
| references/arcade-physics.md | Physics bodies, velocity, gravity, collisions |
| references/matter-physics.md | Matter.js, complex bodies, constraints |
| references/tilemaps.md | Tiled import, tilemap layers |
| references/input.md | Keyboard, pointer, gamepad |
| references/cameras-and-scenes.md | Camera, multi-camera, transitions |
| references/tweens-and-time.md | Tweens, timers, timeline |
| references/audio.md | Sound manager, spatial audio |
| references/particles.md | Particle emitters (v3.60+ API) |
| references/performance.md | Object pooling, optimization |
Quick: inline answer, one code block, 1–3 gotchas.
Deep: full scaffold, multiple labeled blocks, explain architectural choices.
// Minimal Bootstrap
import Phaser from 'phaser';
class MainScene extends Phaser.Scene {
constructor() { super('MainScene'); }
preload() { this.load.image('logo', 'assets/logo.png'); }
create() {
this.tweens.add({ targets: this.add.image(400, 300, 'logo'),
y: 250, duration: 1500, ease: 'Sine.easeInOut', yoyo: true, repeat: -1 });
}
}
new Phaser.Game({ type: Phaser.AUTO, width: 800, height: 600, scene: MainScene });
// Scene Transition with Data
this.scene.start('GameScene', { level: 1 });
// In GameScene: init(data) { this.level = data.level; }
tools
Generate Unity raster image assets through Unity MCP: game sprites, item art, backgrounds, UI icons, portraits, concept images, transparent cutouts, image edits, upscales, background removal, and Unity scene or Game View screenshots. Use when a Unity project needs image files imported under Assets or screenshots captured from the editor. Do not use for meshes, audio, animation, materials, gameplay code, UI Toolkit layout, or generic non-Unity image generation.
tools
Create Unity technical solution documents from user requirements, feature ideas, bug goals, specs, or codebase problems. Use when the user asks for a technical approach, architecture, implementation strategy, solution options, feasibility analysis, system design, or "how should we build/fix this" for Unity runtime, Editor, tools, assets, data, UI, WebGL, SDKs, or production pipelines.
tools
Orchestrate Unity Editor via MCP (Model Context Protocol) tools and resources. Use when working with Unity projects through MCP for Unity - creating/modifying GameObjects, editing scripts, managing scenes, running tests, or any Unity Editor automation. Provides best practices, tool schemas, and workflow patterns for effective Unity-MCP integration.
development
Convert a spec document into an implementation TODO list in the same spec folder. U se when the user says goal-todo, todo from spec, generate tasks from spec, turn this spec into todos, create implementation checklist, extract tasks, or asks to read a Docs/Specs design doc and produce what must be implemented. Includes UI/UX review and codebase investigation before writing the checklist. Do not use for implementing the tasks, creating new goal files, writing test cases, or verifying completed work.