aps-viewer-v8-migrationlisted
Install: claude install-skill autodesk-platform-services/skills
# APS Viewer v7 → v8 migration
Port an existing APS Viewer v7 app to v8. v8 removes three.js from the public API, replaces
overlays and SceneBuilder with the Scene API, renders with WebGPU, always streams models (Large
Model Experience), requires a secure context and ES6-class extensions, and removes APIs that were
deprecated in v7.
Conventions in this skill and its references: `av = Autodesk.Viewing`,
`avs = Autodesk.Viewing.Scene`, `avm = Autodesk.Viewing.Math`.
## Ground rules
- **Default: port against v7 first, then switch the script URL.** Most v8 code in this skill also
runs on v7 with the Scene API enabled. Making the app work on v7 + Scene API first keeps a
working baseline and separates renderer/loading issues from API issues. v7 + Scene API is a
stand-in, not the v8 runtime: math types, loading, and renderer behavior differ, so verify on v8
too. Several replacements (`getRenderLayers()`, `getPreferences()`, the Initializer promise, the
`Camera` class) first shipped in v7.131.0, so apps pinned to an older version (for example
`/viewers/7.89/`, `6.*`, or the `viewingservice/v1/...?v=` form) must move to `7.*` (or 7.131 or
later) first; see the legacy baseline table in `P01-script-urls-and-baselines.md`.
- **Alternative: go straight to v8.** Offer this in the plan when the user doesn't need the app to
keep running on v7, or when v7 + Scene API behaves differently from v8 for the code being ported.
Switch the URLs first (step 6), then port and veri