How can I create an animation within a cloth simulation?
I have solved it: I created the skeletal animation as if there was no cloth simulation happening at the same time. After that, I created the cloth simulation and applied the collision modifier to the avatar. After baking the cloth simulation, I played the animation and it worked: the cloth responded to the skeletal animation and did not disappear.