How do you want this training to work? If it's just a question of asking the NPC for training, then a simple line of dialogue with a result script of 'player.modav energyweapons x', where x is the amount by which you wish to increase the skill, is all you would need.