Skip to content

77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.

fix(phaser): add duplicate-game pitfall for hot reload and component remounts

Kiro Crew9160e879828b
diff --git a/skills/web-engines/phaser-core/SKILL.md b/skills/web-engines/phaser-core/SKILL.md
index a8d853b..8310ad4 100644
--- a/skills/web-engines/phaser-core/SKILL.md
+++ b/skills/web-engines/phaser-core/SKILL.md
@@ -179,6 +179,11 @@ this.cameras.main.setZoom(1.5);
`false` in Phaser 4.
- **Nothing renders / black screen** → confirm the canvas mounted, `width`/`height`
are set, and a scene actually started (check `game.scene.dump()` output).
+- **Two canvases (two games running) after a hot reload or a React/Vue remount** →
+ a second `new Phaser.Game` ran while the first was still alive. Keep one instance
+ and call `game.destroy(true)` when the host component unmounts; the teardown
+ finishes on the next frame. Leave `noReturn` false, or no new game can start on
+ the page.
## References