You'll probably gain this while playing through the game normally, but if not simply explore every area as much as possible.
Ability Shrines are clearly marked on the map (and even light up if unclaimed), so it shouldn't be too difficult to find everything.