360 Secure SkillHub
360 安全技能中心

cesium

核心功能涵盖CesiumJS 3D地球应用的Viewer搭建、地形/影像/3D Tiles加载、相机控制、性能调优及bug排查等。典型场景为用户需Cesium代码编写、架构解析、bug修复或迁移指导时,会先确认运行环境等前提,遵循生产安全工作流,以增量方式实现,同时提供防护规则与调试清单,输出合规高效的解决方案。

jvy
jvy
热度 53.28
最近更新 2026-05-11 17:31:45
分类:开发依赖:代码执行 / 内部调用大模型 / 读写文件应用场景:代码生成 / 调试排错 / API 集成 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add cesium
Metadata
name
cesium
description
Build, debug, and optimize CesiumJS 3D globe apps, including viewer setup, terrain/imagery, 3D Tiles, GeoJSON/CZML loading, camera control, picking, entity styling, and performance tuning. Use when the user asks for Cesium code, Cesium architecture, Cesium bugs, or migration guidance in web projects.
homepage
https://cesium.com/platform/cesiumjs/
metadata
{"openclaw":{"emoji":"🌍","homepage":"https://cesium.com/platform/cesiumjs/"}}

Cesium

Implement CesiumJS solutions with minimal assumptions and production-safe defaults.

Workflow

  1. Confirm runtime assumptions first: framework (vanilla/Vite/React), CesiumJS version, and whether Cesium Ion is available.
  2. Start with the smallest runnable viewer setup before adding terrain, 3D Tiles, or heavy data layers.
  3. Keep token handling out of source code; use environment variables and project config wiring.
  4. Add data layers incrementally and verify camera framing after each step.
  5. For rendering/perf issues, reduce scene complexity first, then tune request/render settings.

Implementation guardrails

  • Prefer explicit imports from cesium and avoid hidden globals.
  • Use requestRenderMode for mostly static scenes to reduce GPU/CPU usage.
  • Dispose resources in teardown paths (viewer.destroy()) in SPA route changes/unmounts.
  • For large datasets, prefer 3D Tiles over huge entity collections when possible.
  • Keep picking logic resilient: handle undefined picks and mixed primitive/entity results.

Debugging checklist

  • Blank globe: verify CSS container height/width and render loop not blocked.
  • Missing terrain/tiles: verify network access, token, and dataset permissions.
  • Misplaced data: verify CRS and coordinate order (lon, lat, height).
  • Memory/GPU pressure: profile number of entities/primitives and texture-heavy layers.

Reference docs in this skill

  • Read {baseDir}/references/patterns.md when generating or fixing Cesium code.