phaser-plus-feature

Installation
SKILL.md

phaser-plus-feature

Scaffold a new feature in @toolcase/phaser-plus. Typical additions: subclasses of Feature / Layer / HTMLFeature / Panel / FlowProcessor / Effect / Path* / BTNode. Composes with Phaser 4, @toolcase/base, and @toolcase/logging.

REQUIRED reading before generating any code

You MUST read three files in this order:

  1. .claude/skills/phaser-plus-feature/features.md (bundled) — inventory of every existing class/registry/event in @toolcase/phaser-plus. Reuse before reinvent.
  2. .claude/skills/phaser-plus-feature/conventions.md (bundled) — Scene lifecycle hooks, Feature pattern, registry wiring, broadcast events, ESM-only build constraints.
  3. examples/public/phaser-plus/SKILL.md — the user-facing API reference at toolcase.kalevski.dev/phaser-plus/SKILL.md. The downstream contract — anything you add must be appended here too.

Do not paraphrase. Open all three. Locate the matching subsystem (engine / features / pool / flow / effects / debugger / perspective2d / cinema / input / ai). Copy the exact constructor signature, hook names (onCreate/onUpdate/onDestroy), and registry-attachment pattern from the matching existing code.

REUSE rule (load-bearing)

Before adding a new export, scan features.md. Concrete checks:

Installs
1
GitHub Stars
2
First Seen
Jun 19, 2026