The main way to get skill mastery in Project Mugetsu is through fighting enemies. You must be using the specific skill that you want to increase in order to gain mastery for it, so using an ability to defeat foes would only increase that specific ability's mastery.