create-scene
Installation
SKILL.md
Create a New Decentraland SDK7 Scene
Runtime constraint: Decentraland runs in a QuickJS sandbox. No Node.js APIs (
fs,http,path,process). Use the SDK'sexecuteTask()+fetch()for async work. See the scene-runtime skill for details.
⚠ CRITICAL RULE — Read before generating any code
NEVER put initial scene entities in src/index.ts.
Every entity that exists when the scene loads — models, primitives, lights, text, audio — MUST be declared in assets/scene/main.composite.
src/index.ts is ONLY for:
- Adding behavior/interactivity to entities fetched from the composite
- Entities spawned dynamically at runtime (projectiles, enemies, clones, etc.)
- Systems and game logic
If you find yourself writing engine.addEntity() for a piece of scenery or a static prop, stop — put it in the composite instead.
When the user wants to create a new scene, follow these steps: