Transfering animation Key's, action sets?

I want to create action sets with a model and save these. I then want to take those actions, and put them with a different model with the same armeture. Can this be done?

I would model a character and animate the character. I will then change the character by putting different cloths on them. The characters weights will change so it will deform the cloths. I then want to take the action sets I already done, and put them with this new model.

It looks like that it could be done hacking the gltf file format.

This probably involves some scripting in whatever engine you want to load the character. For example some threejs users are exporting to glTF, and changing the character while loading the model this way.