Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

create-scene创建场景

Agent Skill

create-scene 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

514

周安装

21

GitHub Stars

13

下载量

166
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:create-scene(创建场景)
来源仓库:https://github.com/dcl-regenesislabs/opendcl
仓库路径:skills/create-scene
安装命令:
npx skills add https://github.com/dcl-regenesislabs/opendcl --skill create-scene
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dcl-regenesislabs/opendcl --skill create-scene

简介

为 Decentraland SDK7 创建去中心化场景。

  • 适用于元宇宙空间、游戏或社交应用开发。create-scene 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 受限于 QuickJS 沙箱,禁用 Node.js API。
  • 安装需确认 executeTask() + fetch() 异步工作模式。
  • 使用 SDK 内置方法,避免直接调用文件系统或进程接口。

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's executeTask() + fetch() for async work. See the scene-runtime skill for details.

When the user wants to create a new scene, follow these steps:

1. Ask What They Want to Build

If the user hasn't described their scene, ask them:

  • What kind of scene? (gallery, game, social space, interactive art, etc.)
  • How many parcels? (default: 1 parcel = 16x16m)
  • Any specific features? (3D models, interactivity, UI, multiplayer)

2. Scaffold the Project with /init

Always run /init first. This uses the official @dcl/sdk-commands init to create scene.json, package.json, tsconfig.json, and src/index.ts with the correct, up-to-date configuration, and installs dependencies automatically.

Never manually create scene.json, package.json, or tsconfig.json — the SDK templates may change between versions and hand-written copies will diverge.

3. Find Matching 3D Assets

Before writing scene code, search the asset catalog for free models that match the user's theme:

  1. Search the model catalog (5,700+ optimized 3D models — characters, structures, props, nature, vehicles, etc.) grep -i "keyword" {baseDir}/../add-3d-models/references/model-catalog.md
  2. Read {baseDir}/../../context/audio-catalog.md (50 free sounds — music, ambient, SFX, game mechanics, etc.)
  3. Fetch the preview thumbnail (the preview: URL at the end of each catalog line) to visually confirm models
  4. Suggest matching models and sounds to the user
  5. Download selected models into the scene's models/ directory: mkdir -p models curl -o models/zombie-purple.glb "https://models.dclregenesislabs.xyz/blobs/bafybeiffc..."
Important: GltfContainer only works with local files. Never use external URLs for the model src field.

4. Customize the Generated Files

After /init completes, customize the generated files based on what the user wants:

scene.json

Update the display fields and parcels:

  • display.title — set to the scene name
  • display.description — set to a short description
  • scene.parcels — for multi-parcel scenes, list all parcels (e.g., ["0,0", "0,1", "1,0", "1,1"] for 2x2)
  • scene.base — set to the southwest corner parcel

src/index.ts

Replace the generated code with the user's scene. Example:

import { engine, Transform, MeshRenderer, Material } from '@dcl/sdk/ecs'
import { Vector3, Color4 } from '@dcl/sdk/math'

export function main() {
  // Create a cube at the center of the scene
  const cube = engine.addEntity()
  Transform.create(cube, {
    position: Vector3.create(8, 1, 8)
  })
  MeshRenderer.setBox(cube)
  Material.setPbrMaterial(cube, {
    albedoColor: Color4.create(0.2, 0.5, 1, 1)
  })
}

scene.json Reference

All valid scene.json fields:

FieldRequiredDescription
ecs7YesMust be true for SDK7
runtimeVersionYesMust be "7"
mainYesMust be "bin/index.js" — the compiled output path
display.titleRecommendedScene name shown in the map and Places
display.descriptionRecommendedShort description for discovery
display.navmapThumbnailOptionalImage path for the Genesis City minimap
scene.parcelsYesArray of "x,y" coordinate strings
scene.baseYesThe origin parcel (usually southwest corner)
spawnPointsOptionalWhere players appear when entering (see below)
requiredPermissionsOptionalArray of permissions (e.g., "ALLOW_MEDIA_HOSTNAMES")
allowedMediaHostnamesOptionalWhitelisted domains for external media
featureTogglesOptionalEnable/disable SDK features
worldConfigurationOptionalFor Worlds deployment (see deploy-worlds skill)
authoritativeMultiplayerOptionalEnable authoritative server mode (see authoritative-server skill)

Spawn Points

Configure where and how players enter the scene:

{
  "spawnPoints": [
    {
      "name": "spawn1",
      "default": true,
      "position": { "x": [1, 5], "y": [0, 0], "z": [2, 4] },
      "cameraTarget": { "x": 8, "y": 1, "z": 8 }
    }
  ]
}
  • Position ranges (e.g., [1, 5]) spawn players randomly within the range
  • cameraTarget orients the player's camera on spawn — point it at the scene's focal area
  • Fixed spawn: use single values instead of ranges (e.g., "x": 8)

Multi-Parcel Layouts

LayoutParcels ArrayUse Case
Single["0,0"]Small games, galleries, single-room experiences
Strip["0,0", "1,0", "2,0"]Hallways, racing tracks, linear journeys
L-Shape["0,0", "1,0", "0,1"]Corner buildings, split experiences
2x2 Square["0,0", "1,0", "0,1", "1,1"]Open plazas, arenas, medium games
3x3 Square9 parcels from "0,0" to "2,2"Large games, multi-room buildings

Base parcel: Always set scene.base to the southwest (lowest x,y) corner parcel.

Boundaries per parcel: 16m x 16m x 20m height. A 2x2 scene spans 32m x 32m.

5. Post-Creation Steps

After customizing the files:

  1. Use the preview tool to start the preview server (or run npx @dcl/sdk-commands start --bevy-web manually)
  2. The scene will open in a browser at http://localhost:8000

Cross-References

  • Ready to deploy? See the deploy-scene skill (Genesis City) or deploy-worlds skill (personal Worlds)
  • Need to optimize for parcel limits? See the optimize-scene skill
  • Planning a game? See the game-design skill for design patterns and performance budgets

Important Notes

  • Always place objects within the scene boundaries (0 to 16*parcelsX for X, 0 to 16*parcelsZ for Z)
  • Center of a single-parcel scene is (8, 0, 8) at ground level
  • Y axis is up, minimum Y=0 (ground)
  • The main field in scene.json MUST be "bin/index.js" — this is the compiled output path
  • The jsx and jsxImportSource tsconfig settings are already included by /init — do not modify them

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.64%
按下载量换算61

Claude

29.5%
按下载量换算49

Cursor

20.29%
按下载量换算34

Gemini CLI

9.26%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills