You might need to use jass since IDK if you can convert an ability to its raw code using GUI...
but basically:
-Create an integer variable array
-Save the rawcode of each spell into an index of the array
-Then when you use the save command, just obtain the rawcode of the abilities and match it with those in the variable array to get its index and then save the index on the SaveLoad system
-Then when you use the load command, retrieve the index and use it to add the ability to the hero