PlayCanvas Editor Scripting
SkillDev toolsUse when working with the PlayCanvas Editor scripting system, script attributes, Monaco editor integrations, ESM scripts, hot reloading, or editor scripts compilation.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the PlayCanvas Editor Scripting skill
What this skill tells your AI
The instructions your AI receives, as published by teknokomo/universo-platformo-react in .agents/skills/playcanvas-editor-scripting/SKILL.md and read by ahel’s review.
Use this skill when authoring, compiling, or integrating scripts, script attributes, hot-reload handlers, or Monaco code editor components.
Version Guard
- Supports ESM scripts (the default mode in
v2.30.4, not legacy script format). - Integrated Monaco editor matches
0.47.0(as vendored). - Script attribute parsing uses
@playcanvas/attribute-parser.
Required Output
Before modifying script configurations or attributes:
- state the script name and attribute structure (type, defaults, titles);
- specify how hot reload handles state preservation;
- describe code compilation/linter checks used in the Monaco wrapper.
Workflow
- Declare scripts as ES6 classes extending
pc.ScriptType. - Attributes must be declared using
ScriptType.attributes.add(name, options). - Monaco editor compiles scripts in-memory and validates them against the playcanvas TypeScript definitions.
- Hot reload updates active script instances in the viewport without re-booting the application.
Blocking Rules
- Do not use legacy
pc.createScriptsyntax for new scripts; use standard class syntax. - Do not bypass script attribute validation. If an attribute option is invalid, Monaco must show a lint error.
- Do not perform synchronous network requests inside the script execution runtime.
- Do not let uncompiled syntax errors crash the viewport rendering loop.
Signals
- GitHub stars
- 22
- Forks
- 3
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
playcanvas-editor-scripting- Source
- github.com/teknokomo/universo-platformo-react