It depends on the ability and generally, for offensive abilities, prioritize ATK and Crit. For defensive abilities, focus on HP, DEF, and Dodge. Utility abilities often benefit from a mix of stats.