sdk-scenes
Original:🇺🇸 English
Translated
Build, extend, and deploy Decentraland SDK7 scenes. This is the entry-point skill — it contains agent behavioral guidelines, the composite-first rule, and an index of all individual topic skills. Install this alongside the individual skills you need, or use `--skill '*'` to install everything.
6installs
Sourcedecentraland/sdk-skills
Added on
NPX Install
npx skill4agent add decentraland/sdk-skills sdk-scenesTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Decentraland SDK7 Scene Development
Runtime constraint: Decentraland runs in a QuickJS sandbox. No Node.js APIs (,fs,http,path). Useprocess+executeTask()for async work.fetch()
Agent Behavioral Guidelines
Before taking any significant action, check whether it falls into one of the three categories below and confirm with the user first.
How to ask: Phrase the question in plain, non-technical language that describes what will happen to the scene, not the underlying command.
Good: "Should I download this tree model into your scene assets?" Bad: "Run?"curl https://… -o assets/Models/tree.glb
1. Changing parcel count or layout
Any modification to in scene.json changes the scene's coordinate space. Entities near the current boundary may end up outside (invisible) or inside the wrong parcel. The user may also have a deployment slot in mind and parcel count needs to match it. Describe the change and its effect before acting:
scene.parcels"To fit the scene you described, I'd need to expand from 1 parcel (16×16 m) to a 2×1 layout (32×16 m). This changes the coordinate bounds for every entity. Should I go ahead?"
2. Fetching assets from external sources
Downloading any file not already in the project — 3D models (.glb), images, audio, video. The user may have their own assets in mind, may not want new files added, or may be targeting a specific visual style. Confirm before downloading:
"I'd like to download a [description] model from [source] and add it to your scene. Should I go ahead?"
For streaming references (, ): these don't download files but do add an external URL dependency. Confirm if the URL wasn't provided by the user:
AudioStreamVideoPlayer"I'd set up a video stream from [source]. Is that the one you want to use?"
3. Adding a Multiplayer Server
Introduces , , , , or switches to . This feature requires switching to an alternative SDK branch (). Many users who want "multiplayer" only need the simpler skill (no server). Confirm before implementing:
isServer()registerMessages()StorageEnvVar@dcl/sdk@auth-server@dcl/sdk@auth-servermultiplayer-sync"To handle multiplayer this way I'd need to add the Multiplayer Server — that requires switching to theSDK branch instead of the standard one. Is that what you're after, or would simpler peer-to-peer sync work for your use case?"@dcl/sdk@auth-server
General principle
These aren't things the agent should refuse to do — they're things it should communicate about before doing them. If the user confirms, proceed confidently. The goal is transparency, not gatekeeping.
CRITICAL RULE — Composite-first scene authoring
All static entities (models, lights, spawn points) MUST be defined in , NOT created in TypeScript via .
assets/scene/main.compositeengine.addEntity()TypeScript () is ONLY for:
src/index.ts- Dynamic behavior (systems, event handlers, state changes)
- Referencing composite entities via or
getEntityOrNullByName('name')getEntitiesByTag('tag') - Entities that are truly runtime-only (spawned/despawned during gameplay)
CRITICAL RULE — Editing an existing composite
Before modifying , scan it for . If present, the user has opened the scene in the Creator Hub at least once and the file is in edit mode: every new entity you add MUST be registered in , or it will render in-world but be invisible and un-selectable in the Creator Hub entity tree. See the "Editing an existing composite (edit mode)" section of for the exact procedure.
assets/scene/main.compositeinspector::Nodesinspector::Nodes{baseDir}/../composites/composite-reference.mdThe scene must NOT be open in the Creator Hub while you edit the composite. The inspector autosaves by default and regenerates the whole from its in-memory engine, overwriting the file wholesale — it never re-reads it from disk. Your edits will silently vanish. Ask the user to close the scene first, then reopen it when you are done.
main.compositeIndividual Skills
This skill is the entry point. The detailed implementation guidance lives in individual topic skills, each installable separately. Install specific ones or use for all.
--skill '*'Scene Setup & Configuration
Skill: — Scaffolding, schema, multi-parcel layouts, composite vs TypeScript entity rules.
create-scenescene.json3D Models
Skill: — Loading / with , positioning, colliders, and browsing the free asset catalogs (8,800+ models).
add-3d-models.glb.gltfGltfContainerAnimations & Tweens
Skill: — GLTF animation clips with , programmatic and , easing functions.
animations-tweensAnimatorTweenTweenSequenceMaterials & Rendering
Skill: — PBR materials, , , , texture modes.
advanced-renderingTextShapeBillboardVisibilityComponentLighting & Environment
Skill: — Point/spot lights, shadows, (day/night cycle), emissive materials.
lighting-environmentSkyboxTimeParticle Systems
Skill: — component for fire, smoke, sparks, snow, rain, magic, fireworks. Emitter shapes (Point/Sphere/Cone/Box), continuous rate vs Burst emission, gravity, sprite-sheet animation, blend modes.
particle-systemParticleSystemClick & Proximity Interactivity
Skill: — , trigger areas, raycasting. For polling-based input see .
add-interactivitypointerEventsSystemadvanced-inputAdvanced Input & Movement Control
Skill: — polling, WASD-controlled entities, , , .
advanced-inputinputSystemInputModifierPointerLockPrimaryPointerInfoPlayer & Avatar
Skill: — Player position/profile, emotes, wearables, , .
player-avatarAvatarAttachAvatarModifierAreaNPCs
Skill: — NPCs and the NPC Toolkit library for GLB-based NPCs with dialogue and state machines.
npcsAvatarShapePlayer Physics
Skill: — Impulse forces, knockback, repulsion fields.
player-physicsCamera
Skill: — Camera state, , for cinematic shots.
camera-controlCameraModeAreaVirtualCameraScreen-Space UI
Skill: — React ECS components for 2D screen-space UI overlays: layout, text, images, buttons, inputs.
build-uiAudio & Video
Skill: — , , , media permissions.
audio-videoAudioSourceAudioStreamVideoPlayerAudio Analysis (Reactive Visualizers)
Skill: — component for real-time amplitude + 8-band frequency data from any //. Drive scale, color, lights, and particles from music. Unity-explorer only.
audio-analysisAudioAnalysisAudioSourceAudioStreamVideoPlayerBlockchain & NFTs
Skill: — , wallet checks, token gating, signed requests, smart contracts.
nft-blockchainNftShapeMultiplayer (CRDT, no server)
Skill: — for peer-to-peer sync, , parent-child sync.
multiplayer-syncsyncEntityMessageBusMultiplayer Server
Skill: — Headless server, , , , . Requires .
authoritative-serverisServer()registerMessages()StorageEnvVar@dcl/sdk@auth-serverScript Components (Creator Hub)
Skill: — Writing script files for the Creator Hub Script component, constructor parameters, JSDoc tags (never decorator syntax).
script-components.ts@actionAsync, HTTP, WebSocket, Timers
Skill: — , , , WebSocket, timers, realm/scene info, restricted actions.
scene-runtimeexecuteTaskfetchsignedFetchScene Optimization
Skill: — Scene limits, object pooling, LOD, texture optimization, system throttling.
optimize-sceneGame Design
Skill: — DCL design philosophy, state management, UX guidelines, game loop archetypes, MVP planning.
game-designDeployment
- Skill: — Genesis City deployment,
deploy-scene, troubleshooting.dcl deploy - Skill: — Personal Worlds,
deploy-worlds, ENS/DCL NAME requirements.worldConfiguration
SDK6 → SDK7 Migration
Skill: — Port legacy scenes to SDK7. Conceptual ECS shift (entities as IDs, data-only components, mutable/immutable access), full API mapping ( → , → , → , classes → free functions, → , etc.), and an annotated before/after example.
migrate-sdk6-to-sdk7decentraland-ecsnew Entity()engine.addEntity()GLTFShapeGltfContainerOnPointerDownpointerEventsSystemISystemInput.instanceinputSystemShared References
These reference files are used across multiple skills. Load them when you need detailed component APIs, validation rules, or asset catalogs.
Components Reference
Reference:
Quick-reference of key fields, types, and defaults for the SDK7 components you'll commonly use. For a component's complete field list, consult its dedicated skill or the SDK typings.
{baseDir}/references/components-reference.mdEntity Validation Rules
Reference:
Rules for validating entity component combinations — which components require each other, mutual exclusions, and common misconfigurations. Apply to both composite and TypeScript entities.
{baseDir}/../create-scene/references/entity-validation-rules.mdFree Asset Catalogs
- 3D Models (8,800+ models): — optimized 3D models with descriptions, dimensions, animations, and download URLs
{baseDir}/../add-3d-models/references/model-catalog.md - Audio (50 sounds): — Music, Ambient, SFX, Game Mechanics, UI sounds
{baseDir}/../audio-video/references/audio-catalog.md
Composites
Reference:
The JSON format for declaring initial scene entities. Includes and patterns for fetching composite entities in TypeScript.
{baseDir}/../composites/composite-reference.md.compositegetEntityOrNullByNamegetEntitiesByTagLibrary References
- NPC Toolkit: — GLB-based NPCs with dialogue, movement, state machines
{baseDir}/../npcs/references/npc-library.mdc - Blockchain/NFT patterns: — NFT display, wallet checks, MANA operations, currency/NFT transactions, marketplace integration (dcl-crypto-toolkit)
{baseDir}/../nft-blockchain/references/blockchain-patterns.md
How to use
- Identify the topic from the user's request
- Load the corresponding skill — it contains the full API, code patterns, and rules
- For broad requests spanning multiple topics, load each relevant skill
- For asset discovery, load the relevant catalog and suggest specific assets before fetching any