About the gltf-transform Tool

If Draco is not an option for you and there are some transform nodes after meshopt - you can use scene. getNodeByName() to use the same names as before optimization.

Or, since optimized files are the final ones to be used in production, just use their node hierachy to access relevant meshes/transform nodes.