rexrainbow/phaser3-rex-notes/rexui-setup-and-factory
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when working with RexUI setup, the RexUI UIPlugin, scene plugin registration, mapping: 'rexUI', this.rexUI, this.rexUI.add.* factories, or RexUI factory discovery. Triggers on: RexUI setup, rexUI plugin, UIPlugin, this.rexUI, mapping rexUI, RexUI factory, this.rexUI.add.
Install
npx vskill@latest install rexrainbow/phaser3-rex-notes/rexui-setup-and-factorySKILL.md
RexUI Setup And Factory
Use this skill to establish the RexUI entry point before using component-specific RexUI skills.
Use This First
Check how the caller wants to access RexUI:
- Scene plugin mode: use
UIPluginandthis.rexUI.add.*. - Direct import mode: import component classes or factories directly from
templates/ui.
Prefer scene plugin mode for Phaser examples and application code that already follows Rex plugin patterns.
Primary Sources
templates/ui/ui-plugin.js: scene plugin implementation and helper methods.templates/ui/ui-plugin.d.ts: public factory and helper API.templates/ui/ObjectFactory.js: factory registration mechanism.templates/ui/<component>/Factory.js: exactthis.rexUI.add.*signatures.
Use package import paths in generated user code. The local templates/ui/... paths above are source-map paths for reading this repository.
References
Read these only when needed:
references/plugin-setup.md: minimal scene plugin setup and usage pattern.references/factory-map.md: factory categories and source folders.references/entrypoint-differences.md: scene plugin mode vs direct import mode.
Core Rules
this.rexUIexists only afterUIPluginis installed as a scene plugin withmapping: 'rexUI'.- Factories live on
this.rexUI.add, not directly onthis.rexUI. UIPluginis aPhaser.Plugins.ScenePlugin; it createsthis.add = new ObjectFactory(scene).- Factories are registered by each component's
Factory.jsviaObjectFactory.register(type, callback). - Most UI components created through factories are added to the scene or returned as helper behavior objects depending on the component.
- For TypeScript-facing public names, prefer
ui-plugin.d.ts; when it disagrees withFactory.js, inspect the source before generating code.
Minimal Pattern
Derived from RexUI examples and reduced for setup reference.
Gotchas
- Do not use
this.rexUI.add.*in a scene unless the plugin mapping is configured. - Do not assume every factory has
(config)as its only signature; many shape/text factories use positional arguments. - Do not load
examples/at skill usage time. Use the copied reduced recipes in references instead. - Component-specific config details belong in the relevant RexUI skill, not in this setup skill.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/rexui/rexui-setup-and-factory/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rexrainbow/phaser3-rex-notes/rexui-setup-and-factory)