Ability capsules are slightly easier to obtain compared to Ability Patches, as they can be purchased from the Chansey Supply shops for 100k Pokedollars. But the Chansey Supply shop will only become available after you have collected 8 badges. Or you may be lucky and an ability capsule will be the reward after completing five star raids.