How to create a full USkeletalMesh from scratch in c++

Hello !
I’m developing a voxel game and I’ve just learned how to create a UStaticMesh with FMeshDescription.
Now I’m trying to reach the next level creating a full USkeletalMesh, from scratch, in cpp.
How can do such a thing ?

Regards

Did you figure out how to set Material for generated Static Mesh?