How can i give enchantments to mobs?

I know about the tick stuff but i need an example of what to put on ''change_skeleton.mcfunction''

Continue to help post